Page 1 of 1

Unable to browse users in containers

Posted: Tue Jul 26, 2016 4:19 am
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

Re: Unable to browse users in containers

Posted: Tue Jul 26, 2016 10:16 am
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.

Re: Unable to browse users in containers

Posted: Tue Aug 02, 2016 5:00 am
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