If you change the encryption method for passwords in a DSA that already has encrypted passwords, these are not automatically updated. Although new passwords will be encrypted using the new method, existing passwords will use the old method.
To convert the encryption method for passwords already in a DSA
changetype: modify replace: userPassword userPassword: new-password
Replace new-password with the actual new password for each entry.
Example: Convert to the SSHA-1 Encryption Scheme
This example shows how to convert the passwords in the Democorp DSA from SHA-1 to SSHA-1.
In this example, the details are as follows:
Follow these steps:
dxsearch -b "(o=democorp, c=au)" -s sub -D "{cn=AdminUser}" -w adminpassword -h host23 -p 19389 (userPassword={SHA}*) dn > sha-1.ldif
This returns the entries in which the password is currently encrypted using SHA-1, and writes the results to the file sha-1.ldif.
set password-storage = ssha-1;
Each password is encrypted using the new encryption scheme the next time it is updated.
To update all of the passwords now, follow the remaining steps.
changetype: modify replace: userPassword userPassword: new-password
Replace new-password with the actual new password for each entry.
dxmodify -r -c -h host23:19389 -D "{cn=AdminUser}" -w adminpassword -f sha-1.ldif
dxsearch -b {Base DN for search} -s sub -D "{cn=AdminUser}" -w adminpassword -h host23:19389 (userPassword={SHA}*) dn"
The search result should show that no passwords are now encrypted with SHA-1.
dxsearch -b {Base DN for search} -s sub -D "{cn=AdminUser}" -w adminpassword -h host23:19389 (userPassword={SSHA}*) dn"
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |