Problem mit ldap bind
Hallöle zusammen,
ich bastel grad eine Plattform, die User über das AD authentifizieren soll.
Als ich es noch auf einem IIS hatte, lief es super. Beim Apache macht nun folgende Zeile Probleme:
$r=ldap_bind($ds,select(C_DOMAIN,TABLE_LOGIN,C_LOGINNAME .' = "' .$UserName .'"') ."\\" .$UserName, $_POST[C_LOGINPASSWORD]) or die ("Bindung mit Server nicht möglich.");
Ist das Kennwort richtig, läuft alles super. Gibt der User aber ein falsches an, so schmeißt das Ding den Fehler "ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials"
Ich prüfe im nachfolgenden Code mit if($r) ob das Kennwort richtig war. Lief wie gesagt beim IIS auch, beim Apache knallt die o.g. Zeile.
Was ist zu tun??
ich bastel grad eine Plattform, die User über das AD authentifizieren soll.
Als ich es noch auf einem IIS hatte, lief es super. Beim Apache macht nun folgende Zeile Probleme:
$r=ldap_bind($ds,select(C_DOMAIN,TABLE_LOGIN,C_LOGINNAME .' = "' .$UserName .'"') ."\\" .$UserName, $_POST[C_LOGINPASSWORD]) or die ("Bindung mit Server nicht möglich.");
Ist das Kennwort richtig, läuft alles super. Gibt der User aber ein falsches an, so schmeißt das Ding den Fehler "ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials"
Ich prüfe im nachfolgenden Code mit if($r) ob das Kennwort richtig war. Lief wie gesagt beim IIS auch, beim Apache knallt die o.g. Zeile.
Was ist zu tun??
Please also mark the comments that contributed to the solution of the article
Content-Key: 162855
Url: https://administrator.de/contentid/162855
Printed on: April 25, 2024 at 01:04 o'clock
4 Comments
Latest comment