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 choose a encryption method for passwords stored in a DSA
set password-storage = sha-1 | sha-512 | md5 | ssha-1 | crypt | none;
Passwords that have already been encrypted are not updated automatically. The next time that a password is updated, it is encrypted using the new scheme.
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 |