Recovering Passwords, version 2

A little over a year ago I posted some code that helped me recover a lost dm_bof_registry user password by employing the RegistryPasswordUtils class and the server API.  I recently had the opportunity to revisit that code and expand it a bit.  This code uses every method I can think of to recover a lost Documentum password.  However, according to the D6.5 EMC Documentum Content Server Administration Guide, p. 353:  passwords encrypted with encryptPassword() cannot be decrypted explicitly by an  application or user.  Bummer.

As best I can tell, the database owner password (stored in dbpassword.txt) used by the Content Server to connect to the database is encrypted with encryptPassword() and can be decrypted by both the server API and the CryptoUtils class.  My best guess is that the dbpassword.txt password is encrypted using the encryptPassword() method where other passwords are encrypted using the encryptText() method that uses a custom pass phrase as the encryption key.

Anyway, here is the updated code if you are interested:  recoverPW v2.

Note:  This code uses some classes from the WDK.  I order to run it, you will need to create a JAR of the WDK and include it in your class path.

Advertisements

About Scott
I have been implementing Documentum solutions since 1997. In 2005, I published a book about developing Documentum solutions for the Documentum Desktop Client (ISBN 0595339689). In 2010, I began this blog as a record of interesting and (hopefully) helpful bits of information related to Documentum, and as a creative outlet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: