diff --git a/lam/lib/types/user.inc b/lam/lib/types/user.inc index 39d41867..1a61c282 100644 --- a/lam/lib/types/user.inc +++ b/lam/lib/types/user.inc @@ -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. *