By: Neha Agarwal user 26 Sep 2016 at 4:16 p.m. CDT

7 Responses
Neha Agarwal gravatar
I am using openDJ server from Gluu itself. I created a new base-dn under the default backend using dsconfig: --backend-name userRoot --add base-dn:dc=exampledc,dc=com Now I used ldip-import utility of OpenDJ to import the records of my organization. You can take one record as : dn: cn=neha_1,ou=company,dc=exampledc,dc=com objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person objectClass: top objectClass: posixAccount cn: neha_1 gidNumber: 2 homeDirectory: /home/users/neha_1 sn: neha_1 uid: neha_1 uidNumber: 2 givenName: Admin loginShell: /bin/sh userPassword:: ******* Further on GLUU UI, I have updated the manage authentication and added a new Base DN : ou=company,dc=exampledc,dc=com --Now when I am trying to login via neha_1, it is throwing me Authentication Failure Error . Am I missing some configuration?? Is there a better way to import existing OU's under the organization base dn ?? If I import the users from UI, I creates a new user under :ou=people,o=****inum ***,o=gluu though I need to create these new user under ou=company,dc=exampledc,dc=com , is there any way to do so ?? Any quick help will be much appreciated.

By Neha Agarwal user 26 Sep 2016 at 4:19 p.m. CDT

Neha Agarwal gravatar
Just to add further, I am able to see the newly imported records from apache directory studio and I can search the records from back-end as well using ldapsearch.

By Mohib Zico staff 26 Sep 2016 at 4:49 p.m. CDT

Mohib Zico gravatar
>> I am using openDJ server from Gluu itself. I created a new base-dn under the default backend using dsconfig: --backend-name userRoot --add base-dn:dc=exampledc,dc=com May we know why you created a new baseDN?

By Neha Agarwal user 26 Sep 2016 at 4:53 p.m. CDT

Neha Agarwal gravatar
Current data in my application is set up that way. There is a root DN like I specified, and there are different ou's under that. When a user logs in they are authenticated based on their OU. Do you think having a separate base dn will cause any issue ?

By Mohib Zico staff 26 Sep 2016 at 4:58 p.m. CDT

Mohib Zico gravatar
>> Do you think having a separate base dn will cause any issue ? Yes. If you change DN, you have to change bunch of configurations inside Gluu Server. All authentications are happening against "ou=people,o=gluu".

By Neha Agarwal user 26 Sep 2016 at 5:07 p.m. CDT

Neha Agarwal gravatar
Ok! Do you have some documentation that guides me what and where to change ? Do you think it is doable, or will that be too error prone ??

By Mohib Zico staff 27 Sep 2016 at 1:40 a.m. CDT

Mohib Zico gravatar
No documentation. It's do-able but lot of customization required.

By Neha Agarwal user 27 Sep 2016 at 10:02 a.m. CDT

Neha Agarwal gravatar
Will it be possible to guide me as in where all I have to do the customization s to get it working ?