By: Josh Newlin user 10 Aug 2018 at 9:44 a.m. CDT

5 Responses
Josh Newlin gravatar
Hi, So I created the Gluu servers many months ago, and have seemed to lose my LDAP password that was set when I initially ran setup.py (bad, I know). Is there any recourse to resetting this password, or discovering what this password was set as? I'm attempting to change the domain for the Gluu server using [these instructions](https://github.com/GluuFederation/community-edition-setup/tree/master/static/scripts/change_hostname), but an LDAP password is required. Thanks so much, Josh N.

By Michael Schwartz Account Admin 10 Aug 2018 at 9:48 a.m. CDT

Michael Schwartz gravatar
Is it Opendj or openLDAP

By Josh Newlin user 10 Aug 2018 at 9:53 a.m. CDT

Josh Newlin gravatar
Opendj, sorry for not clarifying that initially!

By Josh Newlin user 10 Aug 2018 at 9:56 a.m. CDT

Josh Newlin gravatar
I've found [this source](https://ludopoitou.com/2011/06/30/newbie-help-how-to-reset-the-directory-managers-password/), but I wanted to run the question by the Gluu staff first, before I screw anything up!

By Aliaksandr Samuseu staff 10 Aug 2018 at 9:56 a.m. CDT

Aliaksandr Samuseu gravatar
Hi, Josh. Michael is right, unless you specifically selected OpenLDAP during installation, your instance should use OpenDJ. Here are password recovery steps that should work for either, I believe: 1. Move into container 2. Dump the encrypted password: `# grep -i -e bindPassword /etc/gluu/conf/ox-ldap.properties | cut -d' ' -f2` 3. Decode it: `# /opt/gluu/bin/encode.py -d 'YOUR_ENCRYPTED_LDAP_PASS'` Let me know whether this helps.

By Josh Newlin user 10 Aug 2018 at 9:58 a.m. CDT

Josh Newlin gravatar
Thanks, Aliaksandr! This seemed to work! You saved my butt. Thanks again! Closing ticket.