summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 669ff2d)
raw | patch | inline | side by side (parent: 669ff2d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Mar 2007 07:51:55 +0000 (07:51 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Mar 2007 07:51:55 +0000 (07:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5898 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index 26bf2169f5019979227694c817412cb10e7a9575..efcd5d1f38ae9f9e7b8c13906c6e17c82b91f644 100644 (file)
var $allusers= array();
var $department= "";
var $saved_gidNumber= "";
+ var $savedSID= "";
var $oldgroupType= "";
var $orig_dn= "";
var $orig_cn= "";
/* Get samba Domain in case of samba 3 */
if ($this->samba3 && $this->sambaSID != ""){
$this->SID= preg_replace ("/-[^-]+$/", "", $this->sambaSID);
+ $this->savedSID= $this->SID;
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
$ldap->search ("(&(objectClass=sambaDomain)(sambaSID=$this->SID))",array("sambaAlgorithmicRidBase"));
/* Check if we need to create a special entry */
if ($this->groupType == 0){
- if ($this->sambaSID == "" || $this->oldgroupType != $this->groupType){
+ if ($this->sambaSID == "" || $this->SID != $this->savedSID || $this->oldgroupType != $this->groupType ){
$gidNumber= $this->gidNumber;
while(TRUE){
$sid= $this->SID."-".($gidNumber*2 + $this->ridBase+1);