Unable to browse users in containers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fpernet
Posts: 55
Joined: Tue Aug 23, 2011 3:40 am

Unable to browse users in containers

Post by fpernet »

Hi all,
I've got a customer for a Nagios XI POC (under trial license). Version is 5.2.9 OVF appliance.
I've seen that a similar post exists on this subject: https://support.nagios.com/forum/viewto ... 16&t=39377

We setup an Active Directory connection in order to import users (see 1rst attachment). No matter security is on or off.
We can browse containers but none of them let us see users.

I took a look on the code and i've seen that it looks for special class of objects. I reproduced, on the command line with ldapsearch, the request, with the same credentials (so this is not relevant), and we can see all users.

Code: Select all

ldapsearch -x -h chgva-XXXXXXXXX.net -w XXXXXXX -D [email protected] -b "OU=Admin users and groups,OU=XXXXXXX,DC=XX,DC=XXXXX,DC=net" -s sub "(cn=*)" cn mail sn objectClass -v
But with Nagios, no way to see the content of the containers ... here is the /var/log/http/ssl_error log of apache when issuing the request:

Code: Select all

[Fri Jul 15 17:19:49 2016] [error] [client 10.21.62.105] PHP Warning:  ldap_list(): Search: No such object in /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/classes/adLDAPFolders.php on line 138, referer: https://chgva-XXXX.net/nagiosxi/includes/components/ldap_ad_integration/index.php

[Fri Jul 15 17:19:49 2016] [error] [client 10.21.62.105] PHP Warning:  ldap_list(): Search: No such object in /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/classes/adLDAPFolders.php on line 138, referer: https://chgva-XXXX.net/nagiosxi/includes/components/ldap_ad_integration/index.php

[Fri Jul 15 17:19:49 2016] [error] [client 10.21.62.105] PHP Warning:  ldap_list(): Search: No such object in /usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/classes/adLDAPFolders.php on line 138, referer: https://chgva-XXXX.net/nagiosxi/includes/components/ldap_ad_integration/index.php
The result is on the 2nd attachment.

Please, tell me if some bugs have been reported already, and/or some tracks to follow to find a solution.

Many thanks in advance

Francois
You do not have the required permissions to view the files attached to this post.
Last edited by fpernet on Tue Aug 02, 2016 5:03 am, edited 1 time in total.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to browse users in containers

Post by ssax »

Please try changing the Base DN to up one level:

Remove the OU=Admin users and groups, and try it again. If it still doesn't work, try just putting in the DC=yourdomain,DC=com.
fpernet
Posts: 55
Joined: Tue Aug 23, 2011 3:40 am

Re: Unable to browse users in containers

Post by fpernet »

Hi ssax,

Thank you for your answer. Sorry for the delay, i was in vacation few days.

I did put DC=yourdomain,DC=com in the base search and it works !!!

For me, the problem is solved but i guess it would be better to be able to sepcify a real Base Search.

Correction of this bug in the next release ??

Many thanks for your help. Ticket is solved for me.

Cheers
Locked