diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index fa1a3821eda756e20b99a2a2897e76a1a5d947bd..8cd19aed072934367726dc774c85f8c1f05f4078 100644 (file)
var $shadowInactive= "0";
var $shadowExpire= "0";
var $gosaDefaultPrinter= "";
- var $gosaDefaultLanguage= "";
var $accessTo= array();
var $trustModel= "";
var $GroupRegex = "*";
var $GroupUserRegex = "*";
var $SubSearch = false;
+ var $memberGroup = array();
/* attribute list for save action */
var $CopyPasteVars = array("grouplist","groupMembership","use_shadowMin","use_shadowMax","use_shadowWarning","use_shadowInactive","use_shadowExpire","must_change_password","grouplist","savedGidNumber","savedUidNumber");
var $attributes = array("homeDirectory", "loginShell", "uidNumber", "gidNumber", "gecos",
"shadowMin", "shadowMax", "shadowWarning", "shadowInactive", "shadowLastChange",
- "shadowExpire", "gosaDefaultPrinter", "gosaDefaultLanguage", "uid","accessTo","trustModel");
+ "shadowExpire", "gosaDefaultPrinter", "uid","accessTo","trustModel");
var $objectclasses= array("posixAccount", "shadowAccount");
var $uid ="";
} else {
$smarty->assign("groups", "");
}
- $smarty->assign("languages", $this->config->data['MAIN']['LANGUAGES']);
/* Avoid "Undefined index: forceMode" */
$smarty->assign("forceMode", "");
$this->is_modified= TRUE;
}
$this->primaryGroup= $_POST['primaryGroup'];
+ if ($this->primaryGroup != 0){
+ $this->gidNumber= $this->primaryGroup;
+ }
}
/* Save pwmode dependent attributes, curently hardcoded because there're
/* Include global link_info */
$ldap= $this->config->get_ldap_link();
+ /* Append groups as memberGroup: to check hook
+ */
+ $tmp_attributes = $this->attributes;
+ $this->attributes[] = "memberGroup";
+ $this->memberGroup = array();
+ foreach($this->groupMembership as $dn => $name){
+ $this->memberGroup[] = $name;
+ }
+
/* Call common method to give check the hook */
$message= plugin::check();
+ $this->attributes = $tmp_attributes;
/* must: homeDirectory */
if ($this->homeDirectory == ""){
function reload()
{
-
/* Set base for all searches */
$base = $_SESSION['CurrentMainBase'];
- $base = $base;
$ldap = $this->config->get_ldap_link();
$attrs = array("cn", "description", "gidNumber");
$Flags = GL_SIZELIMIT;