Not able to import users from LDAP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Not able to import users from LDAP

Post 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
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to import users from LDAP

Post 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
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Not able to import users from LDAP

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to import users from LDAP

Post 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.
You do not have the required permissions to view the files attached to this post.
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: Not able to import users from LDAP

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to import users from LDAP

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Not able to import users from LDAP

Post by rkennedy »

Closing this up as I see a ticket has been received.
Former Nagios Employee
Locked