LdapUserBackend: Provide filter column `user'

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-06 10:27:26 +02:00
parent 108f55128f
commit 4044e56a03
1 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,13 @@ class LdapUserBackend extends Repository implements UserBackendInterface
*/
protected $filter;
/**
* The columns which are not permitted to be queried
*
* @var array
*/
protected $filterColumns = array('user');
/**
* The default sort rules to be applied on a query
*
@ -250,6 +257,7 @@ class LdapUserBackend extends Repository implements UserBackendInterface
}
$this->queryColumns[$this->userClass] = array(
'user' => $this->userNameAttribute,
'user_name' => $this->userNameAttribute,
'is_active' => 'unknown', // msExchUserAccountControl == 2/512/514? <- AD LDAP
'created_at' => 'whenCreated', // That's AD LDAP,