By: Rami Almarzooq user 27 Sep 2018 at 1:33 a.m. CDT

5 Responses
Rami Almarzooq gravatar
Hi, I am kind of new in Gluu, we are testing it for authenticating our services in the company. So far so good we like it, but I have cleared the data on my mobile super gluu that was used for authenticating the Admin user, and now I am stock in the web login authentication to access admin. I need to know how to clear the entry of a registered device from CLI. Would you help me please :-) Note: I can't login to Admin Web management because Super Gluu wouldn't allow it without the registered device already configured.

By Rami Almarzooq user 27 Sep 2018 at 1:54 a.m. CDT

Rami Almarzooq gravatar
At least if I can disable Super Gluu script from CLI it will be so helpful...

By Mohib Zico staff 27 Sep 2018 at 2:57 a.m. CDT

Mohib Zico gravatar
Hello Rami, [Here](https://gluu.org/docs/ce/3.1.3.1/operation/faq/#revert-an-authentication-method) is how we can 'revert' authentication to default one.

By Rami Almarzooq user 27 Sep 2018 at 3:26 a.m. CDT

Rami Almarzooq gravatar
Thanks Mohib, I managed to find the inum using the ldapsearch provided, created changeAuth.ldif file as suggested, but I got an error: Finding inum: ``` GLUU.root@id1:/# /opt/opendj/bin/ldapsearch -h localhost -p 1636 -Z -X -D "cn=directory manager" -w '*****' -b "ou=appliances,o=gluu" -s one "objectclass=*" oxAuthenticationMode dn: inum=@!B6FC.5EF2.F14B.B108!0002!2097.2DD5,ou=appliances,o=gluu oxAuthenticationMode: super_gluu ``` changeAuth.ldif file: ``` dn: inum=@!B6FC.5EF2.F14B.B108!0002!2097.2DD5,ou=appliances,o=gluu changetype: modify delete: oxAuthenticationMode ``` Error: ``` GLUU.root@id1:/# /opt/opendj/bin/ldapmodify -h localhost -p 1389 -D "cn=directory manager,o=gluu" -w ****** -f changeAuth.ldif Connect Error Result Code: 91 (Connect Error) ```

By Rami Almarzooq user 27 Sep 2018 at 6:25 a.m. CDT

Rami Almarzooq gravatar
I tried to run the command with different ports since the code is "connect errors", I ran the command with "127.0.0.1" instead of localhost, and tried many other ways but always ending up with the same error, it changes when I use ports 636/1636 asking for SSL certs, but never mind. Luckily I have a backup of the VM, so I restored the whole machine, saved my day :-) Sorry to disturb you guys, you're doing a great job building an impressive server. Ticked will be closed but not solved.

By Mohib Zico staff 27 Sep 2018 at 6:40 a.m. CDT

Mohib Zico gravatar
Yes... seems like there was an issue in doc, I just changed [this](https://github.com/GluuFederation/docs-ce-prod/commit/f4bb574900d63dab47f08605237e507ca8cd31e4). In OpenDJ: `localhost:1636` is always the port; we don't do non-SSL anymore. Also, regarding your primary question ( "I need to know how to clear the entry of a registered device from CLI..."): I think you can use [this](https://gluu.org/docs/supergluu/3.1.3/admin-guide/#what-to-do-about-lost-devices) doc; most of the SuperGluu related doc and troublshooting guides are there in this tree: https://gluu.org/docs/supergluu/3.1.3/ >> Sorry to disturb you guys, Don't worry about that, please. We are actually more than happy to see you using our product. Please keep using and let us know if you have any suggestion so we can make our product and doc much much better.