Skip to content

Commit 45c955c

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Auth/Source/LdapMulti.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use SimpleSAML\Error;
2222
use SimpleSAML\Module\core\Auth\UserPassOrgBase;
2323

24+
use function array_change_key_case;
2425
use function array_key_exists;
2526
use function var_export;
2627

@@ -85,7 +86,7 @@ public function __construct(array $info, array $config)
8586
false,
8687
);
8788

88-
$this->mapping = $this->ldapConfig->getArray('mapping');
89+
$this->mapping = array_change_key_case($this->ldapConfig->getArray('mapping'));
8990
Assert::notEmpty($this->mapping);
9091

9192
$organizations = array_keys($this->mapping);

0 commit comments

Comments
 (0)