support 389ds (de)activation

This commit is contained in:
Roland Gruber 2016-06-19 15:34:02 +02:00
parent 2509cb1d68
commit f4f6b7c34c
1 changed files with 10 additions and 0 deletions

View File

@ -1065,6 +1065,16 @@ class lamUserList extends lamList {
return windowsUser::isDeactivated($attrs);
}
/**
* Returns if the 389ds is activated.
*
* @param array $attrs LDAP attributes
* @return boolean 389ds available
*/
public static function is389dsAvailable(&$attrs) {
return in_array('locking389ds', $_SESSION['config']->get_AccountModules('user'));
}
/**
* Returns if deactivated by nsAccountLock.
*