summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee66d7d)
raw | patch | inline | side by side (parent: ee66d7d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 28 Nov 2005 07:03:47 +0000 (07:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 28 Nov 2005 07:03:47 +0000 (07:03 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2085 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 5dca5ea5d45f66f37bb663fa34f25218482e67fb..1a62e89464ab244935f88b6d5fdb439b2b257cde 100644 (file)
/* attribute list for save action */
var $attributes= array("homeDirectory", "loginShell", "uidNumber", "gidNumber", "gecos",
"shadowMin", "shadowMax", "shadowWarning", "shadowInactive", "shadowLastChange",
- "shadowExpire", "gosaDefaultPrinter", "gosaDefaultLanguage", "uid");
+ "shadowExpire", "gosaDefaultPrinter", "gosaDefaultLanguage", "uid","accessTo","trustModel");
var $objectclasses= array("posixAccount", "shadowAccount");
$this->was_trust_account= FALSE;
$this->trustModel= "";
}
+
+ $this->accessTo = array();
if ($this->is_account && isset($this->attrs['accessTo'])){
for ($i= 0; $i<$this->attrs['accessTo']['count']; $i++){
$tmp= $this->attrs['accessTo'][$i];
if (!$this->initially_was_account){
return;
}
-
+
/* include global link_info */
$ldap= $this->config->get_ldap_link();
-
- /* Remove and write to LDAP */
+
+ /* Remove and write to LDAP */
plugin::remove_from_parent();
/* Zero out array */
/* Keep uid, because we need it for authentification! */
unset($this->attrs['uid']);
+ unset($this->attrs['trustModel']);
@DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
$this->attributes, "Save");
$this->primaryGroup= $this->gidNumber;
}
+ $ldap->cd($this->config->current['BASE']);
+ $ldap->search("(&(objectClass=gosaUserTemplate)(uid=".$template."))", array("cn","accessTo"));
+ while($attr = $ldap->fetch()){
+ $tmp = $attr['accessTo'];
+ unset ($tmp['count']);
+ $this->accessTo = $tmp;
+ }
/* Adjust shadow checkboxes */
foreach (array("shadowMin", "shadowMax", "shadowWarning", "shadowInactive",