By: Eli Sy user 21 Sep 2020 at 4:07 p.m. CDT

3 Responses
Eli Sy gravatar
Is there a way to reset the admin password from the CLI?

By Aliaksandr Samuseu staff 21 Sep 2020 at 5:28 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Eliezer. If you've locked yourself out of web UI, you can try to add a new admin user using [this guide])https://gluu.org/docs/gluu-server/4.2/operation/faq/#adding-admin-users). Then log in to web UI as new admin user and change your other admin's password. To reset password on existin account, you can apply LDIF file like this: ``` dn: DN-OF-ADMIN-USER changetype: modify replace: userPassword userPassword: SOMENEWPASSWORD ``` Save it to `reset_admin_pass.ldif`, then apply with this: `# /opt/opendj/bin/ldapmodify -h 127.0.0.1 -p 1636 -Z -X -D 'cn=directory manager' -w LDAP_ROOT_PASS -f reset_admin_pass.ldif` You need to figure out DN of your admin record first, and learn your `LDAP_ROOT_PASS` (by default it's same as default admin pass right after install)

By Eli Sy user 22 Sep 2020 at 9:34 a.m. CDT

Eli Sy gravatar
How do I find the dn? Isn't the inum a randomly generated string?

By Mohib Zico staff 01 Oct 2020 at 4:03 a.m. CDT

Mohib Zico gravatar
>> How do I find the dn? Isn't the inum a randomly generated string? You need SSH into server and search ldap. Or, you can tunnel to your Gluu Server and use any ldap browser to see data there. [Here](https://gluu.org/docs/gluu-server/4.2/operation/faq/#graphical-method) is a sample on how to use ldap browser to see data of your Gluu Server.