By: prerna arote user 21 Sep 2015 at 3:16 a.m. CDT

13 Responses
prerna arote gravatar
Hi, I installed gluu, modified Cache Refresh. Got the AD users into my manage people of gluu server. Later on, I have modified Manage Authentication page: All details of backend AD like bind dn, base dn, server: IP address:389 without SSL. Primary Key: sAMAccountName Local Primary Key: uid Authentication Mode: Default --------------------- But, I am not able to login to oxtrust, not even with the admin credentials nor with AD user credentials. How to proceed? Regards, Prerna

By Michael Schwartz Account Admin 21 Sep 2015 at 1:35 p.m. CDT

Michael Schwartz gravatar
The best way to fix this is with a little ldif. Create a file called 'revert.ldif' dn: inum=@!BFB8.45A2.D0E4.1E14!0002!B128.C89F,ou=appliances,o=gluu changetype: modify replace: oxAuthenticationMode oxAuthenticationMode: internal # /opt/opendj/bin/ldapmodify -h localhost -p 1389 -D "cn=directory manager" -j ~/.pw -f revert.ldif * Save the directory manager (admin) password to ~/.pw -- Remove this when your done. * Change the the inum with your appliance inum. You can see the `dn` in /opt/opendj/ldif/appliance.ldif After that, you should be reverted to your default authentication versus the local OpenDJ server. If that doesn't work, I would copy try this: dn: inum=@!BFB8.45A2.D0E4.1E14!0002!B128.C89F,ou=appliances,o=gluu changetype: modify replace: oxIDPAuthentication oxIDPAuthentication: {"type": "auth", "name": null, "level": 0, "priority": 1, "enabled": true, "version": 0, "config": "{\"configId\": \"auth_ldap_server\", \"servers\": [{\"value\":\"brookie.gluu.info:1636\"}], \"maxConnections\": 1000, \"bindDN\": \"cn=directory manager\", \"bindPassword\": \"nq1ttgF59zwwVJHMoinGCQ==\", \"useSSL\": \"true\", \"baseDNs\": [{\"value\":\"o=gluu\"}], \"primaryKey\": \"uid\", \"localPrimaryKey\": \"uid\", \"useAnonymousBind\": false, \"enabled\": true}" } Where you are copying this from the original value for oxIDPAuthentication saved in your `/opt/opendj/ldif/appliance.ldif` file. Also: don't forget the two spaces for each continued line in the ldif!

By Michael Schwartz Account Admin 21 Sep 2015 at 1:41 p.m. CDT

Michael Schwartz gravatar
Make sure you test credentials and connectivity. Also check the logs of the source LDAP server to see if you can find the reason for the error.

By prerna arote user 23 Sep 2015 at 1:04 a.m. CDT

prerna arote gravatar
I got all users of AD into Manage people after modifying CR. According to you, to avoid this login issue (after modifying Manage Authentication), I need to go with local ldap server credentials (opendj-gluu ldap server) in Manage Authentication. https://support.gluu.org/view/installation/login-issue-in-gluu-server-through-oxtrust/1926 This ticket says, In configuration/Manage Authentication: details of gluu internal ldap server. http://www.gluu.org/docs/admin-guide/configuration/#manage-authentication This says: In configuration/Manage Authentication: details of backend ldap i.e AD Which details shall I put in Manage Authentication (backend AD or internal ldap)?? Regards, Prerna

By prerna arote user 23 Sep 2015 at 11:17 p.m. CDT

prerna arote gravatar
Hi, I have kept 'keep external persons' enabled, modified CR. I got users also. Then, I tried to modify 'Manage Authentication' with my AD details. If I logout, I will not be able to log into oxtrust with admin credentials. What is missing in this? I want to log into oxtrust with my AD users credentials? Thanks and Regards, Prerna

By Michael Schwartz Account Admin 24 Sep 2015 at 8:13 a.m. CDT

Michael Schwartz gravatar
Add your AD user to the Manager Group.

By prerna arote user 29 Sep 2015 at 4:28 a.m. CDT

prerna arote gravatar
You mean, step 1: modify CR Step 2: Check users in Manage People (AD users) Step 3: If step 2 successful Then, Add all users to Manager group Step 4: modify Manage Authentication Result: Able to login oxtrust GUI with AD users credentials or admin credentials of gluu Will this work?? Will this allow me to login with users credentials?? I got /opendj/ldif/appliance.ldif Should I modify this file (oxIDPAttribute details)? Thanks.

By Aliaksandr Samuseu staff 29 Sep 2015 at 4:12 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Prerna, hi, Mike. Please wait a bit before proceeding. We had an issue with logins against LDAP backend not so long ago, and it supposed to be fixed by now. But the symptoms you are describing looks pretty much like it. Let me try to reproduce it on my test box Regards, Alex.

By Aliaksandr Samuseu staff 29 Sep 2015 at 4:17 p.m. CDT

Aliaksandr Samuseu gravatar
And to answer your question, Prerna: yes, under normal conditions your steps are correct. Just don't forget to set "Keep external persons", so you could rollback to default auth easily, in case it won't end up as expected.

By Aliaksandr Samuseu staff 29 Sep 2015 at 9:47 p.m. CDT

Aliaksandr Samuseu gravatar
Confirmed: it's the same issue. I'll notify Yuriy.

By prerna arote user 30 Sep 2015 at 3:16 a.m. CDT

prerna arote gravatar
Hi Aliaksandr, Do I need to modify appliance.ldif? (only oxIDPAttribute value) Is there still any issue? or Shall I proceed?

By Aliaksandr Samuseu staff 30 Sep 2015 at 9:34 a.m. CDT

Aliaksandr Samuseu gravatar
Unfortunately, at the moment you won't be able to employ authentication against backend. You can't do anything to fix it, we will have to wait response from the dev team. Ldif manipulations Mike was recommending before is a way to revert your auth mode back to default, so you could at least log in to the default admin account. If you still have troubles with logging in and don't wish to go for reinstall, you can follow his guide by creating this revert.ldif and running ldapmodify against Gluu's internal LDAP database. You don't need to modify appliance.ldif, just to fetch the original values of "dn", "oxAuthenticationMode" and "oxAuthenticationMode" attributes from there, and then substitute corresponding attributes in example ldifs he provided in his post. The feed resulting ldifs to the ldapmodify while inside Gluu's chroot-ed container.

By Mohib Zico staff 06 Oct 2015 at 6:28 a.m. CDT

Mohib Zico gravatar
Hi Prerna, It's fixed. Please feel free to test again.