Link to home
Start Free TrialLog in
Avatar of gglollc
gglollc

asked on

PHP-LDAP Authentication Fatal Error

I am attempting to setup Active Directory authentication For WordPress using the Simple LDAP Login plug-in.

I first discovered that php was not ldap enabled. I found php-ldap.i686 and installed that which I believe should work to enable ldap.It is still not working but getting farther along. When I attempt to open WordPress the logon page comes up and it has an error: ERROR: The username field is empty.

The apache log shows the following error:
[Thu Jan 28 12:47:54 2010] [error] [client 10.0.0.146] PHP Fatal error: Call to undefined function ldap_connect() in /var/www/html/materials/wp-content/plugins/simple-ldap-login/adLDAP.php on line 157, referer: http://10.0.0.146/materials/wp-admin/options-general.php?page=simple-ldap-login&updated=true

Can anyone shed some light on this? Does this mean that PHP is still not fully enabled for LDAP?

We are running on Fedora 12.
ASKER CERTIFIED SOLUTION
Avatar of Rarek
Rarek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gglollc
gglollc

ASKER

Great info, thanks.
Also check php_short_tags are ON in your php.ini - some of the plugins I've seen are written using <? /> rather than <? php    ?> tags, whcih may mean some fo the code is missed.