We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917a3c1 commit c6e1640Copy full SHA for c6e1640
app/Ldap/Rules/LoginObjectclassRule.php
@@ -17,7 +17,10 @@ class LoginObjectclassRule implements Rule
17
public function passes(LdapRecord $user,?Eloquent $model=NULL): bool
18
{
19
if ($x=config('pla.login.objectclass')) {
20
- return count(array_intersect($user->objectclass,$x));
+ return count(array_intersect(
21
+ array_map('strtolower',$user?->objectclass ?: []),
22
+ array_map('strtolower',$x)
23
+ ));
24
25
// Otherwise allow the user to login
26
} else {
0 commit comments