Code

Well. Better late than never. Applied second ridbase patch. Closes #352.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 13:50:37 +0000 (13:50 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Apr 2008 13:50:37 +0000 (13:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@10428 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupGeneric.inc

index 3e45d71ff4eb141b5af7ed277614d79f744147a9..45d7a8aec40453f20c7ee8d71e1533461804775f 100644 (file)
@@ -113,7 +113,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";