Skip to content

Commit 71c027e

Browse files
committed
Ignore case for organization; example.org should match EXAMPLE.ORG
1 parent 45c955c commit 71c027e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Auth/Source/LdapMulti.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
use function array_change_key_case;
2525
use function array_key_exists;
26+
use function strtolower;
2627
use function var_export;
2728

2829
class LdapMulti extends UserPassOrgBase
@@ -126,6 +127,7 @@ protected function loginSasl(
126127
string $organization,
127128
array $sasl_args = [],
128129
): array {
130+
$organization = strtolower($organization);
129131
if ($this->includeOrgInUsername) {
130132
$username = $username . '@' . $organization;
131133
}

0 commit comments

Comments
 (0)