Skip to content

Commit 9d487b0

Browse files
committed
Fix mistakes
1 parent 57315fa commit 9d487b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Auth/Source/Ldap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function loginSasl(string $username, #[\SensitiveParameter]string $pas
129129
}
130130

131131
/* Verify the credentials */
132-
if (empty($sasl_args)) {
132+
if (!is_null($sasl_args)) {
133133
Assert::isArray($sasl_args);
134134

135135
$this->connector->saslBind(

src/Auth/Source/LdapMulti.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function loginSasl(
117117
string $username,
118118
#[\SensitiveParameter]string $password,
119119
string $organization,
120-
?array $sasl_args,
120+
?array $sasl_args = [],
121121
): array {
122122
if ($this->includeOrgInUsername) {
123123
$username = $username . '@' . $organization;

0 commit comments

Comments
 (0)