$bd = ldap_bind($ad, $login, $pass) (line 13 ) or die("Could not connect to LDAP server." ); } mais ça me retourne cette erreur : Warning:ldap_bind() [function.ldap_bind] unable to bind to server : Invalid credentials in C:\....\auth.php line 13 could not connect to LDAP server.
merci d'avance...
Message édité par carole8 le 09-06-2006 à 11:32:13
Marsh Posté le 09-06-2006 à 11:28:09
bonjour,
voila mon code est le suivant :
function checkLogin($login, $pass, $server)
{
$ad = ldap_connect($server)
or die("Could not connect to LDAP server." );
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
$bd = ldap_bind($ad, $login, $pass) (line 13 )
or die("Could not connect to LDAP server." );
}
mais ça me retourne cette erreur :
Warning:ldap_bind() [function.ldap_bind]
unable to bind to server : Invalid credentials in C:\....\auth.php line 13
could not connect to LDAP server.
merci d'avance...
Message édité par carole8 le 09-06-2006 à 11:32:13