LDAP component missing php function

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
william.sweat
Posts: 3
Joined: Fri Mar 25, 2011 12:57 pm

LDAP component missing php function

Post 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
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: LDAP component missing php function

Post 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!
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
william.sweat
Posts: 3
Joined: Fri Mar 25, 2011 12:57 pm

Re: LDAP component missing php function

Post 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)
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: LDAP component missing php function

Post by rdedon »

I will look into getting this added and thank you for the tip :-)
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
Locked