From 20af0cea6d1c14cc44942943117be0e67fb4fdf6 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 14 Apr 2008 13:52:07 +0000 Subject: [PATCH] Port from stable. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10429 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/groups/class_groupGeneric.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/gosa-core/plugins/admin/groups/class_groupGeneric.inc index 612021f49..a0f4fc79f 100644 --- a/gosa-core/plugins/admin/groups/class_groupGeneric.inc +++ b/gosa-core/plugins/admin/groups/class_groupGeneric.inc @@ -139,7 +139,11 @@ class group extends plugin $ldap->search ("(&(objectClass=sambaDomain)(sambaSID=$this->SID))",array("sambaAlgorithmicRidBase")); if ($ldap->count() != 0){ $attrs= $ldap->fetch(); - $this->ridBase= $attrs['sambaAlgorithmicRidBase'][0]; + if(isset($attrs['sambaAlgorithmicRidBase'])){ + $this->ridBase= $attrs['sambaAlgorithmicRidBase'][0]; + } else { + $this->ridBase= $this->config->current['RIDBASE']; + } /* Get domain name for SID */ $this->sambaDomainName= "DEFAULT"; -- 2.30.2