i try this answer, but did’nt work…
the output is “Fatal error: Call to undefined function ldap_connect() in”.
but i sure in my server LDAP is enable…
please help me… 
[QUOTE=aducom;14180]Not sure if it is helpful, but this code works in our ldap environment, put in onvalidate:
$ldaprdn = "cn=".{UID}.",ou=somethign,o=something,c=nl";
$ldappass = {PWD}; // associated password
// connect to ldap server
$ldapconn = ldap_connect("ldaps://yourserver:636")
or die("Could not connect to LDAP server.");
if (ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3)) {
// echo "Using LDAPv3
";
}
//ldap_set_option($ldapconn, LDAP_OPT_REFERRALS, 0);
if ($ldapconn) {
// binding to ldap server
$ldapbind = @ldap_bind($ldapconn, $ldaprdn, $ldappass);
}
// verify binding
if ($ldapbind) {
// echo "LDAP bind successful...
";
} else {
// sc_error_message('LDAP bind failed...: '.ldap_error($ldapconn) . "
");
sc_error_message('<br><br><b>Login mislukt / login failed</b>');
}
}
[/QUOTE]