User accounts are entries in the directory with the userPassword attribute.
By default, the passwords stored in the userPassword attribute are encrypted using SHA-1.
However, you can use a different encryption scheme to encrypt these passwords. To do this, you need to create a password rule that specifies the encryption scheme. Each password is encrypted with the new scheme when it is next updated.
To use a different encryption scheme for the userPassword attribute
set password-storage = sha-1 | md5 | ssha-1 | crypt | none;
When each password is next updated, it is encrypted using the new encryption scheme.
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 © 2009 CA. All rights reserved. | Email CA about this topic |