[pkg-kolab] Passwords

Tom Fernandes anyaddress at gmx.net
Thu May 18 23:09:46 UTC 2006


Hi,

On Wednesday 17 May 2006 17:56, Johannes Graumann wrote:
> On Wednesday 17 May 2006 08:30, Marvin Stark wrote:
> > > 1) is the 'rootpw' entry in slapd.conf supposed to be cleartext or
> > > hashed?

it can be either cleartext or hashed.

# man slapd.conf

is your friend :).

> >
> > cleartext.
>
> Thanks.
>
> > > 2) How are the the hashed passwords in the example ldif data generated?

if an attribute contains "::" it is base64 encoded - you will have to decode 
the string to view the actual content.
if you decode  

e1NTSEF9eng5WTB0RDVCc2pEeVI2MHI4Z2hRdTBOS3JUZC9jT0I=

you will get:

{SSHA}zx9Y0tD5BsjDyR60r8ghQu0NKrTd/cOB

this string.

to use your own passwords in the ldif file you can use slappasswd to genereate 
one:

# slappasswd -h {SSHA}

after that you will have to encode the whole string to base64. You can either 
write a small script for that or use a side like:

http://makcoder.sourceforge.net/demo/base64.php

to encode / decode the password.

Hope that gives you some more insight,


Tom



More information about the pkg-kolab-devel mailing list