Skip to content

Commit cbf3ad0

Browse files
committed
fix(login): unbind using connection
1 parent 3e4432d commit cbf3ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

login.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function auth(
6060
}
6161

6262
/* Authentifizierung des User */
63-
if (($link_id = ldap_bind($connection, $user_dn, $password)) == false) {
63+
if ((ldap_bind($connection, $user_dn, $password)) == false) {
6464
print "Fehler: Authentifizierung fehlgeschlagen: $user_dn<br>";
6565
return false;
6666
}
@@ -72,7 +72,7 @@ function auth(
7272
echo $initials; // Output: "JT"
7373
$_SESSION['username'] = $initials;
7474

75-
ldap_unbind($link_id);
75+
ldap_unbind($connection);
7676
return true;
7777
}
7878

0 commit comments

Comments
 (0)