[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: setting up admin password on openldap




> The passowrd is hashed in the ldif file which I am importing from the
> production system, as below:
> 
> # id=00000003
> dn: uid=nsadmin,o=trac
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> cn: SuiteSpot Administrator
> sn: Administrator
> givenName: SuiteSpot
> uid: nsadmin
> creatorsName: cn=nsadmin
> createTimestamp: 19980218204619Z
> userPassword:: e1NIQX12bm4rOFpBNFNzdzJJMnlQOVZ2clBJVFlGRzg9
> modifiersName: uid=nsadmin,o=trac
> modifyTimestamp: 19980722182149Z
> structuralObjectClass: inetOrgPerson
> entryUUID: 8179b9a2-74d7-102a-9988-90f8caf384a9
> entryCSN: 20060511011623Z#000003#00#000000
> 

This is not modify operation ldap file. 
Modify operation ldif file should look like this:
(in example two values of userPassword will be added
to "cn=admin,dc=foo" object, and all old values of
userPassword attribute will be removed.

dn: cn=admin,dc=foo
changetype: modify
replace: userPassword
userPassword: {CRYPT}hashpasswordvaluehere
userPassword: {MD5}passwordhashedinotherway

Regards,
Piotr