Sylvia smiling nicely.
HPIM0031.jpg
another shot
I found it hard to take photos that did it justice though
So here it is.
00076.jpg
Sylvia
Would have taken more photos but I forgot to charge the batteries.

 

February 2007
M T W T F S S
« Jan   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

OpenLDAP findings

openLDAP wormThis is pretty specific to my work, but I found a few nice things out. In order to search for a person in the LDAP directory, do a:

[root@cwmedia08 openldap]# ldapsearch -D 'cn=manager' -W -x -b "o=<domainname>" "(login=name*)"

and this should return the ldap record for the person specified. The userPassword looks something like:

userPassword:: e1NTSEF9Z0pGekpPVDVRaGNrKzdCaTdFZGk4aWVHUkZTQmlWOSs=

and it turns out that if the field is followed by a double colon (::), then the field is base64 encrypted. Openssl provides us with a way of encrypting and decrypting from base64 (http://www.linuxjournal.com/article/8958).
To encrypt to base64:

[root@cwmedia08 openldap]# echo "blah blah blah" | openssl base64
YmxhaCBibGFoIGJsYWgK

To decrypt from base64:

[root@cwmedia08 openldap]# echo "YmxhaCBibGFoIGJsYWgK" | openssl base64 -d
blah blah blah

In order to generate passwords, there's a nice little utility shipped with openLDAP called slappasswd, which allows you to generate the password that you want in any number of different encryption schemes:

[root@cwmedia08 openldap]# /opt/insight/sbin/slappasswd -h {SSHA}
New password:
Re-enter new password:
{SSHA}HHc6iraOFjfP/seaNarwehQ2gpJ20hD7
[root@cwmedia08 openldap]#

Now, I just need to work out how to update entries in the ldap system!

Popularity: 10% [?]

Everybody's a critic WTF?? Nothing about this made senseas useful as a blindfolded monkey throwing dartsmediocre ... at bestsolved my problem but needed modificationspectacular.  \'Nuff said (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>