diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index f5461877..d5090f14 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -140,10 +140,12 @@ class posixAccount extends baseModule { 'userPassword', 'loginShell', 'gecos', 'description'); // PHP extensions $return['extensions'] = array('mhash'); - // self service search attributes - $return['selfServiceSearchAttributes'] = array('uid'); - // self service field settings - $return['selfServiceFieldSettings'] = array('password' => _('Password')); + if ($this->get_scope() == "user") { + // self service search attributes + $return['selfServiceSearchAttributes'] = array('uid'); + // self service field settings + $return['selfServiceFieldSettings'] = array('password' => _('Password')); + } // profile checks $return['profile_checks']['posixAccount_homeDirectory'] = array('type' => 'ext_preg', 'regex' => 'homeDirectory', 'error_message' => $this->messages['homeDirectory'][0]);