Code

Fixed LDAP inheritance
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Oct 2008 14:51:25 +0000 (14:51 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Oct 2008 14:51:25 +0000 (14:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12622 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc

index f48b2aabac3c68379e797e143b4396f980eecd79..e2488e675afd4dc4ddce1e5e9babca78b3d2b6e9 100644 (file)
@@ -113,11 +113,6 @@ class termstartup extends plugin
     }
     natcasesort($this->gotoLdapServerList);
 
-    if(!count($this->gotoLdapServers) && $this->member_of_ogroup){
-      $this->gotoLdap_inherit = TRUE;
-    }
-
-
     /* Load hardware list */
     $ldap= $this->config->get_ldap_link();
     $ldap->cd($this->config->current['BASE']);
@@ -146,6 +141,10 @@ class termstartup extends plugin
       $this->member_of_ogroup = TRUE;
       $this->o_group_dn = $attrs['dn'];
     }
+
+    if(!count($this->gotoLdapServers) && $this->member_of_ogroup){
+      $this->gotoLdap_inherit = TRUE;
+    }
   }
 
   function execute()