Title: LDAP and PHP
Last modified: August 19, 2016

---

# LDAP and PHP

 *  [bartly](https://wordpress.org/support/users/bartly/)
 * (@bartly)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/ldap-and-php/)
 * After failing to get LDAP authentication working for Active Directory, I discovered
   PHP needs to have LDAP support enabled, and it is not enabled by default. Is 
   there a way to do this without compiling PHP? I am a newb at Linux, but I am 
   assuming this would entail a re-install of PHP and a re-insall of WP, which we
   would not like to do since we have a lot hours put into this project so far.
   
   Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [bartly](https://wordpress.org/support/users/bartly/)
 * (@bartly)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/ldap-and-php/#post-1363401)
 * Okay, I found php-ldap.i686 and installed it which gives php ldap support. This
   should work for the plugin, correct?
    Also I just realized that I omitted that
   I am using the Simple LDAP Login plug-in, in my original post. I seem to be making
   some progress becasue now when I test the plugi-in I get a test result instead
   of a blank page. However, the test result is a failure, “your settings don’t 
   seem to work yet or ….” In addition now when I attempt to actually open WordPress
   the logon page comes up with an error message that says: ERROR: The username 
   field is empty. This would seem to imply that the user credentials coming from
   Active Directory are not complete, or something like that. Can anyone shed some
   light on this?
 *  Thread Starter [bartly](https://wordpress.org/support/users/bartly/)
 * (@bartly)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/ldap-and-php/#post-1363406)
 * The apache log shows this 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](http://10.0.0.146/materials/wp-admin/options-general.php?page=simple-ldap-login&updated=true)
 *  Thread Starter [bartly](https://wordpress.org/support/users/bartly/)
 * (@bartly)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/ldap-and-php/#post-1363532)
 * Is there a way to verify that php is correctly ldap enabled? I installed a different
   rpm, apchache is not recording errors, but the login is still not working.
 *  Thread Starter [bartly](https://wordpress.org/support/users/bartly/)
 * (@bartly)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/ldap-and-php/#post-1363543)
 * I am abandoning this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘LDAP and PHP’ is closed to new replies.

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 1 participant
 * Last reply from: [bartly](https://wordpress.org/support/users/bartly/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/ldap-and-php/#post-1363543)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
