Skip to content

Commit 57315fa

Browse files
committed
Revert "Fix: call appropriate method on symfony connection"
This reverts commit 972d0a2.
1 parent 972d0a2 commit 57315fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Connector/Ldap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ public function saslBind(
121121
?string $authzId,
122122
?string $props,
123123
): void {
124-
if (!method_exists($this->connection, 'sasl_bind')) {
124+
if (!method_exists($this->connection, 'saslBind')) {
125125
throw new Error\Error("SASL not implemented");
126126
}
127127

128128
try {
129-
$this->connection->sasl_bind($username, strval($password), $mech, $realm, $authcId, $authzId, $props);
129+
$this->connection->saslBind($username, strval($password), $mech, $realm, $authcId, $authzId, $props);
130130
} catch (InvalidCredentialsException $e) {
131131
throw new Error\Error($this->resolveBindError($e));
132132
}

0 commit comments

Comments
 (0)