Skip to content

Commit

Permalink
Revert "Fix: call appropriate method on symfony connection"
Browse files Browse the repository at this point in the history
This reverts commit 972d0a2.
  • Loading branch information
tvdijen committed Nov 1, 2024
1 parent 972d0a2 commit 57315fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connector/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public function saslBind(
?string $authzId,
?string $props,
): void {
if (!method_exists($this->connection, 'sasl_bind')) {
if (!method_exists($this->connection, 'saslBind')) {
throw new Error\Error("SASL not implemented");
}

try {
$this->connection->sasl_bind($username, strval($password), $mech, $realm, $authcId, $authzId, $props);
$this->connection->saslBind($username, strval($password), $mech, $realm, $authcId, $authzId, $props);
} catch (InvalidCredentialsException $e) {
throw new Error\Error($this->resolveBindError($e));
}
Expand Down

0 comments on commit 57315fa

Please sign in to comment.