From df3e71a13f6f4b0b875e234e6609bc4ed5962fe3 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 4 Apr 2007 08:59:42 +0000 Subject: [PATCH] Pre-ports from 2.5 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5972 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/generic.tpl | 2 +- plugins/personal/posix/generic.tpl | 4 ++-- plugins/personal/samba/class_sambaAccount.inc | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/plugins/admin/groups/generic.tpl b/plugins/admin/groups/generic.tpl index 141bcbf58..1ccd5cab0 100644 --- a/plugins/admin/groups/generic.tpl +++ b/plugins/admin/groups/generic.tpl @@ -56,7 +56,7 @@   {render acl=$gidNumberACL} - + {/render} diff --git a/plugins/personal/posix/generic.tpl b/plugins/personal/posix/generic.tpl index 7f55d6ec8..cb5f443ac 100644 --- a/plugins/personal/posix/generic.tpl +++ b/plugins/personal/posix/generic.tpl @@ -52,7 +52,7 @@ {render acl=$uidNumberACL} - + {/render} @@ -63,7 +63,7 @@ {render acl=$gidNumberACL} - + {/render} diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index c99544ea5..879f4e6ba 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -646,6 +646,16 @@ class sambaAccount extends plugin unset($this->attrs['uid']); unset($this->attrs['uidNumber']); unset($this->attrs['gidNumber']); + + /* Remove objectClass for sambaIdmapEntry */ + $tmp= array(); + for ($i= 0; $iattrs["objectClass"]); $i++){ + if ($this->attrs['objectClass'][$i] != 'sambaIdmapEntry'){ + $tmp[]= $this->attrs['objectClass'][$i]; + } + } + $this->attrs['objectClass']= $tmp; + @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->attributes, "Save"); $ldap->cd($this->dn); -- 2.30.2