Page 1 of 1

Not able to import users from LDAP

Posted: Mon Jul 18, 2016 2:38 pm
by Berto
Hello,

I upgraded one of our Nagios servers to 5.2.9 over the weekend and though everything seemed to go well, I just discovered an issue. I'm trying to import a user from LDAP and when I log in, it doesn't list any users to select from, I tried from the other Nagios server that hasn't been upgraded yet (5.2.3) and it works fine from there. Did anything changed with the newer version that I need to do with LDAP?

--Berto

Re: Not able to import users from LDAP

Posted: Mon Jul 18, 2016 3:13 pm
by ssax
What LDAP server are you running?

As a test, please try changing your Base DN to a level up, so if you had:

Code: Select all

OU=test,OU=another,DC=company,DC=com
Try it with:

Code: Select all

OU=another,DC=company,DC=com
If that doesn't work, drop it down to just the DC parts:

Code: Select all

DC=company,DC=com
Let us know the results.

Thank you

Re: Not able to import users from LDAP

Posted: Mon Jul 18, 2016 4:07 pm
by Berto
In our LDAP environment we use Oracle 11g LDAP, and when I had issues prior with integrating LDAP with Nagios, I was told I had to log in with:

uid=username,ou=People,dc=company,dc=name,dc=com

So if I remove the ou=People, I get an error stating I can authenticate.

--Berto

Re: Not able to import users from LDAP

Posted: Mon Jul 18, 2016 4:29 pm
by ssax
Please set it back to what it was.

I've updated the current file with that changes that were in the original ticket that you originally sent in.

Please replace this file with the one attached (unzip it first):
- Make a backup of the original just in case

Code: Select all

/usr/local/nagiosxi/html/includes/components/ldap_ad_integration/index.php
Let us know the results.

Re: Not able to import users from LDAP

Posted: Tue Jul 19, 2016 3:45 pm
by Berto
Hello,

I replaced the file and when trying again, I still am unable to see any of the users in our LDAP.

--Berto

Re: Not able to import users from LDAP

Posted: Tue Jul 19, 2016 4:03 pm
by ssax
Let's move this into a ticket, please send in an email to [email protected] with a descriptive subject and detailed body with a link back to this thread so that we can get a remote session setup.

Thank you

Re: Not able to import users from LDAP

Posted: Wed Jul 20, 2016 11:49 am
by rkennedy
Closing this up as I see a ticket has been received.