Hello,
I have some problems with ldap and php fot my authentificatio n.
I don't understand why. My DN is correct in my ldap server
Can you help me please?
My php script :
$login = $_POST['pseudo'];
$passe = $_POST['passe'];
$ldapServer = "localhost" ;
$loginDN = "uid=".$login." , o=people, dc=toto, dc=org";
$connexion = ldap_connect($l dapServer)
or die ("Impossible de se connecter au seveur LDAP");
if ($connexion) {
$result= ldap_bind($conn exion, $loginDN, $passe);
// Identification
if ($result) {
echo "Connexion LDAP réussie";
} else {
echo "Connexion LDAP échouée";
}
}
My error message :
Warning: ldap_bind(): Unable to bind to server: Invalid credentials in
d:\www-root\php\auth_l dap.php on line 15
Connexion LDAP échouée
Thank you very much for your help.
Laurent
I have some problems with ldap and php fot my authentificatio n.
I don't understand why. My DN is correct in my ldap server
Can you help me please?
My php script :
$login = $_POST['pseudo'];
$passe = $_POST['passe'];
$ldapServer = "localhost" ;
$loginDN = "uid=".$login." , o=people, dc=toto, dc=org";
$connexion = ldap_connect($l dapServer)
or die ("Impossible de se connecter au seveur LDAP");
if ($connexion) {
$result= ldap_bind($conn exion, $loginDN, $passe);
// Identification
if ($result) {
echo "Connexion LDAP réussie";
} else {
echo "Connexion LDAP échouée";
}
}
My error message :
Warning: ldap_bind(): Unable to bind to server: Invalid credentials in
d:\www-root\php\auth_l dap.php on line 15
Connexion LDAP échouée
Thank you very much for your help.
Laurent