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!