Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.2k views
in Plugins by

Does anyone have it working?  If so, would you mind helping me with my setup?  I have my environment setup but I am getting a couple of errors that I can't seem to fix.  

Fatal error: Call to undefined function ldap_connect() in C:\UniServer\www\qa-lab\qa-plugin\qa-ldap-login\qa-ldap-process.php on line 20

 

Line 20 from qa-ldap-process.php is:

 

// Establish link with LDAP server
$con =  ldap_connect($ldap_hostname,$ldap_port) or die ("Could not connect to ldap host.");
if (!is_resource($con)) trigger_error("Unable to connect to $hostname",E_USER_WARNING);
ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($con, LDAP_OPT_REFERRALS, 0);
 
Here is my ldap config:
 
<?php
 
$ldap_search_strings = array( 'uid=username,dc=domain,dc=net' );
$ldap_hostname = 'ldap://ldap.domain.net/'; 
$ldap_port = 389; 
 
?>

Is there a better way to handle the LDAP login for the Q2A site?  I really need some help.

Thanks!

by
Made a bit of progress, now I just get a user not found error thrown.  I have the right LDAP info in the config file.  Can't seem to get authenticated.  Is there a simple way to view possible errors in the apache logs?

Any help would be appreciated.

1 Answer

0 votes
by
...