[Kroupware] How to change the manager password?
Dieter Kluenter
dieter at dkluenter.de
Fri Jul 11 00:40:31 CEST 2003
Hi Wim,
Wim Bakker <w.a.bakker at planet.nl> writes:
> On Thursday 10 July 2003 21:26, Dieter Kluenter wrote:
>>
[...]
> slapcat gives me the following for the manager:
> --------
> dn: cn=manager,dc=koolraap,dc=unetix,dc=nl
> cn: manager
> sn: n/a
> uid: manager
> userPassword:: TE9naSopKSE=
> objectClass: top
> objectClass: inetOrgPerson
> structuralObjectClass: inetOrgPerson
> entryUUID: 5d1c13c0-44b0-1027-9bea-ba5150bdad15
> creatorsName: cn=manager,dc=koolraap,dc=unetix,dc=nl
> createTimestamp: 20030707102023Z
> entryCSN: 2003070710:20:23Z#0x0005#0#0000
> modifiersName: cn=manager,dc=koolraap,dc=unetix,dc=nl
> modifyTimestamp: 20030707102023Z
> ----
> Now that is a completely different password, so I suppose
> it is stored encrypted in the ldap database, how do I create
> such an encrypted password for use with ldapadd ?
> Can I make a temporary user with the password I want
> to use for the manager , copy it's password entry to the password
> field in the .ldif file for the manager entry , remove
> the manager entry first with slapdelete , and than add the new
> entry with the new password with slapadd , and then remove the temporary
> user? Or would that not work.
That is a bit strange but in principal you can decode the password in
your entry, as it is only base64 encoded, just use mmencode, the
password in slapd.conf should be plain text.
To change an entry in your directory, just
create with your preferred editor a blah.ldif file
dn: cn=manager,dc=and.so.on
changetype: modify
delete: userPassword
dn: cn=manager,dc=and.so.on
changetype: modify
add: userPassword
userPassword:{SSHA}.........
the attribute value for userPassword ist created by using slappasswd
and cut 'n paste into your blah.ldif
next ldapmodify -x -D "cn=manager,dc=and.so.on" -W -f blah.ldif
That should change your password in your manager's entry.
-Dieter
--
Dieter Kluenter | Systemberatung
Tel:040.64861967 | Fax: 040.64891521
mailto: dkluenter(at)dkluenter.de
http://www.avci.de
More information about the Kroupware
mailing list