

Administration Guide › Manage User Accounts and Passwords › Password Encryption › Convert Passwords Already in a DSA to a New Encryption Method
Convert Passwords Already in a DSA to a New Encryption Method
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.
Follow these steps:
- Choose an encryption method for passwords stored in a DSA.
- Search the DSA for all passwords encrypted using the old encryption method, and write the results to an LDIF file.
- Open the LDIF file in a text editor and make the following changes:
- Add the text dn: to the beginning of each DN.
- Add the following lines below each DN:
changetype: modify
replace: userPassword
userPassword: new-password
Replace new-password with the actual new password for each entry.
- Save the changed LDIF file.
- Load the LDIF file into the DSA using the DXmodify tool.
- Use the DXsearch tool to confirm that no passwords are encrypted using the old method, and also that passwords are now encrypted using the new method.
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:
- Old encryption scheme: SHA-1
- New encryption scheme: SSHA-1
- Democorp host: host23
- Democorp port number: 19389
- Name and password of the user who is authorized to change passwords: AdminUser, adminpassword
Follow these steps:
- Ensure that the Democorp DSA is running.
- Search the DSA for all passwords encrypted using SHA-1, using the following command:
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.
- Add the following command to the democorp.dxc file:
set password-storage = ssha-1;
- Stop and start the Democorp DSA.
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.
- Open the file sha-1.ldif in a text editor.
- For each DN in the file, Follow these steps:
- Add the text dn: to the beginning of each DN.
- Add the following lines below each DN:
changetype: modify
replace: userPassword
userPassword: new-password
Replace new-password with the actual new password for each entry.
- Save the changed LDIF file.
- Ensure that the Democorp DSA is running.
- Load the file into the DSA using the following command:
dxmodify -r -c -h host23:19389 -D "{cn=AdminUser}" -w adminpassword -f sha-1.ldif
- Confirm that the passwords have changed by performing another search for SHA-1 hashed passwords, using the following command:
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.
- Confirm that the passwords are encrypted with SSHA-1 by repeating the search for SSHA-1 passwords:
dxsearch -b {Base DN for search} -s sub -D "{cn=AdminUser}" -w adminpassword -h host23:19389 (userPassword={SSHA}*) dn"
Copyright © 2013 CA.
All rights reserved.
 
|
|