Fix ldap fetching user_id as string (#9067)

This commit is contained in:
Tony Murray
2018-08-23 16:40:29 -05:00
committed by Neil Lathwood
parent 5064285f10
commit 01e8a6e089

View File

@@ -358,7 +358,7 @@ class LdapAuthorizer extends AuthorizerBase
return [
'username' => $entry['uid'][0],
'realname' => $entry['cn'][0],
'user_id' => $entry[$uid_attr][0],
'user_id' => (int)$entry[$uid_attr][0],
'email' => $entry[Config::get('auth_ldap_emailattr', 'mail')][0],
'level' => $this->getUserlevel($entry['uid'][0]),
];