BigAdmin System Administration Portal
Feature Tech Tip
Print-friendly VersionPrint-friendly Version

Resetting the "admin" Password in Sun Java System Directory Server

Robert Chien, April 2008

Provided you still have the Directory Manager password, you can perform the following steps to reset the admin password for Sun Java System Directory Server:

1. Either obtain a Slated Secured Hashing Algorithm (SSHA)-encoded string for a known password from elsewhere, or else generate a new one by running the following getpwenc command:

~$ getpwenc SSHA topsecret
{SSHA}38qz690lee+Bi6t8ypKbOwqOG1zxPKURR3LiMQ==

2. Then run the following command:

$ ldapmodify -h {HOST} -D "cn=Directory Manager" -w {DIRMGR_PW}
dn: uid=admin, ou=Administrators, ou=TopologyManagement, 
 o=NetscapeRoot
changetype: modify
replace: userpassword
userpassword: {SSHA}38qz690lee+Bi6t8ypKbOwqOG1zxPKURR3LiMQ==
^D
modifying entry "uid=admin, ou=Administrators, ou=TopologyManagement,
o=NetscapeRoot"

For More Information

Here are additional resources:

Discuss and comment on this resource in the BigAdmin Wiki


Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License.


BigAdmin
  
 
 
 
 
Would you recommend this Sun site to a friend or colleague?
Contact About Sun News & Events Employment Site Map Privacy Terms of Use Trademarks Copyright Sun Microsystems, Inc.