Page 1 of 1

LDAP component missing php function

Posted: Fri Mar 25, 2011 1:12 pm
by william.sweat
Hello,

I have a fresh install of Nagios XI 2011R1.1. I installed the LDAP component, http://exchange.nagios.org/directory/Ad ... nt/details, and entered the correct information. When I attempt to login, I see this in the error logs
[Fri Mar 25 10:30:22 2011] [error] [client some.ip.address] PHP Fatal error: Call to undefined function ldap_connect() in /usr/local/nagiosxi/html/includes/components/ldapauth/ldapauth.inc.php on line 256, referer: http://ldap.server.ip/nagiosxi/login.ph ... dex.php%3f
The function 'ldap_connect' doesn't exist in the XI code. Has this been renamed? Is there an update for this component correcting the problem?

Thanks

Re: LDAP component missing php function

Posted: Fri Mar 25, 2011 4:25 pm
by rdedon
Hello William,
just a few quick questions:
-What distro are you using? (CentOS, RHEL, etc)
-is this VM or on a dedicated physical box?
-what steps did you take in installing it?


It may be that something needs to be changed in ldapauth.inc.php as it is stating an undefined function.


Thanks!

Re: LDAP component missing php function

Posted: Fri Mar 25, 2011 4:37 pm
by william.sweat
Hi Rene,

I needed to have php-ldap installed on the system (yum install php-ldap). Can the documentation for this be updated to list this as a requirement?

To answer your other questions:
CentOS 5.5
Physical Box
Used the Manual Installation instructions (no errors)

Re: LDAP component missing php function

Posted: Fri Apr 01, 2011 3:43 pm
by rdedon
I will look into getting this added and thank you for the tip :-)