• 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

    (@bartly)

    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

    (@bartly)

    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: https://10.0.0.146/materials/wp-admin/options-general.php?page=simple-ldap-login&updated=true

    Thread Starter bartly

    (@bartly)

    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

    (@bartly)

    I am abandoning this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘LDAP and PHP’ is closed to new replies.