Code

New bunch of value changes
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Sep 2008 16:11:21 +0000 (16:11 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Sep 2008 16:11:21 +0000 (16:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12489 594d385d-05f5-0310-b6e9-bd551577e9d8

28 files changed:
gosa-core/contrib/gosa.conf.5
gosa-core/include/class_config.inc
gosa-core/include/functions.inc
gosa-core/plugins/admin/groups/class_groupGeneric.inc
gosa-core/plugins/admin/ogroups/class_ogroup.inc
gosa-core/plugins/personal/posix/class_posixAccount.inc
gosa-plugins/dak/addons/dak/class_DAK.inc
gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc
gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc
gosa-plugins/goto/addons/goto/class_target_list.inc
gosa-plugins/goto/addons/goto/events/class_EventTargetAddList.inc
gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc
gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
gosa-plugins/goto/admin/systems/goto/class_terminalService.inc
gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc
gosa-plugins/goto/admin/systems/goto/class_workstationService.inc
gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc
gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc
gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc
gosa-plugins/ldapmanager/addons/ldapmanager/class_exportxls.inc
gosa-plugins/ldapmanager/html/getxls.php
gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc
gosa-plugins/sudo/admin/sudo/class_target_list_systems.inc
gosa-plugins/systems/admin/systems/class_servGeneric.inc
gosa-plugins/systems/admin/systems/class_systemManagement.inc
gosa-plugins/systems/admin/systems/class_termDNS.inc
gosa-plugins/systems/admin/systems/tabs_server.inc

index 9fd72e779c801455f8f13f3061fb281c5513c4db..f48cddf83c08cebf926d543d5bf625e547fe860a 100644 (file)
@@ -697,7 +697,7 @@ departments. Default is
 .I ou=groups.
 .PP
 
-.B serverou
+.B serverRDN
 .I string
 .PP
 This statement defines the location where GOsa creates new servers inside of defined
@@ -705,7 +705,7 @@ departments. Default is
 .I ou=servers.
 .PP
 
-.B terminalou
+.B terminalRDN
 .I string
 .PP
 This statement defines the location where GOsa creates new terminals inside of defined
index 1d5a9387fcdaba723bcda08b1b248138de08be9b..4426bbdec456dee7d499994c7e2b07e2f0db87aa 100644 (file)
@@ -822,7 +822,7 @@ class config  {
    */
   function getShareList($listboxEntry = false)
   {
-    $tmp = get_sub_list("(&(objectClass=goShareServer)(goExportEntry=*))","server",get_ou("serverou"),
+    $tmp = get_sub_list("(&(objectClass=goShareServer)(goExportEntry=*))","server",get_ou("serverRDN"),
         $this->current['BASE'],array("goExportEntry","cn"), GL_NONE);
     $return =array();
     foreach($tmp as $entry){
@@ -859,7 +859,7 @@ class config  {
     $ui = get_userinfo();
     $base = $config->current['BASE'];
     $res= get_sub_list("(&(objectClass=goShareServer)(goExportEntry=*))", "server",
-          get_ou("serverou"), $base,array("goExportEntry","cn"),GL_NONE | GL_NO_ACL_CHECK);
+          get_ou("serverRDN"), $base,array("goExportEntry","cn"),GL_NONE | GL_NO_ACL_CHECK);
 
     foreach($res as $entry){
         
index ddd59b46639c761d71285e08ddcdeda366beb52d..b635eb88f101efd8950d6188c2d6dfe1922af24a 100644 (file)
@@ -1156,8 +1156,8 @@ function get_ou($name)
                 "ogroupou"      => "ou=groups,",
                 "applicationou" => "ou=apps,",
                 "systemsou"     => "ou=systems,",
-                "serverou"      => "ou=servers,ou=systems,",
-                "terminalou"    => "ou=terminals,ou=systems,",
+                "serverRDN"      => "ou=servers,ou=systems,",
+                "terminalRDN"    => "ou=terminals,ou=systems,",
                 "workstationou" => "ou=workstations,ou=systems,",
                 "printerou"     => "ou=printers,ou=systems,",
                 "phoneou"       => "ou=phones,ou=systems,",
index 14bb6d69de5b164083cfcff4b4d81a0ab70b4e01..853d530cd493104e571ed903799caec590542f61 100644 (file)
@@ -372,9 +372,9 @@ class group extends plugin
       /* Search for systems 
        */
       $types = array();
-      $types['server']      = array("OU" => get_ou("serverou"),     "OC" => "(objectClass=goServer)");
+      $types['server']      = array("OU" => get_ou("serverRDN"),     "OC" => "(objectClass=goServer)");
       $types['workstation'] = array("OU" => get_ou("workstationou"),"OC" => "(objectClass=gotoWorkstation)");
-      $types['terminal']    = array("OU" => get_ou("terminalou"),   "OC" => "(objectClass=gotoTerminal)");
+      $types['terminal']    = array("OU" => get_ou("terminalRDN"),   "OC" => "(objectClass=gotoTerminal)");
       
       $res = array();
       foreach($types as $acl => $data){
index a41cff9867536e5917787790d4105e7e6ed78a21..37754c093047c2168b4a3e09e9f2d958e5e56b94 100644 (file)
@@ -335,8 +335,8 @@ class ogroup extends plugin
       $regex= $sysfilter['regex'];
       $filter= "(&(|(objectClass=goServer)(objectClass=gotoWorkstation)(objectClass=gotoTerminal))$exclude(cn=*)(cn=$regex))";
 
-      $deps_a = array(get_ou("serverou"),
-          get_ou("terminalou"),
+      $deps_a = array(get_ou("serverRDN"),
+          get_ou("terminalRDN"),
           get_ou("workstationou"));
       $res= get_sub_list($filter, array("terminal","server","workstation"), $deps_a, get_ou("systemsou").$sysfilter['depselect'],
           array("cn"), GL_SUBSEARCH | GL_SIZELIMIT);
@@ -656,13 +656,13 @@ class ogroup extends plugin
         "departments"     => array("OBJ"=>"department", "CLASS"=>"gosaDepartment" ,
           "DN"=> ""                        ,"ACL" => "department"), 
         "servers"         => array("OBJ"=>"servgeneric", "CLASS"=>"goServer"       ,
-          "DN"=> get_ou('serverou')        ,"ACL" => "server"),
+          "DN"=> get_ou('serverRDN')        ,"ACL" => "server"),
         "workstations"    => array("OBJ"=>"workgeneric", "CLASS"=>"gotoWorkstation",
           "DN"=> get_ou('workstationou')   ,"ACL" => "workstation"),
         "winstations"     => array("OBJ"=>"wingeneric", "CLASS"=>"opsiClient",        
           "DN"=> get_ou('SAMBAMACHINEACCOUNTRDN')     ,"ACL" => "winstation"),
         "terminals"       => array("OBJ"=>"termgeneric", "CLASS"=>"gotoTerminal"   ,
-          "DN"=> get_ou('terminalou')      ,"ACL" => "terminal"),
+          "DN"=> get_ou('terminalRDN')      ,"ACL" => "terminal"),
         "printers"        => array("OBJ"=>"printgeneric", "CLASS"=>"gotoPrinter"    ,
           "DN"=> get_ou('printerou')       ,"ACL" => "printer"),
         "phones"          => array("OBJ"=>"phoneGeneric", "CLASS"=>"goFonHardware"  ,
index 630e180b6650e22ee1c6ab649c5f6c56fb89317d..87be6dcc0e198083882b318d4f8bbac4336699c4 100644 (file)
@@ -396,8 +396,8 @@ class posixAccount extends plugin
 
       $filter= "(&(|(objectClass=goServer)(objectClass=gotoWorkstation)(objectClass=gotoTerminal))$exclude(cn=*)(cn=$regex))";
 
-      $deps_a = array(get_ou("serverou"),
-                      get_ou("terminalou"),
+      $deps_a = array(get_ou("serverRDN"),
+                      get_ou("terminalRDN"),
                       get_ou("workstationou")); 
 
       $res= get_sub_list($filter, $acls, $deps_a, get_ou("systemsou").$sysfilter['depselect'], array("cn"), GL_SUBSEARCH | GL_SIZELIMIT);
index 79da99fb7250aa91fdf6f575f0571f04b76e6058..ce41bee46b2ee2c77e8707c60408751a93f82292 100644 (file)
@@ -45,7 +45,7 @@ class DAK
     }
     $res = array();
     $rest = get_sub_list("(&(macAddress=*)(FAIrepository=*)(objectClass=FAIrepositoryServer))",
-        "server",get_ou("serverou"),$config->current['BASE'],
+        "server",get_ou("serverRDN"),$config->current['BASE'],
         array("cn","FAIrepository","macAddress"),GL_SUBSEARCH);
 
     foreach($rest as $attrs){
index c3b17f671af56d44eb802ab0322dbbeb59e8cce7..af7994697441a997990e35ca91a0e07af30f2187 100644 (file)
@@ -665,7 +665,7 @@ class DNS
     
       $ret = array();
       $ldap = $config->get_ldap_link();
-      $tmp = get_sub_list("(&(objectClass=dNSZone)(sOARecord=*))","",get_ou("serverou"),
+      $tmp = get_sub_list("(&(objectClass=dNSZone)(sOARecord=*))","",get_ou("serverRDN"),
           $config->current['BASE'],array("zoneName"),GL_NO_ACL_CHECK | GL_SUBSEARCH);
 
       foreach($tmp as $at){
index cdde338d23707dc1633d2ef41693645db15bd4ef..abffb0390682508886e5a1e02f7940e846cc269b 100644 (file)
@@ -179,8 +179,8 @@ class phoneAccount extends plugin
     $deps_a = array(
         get_people_ou(),
         get_ou("ogroupou"),
-        get_ou("serverou"),
-        get_ou("terminalou"),
+        get_ou("serverRDN"),
+        get_ou("terminalRDN"),
         get_ou("workstationou"),
         get_ou("printerou"),
         get_ou("componentou"),
index 97b70e5c75ce86d0e5af5b41068e54cc9f16fe28..f5089cd4b243c366a6defa0400448bd071f1bf02 100644 (file)
@@ -279,13 +279,13 @@ class target_list extends MultiSelectWindow
             array("cn","objectClass","ipHostNumber","description"), GL_SIZELIMIT );
       $res= array_merge($res,get_list($filter, "workstation",  get_ou('workstationou').$base, 
             array("cn","objectClass","ipHostNumber","description"), GL_SIZELIMIT ));
-      $res= array_merge($res,get_list($filter, "server", get_ou('serverou').$base, 
+      $res= array_merge($res,get_list($filter, "server", get_ou('serverRDN').$base, 
             array("cn","objectClass","ipHostNumber","description"), GL_SIZELIMIT ));
 
       $deps_a = array(
           get_ou("workstationou"),
           get_ou("incominou"),
-          get_ou("serverou"),
+          get_ou("serverRDN"),
           get_ou("ogroupou"));
 
       $res = get_sub_list($filter,array("server","incoming","workstation","ogroup"), 
index 0df9e751d3029cea3a84d875b8cb433abda3c23e..eae22e2fb8f004deb1066eaba78e195e6d0583f3 100644 (file)
@@ -80,7 +80,7 @@ class EventTargetAddList extends MultiSelectWindow
     /* Create a list of servers
      */
     $tmp = get_sub_list("(&(macAddress=*)(objectClass=goServer))",
-          "server",get_ou("serverou"),$config->current['BASE'],
+          "server",get_ou("serverRDN"),$config->current['BASE'],
           array("cn","objectClass","description","ipHostNumber","macAddress"),GL_SUBSEARCH);
     foreach($tmp as $server){
       $this->server_list[$server['dn']] = $server;
@@ -196,7 +196,7 @@ class EventTargetAddList extends MultiSelectWindow
     if($this->display_server){
       $_target_list = array_merge($_target_list,
             get_list("(&(cn=".$this->regex.")(objectClass=goServer))",
-            "server",get_ou("serverou").$this->selectedBase,
+            "server",get_ou("serverRDN").$this->selectedBase,
             array("cn","objectClass","description","ipHostNumber","macAddress"),GL_NONE));
     }
     if($this->display_workstation){
index 46aa1f1f8b472dda1934e45113d3b409b57a2fcb..a2aa88a6f0f1999c2b4cd47c026320a8bcf3e22e 100644 (file)
@@ -63,7 +63,7 @@ class printgeneric extends plugin
 
     /* Update dn, to ensure storing as printer instead of WS / terminal */
     if(preg_match("/Terminal/i",$this->BelongsTo) || preg_match("/TerminalTemplate/i",$this->BelongsTo)){
-      $this->dn= preg_replace("/".normalizePreg(get_ou('terminalou'))."/",get_ou('printerou'),$this->dn);
+      $this->dn= preg_replace("/".normalizePreg(get_ou('terminalRDN'))."/",get_ou('printerou'),$this->dn);
     }
 
     if(preg_match("/Workstation/i",$this->BelongsTo) || preg_match("/WorkstationTemplate/i",$this->BelongsTo)){
@@ -220,7 +220,7 @@ class printgeneric extends plugin
       /* Update dn, to ensure storing as printer instead of WS / terminal
        */
       if(preg_match("/terminal/i",$this->BelongsTo)){
-        $this->dn= preg_replace("/".normalizePreg(get_ou('terminalou'))."/",get_ou('printerou'),$this->dn);
+        $this->dn= preg_replace("/".normalizePreg(get_ou('terminalRDN'))."/",get_ou('printerou'),$this->dn);
       }
 
       if(preg_match("/workstation/i",$this->BelongsTo)){
@@ -569,7 +569,7 @@ class printgeneric extends plugin
       /* Update dn, to ensure storing as printer instead of WS / terminal
        */
       if(preg_match("/terminal/i",$this->BelongsTo)){
-        $this->dn= preg_replace("/".normalizePreg(get_ou('terminalou')).",/",get_ou('printerou'),$this->dn);
+        $this->dn= preg_replace("/".normalizePreg(get_ou('terminalRDN')).",/",get_ou('printerou'),$this->dn);
       }
 
       if(preg_match("/workstation/i",$this->BelongsTo)){
@@ -716,7 +716,7 @@ class printgeneric extends plugin
     /* Update dn, to ensure storing as printer instead of WS / terminal
      */
     if(preg_match("/terminal/i",$this->BelongsTo)){
-      $this->dn= preg_replace("/".normalizePreg(get_ou('terminalou')).",/",get_ou('printerou'),$this->dn);
+      $this->dn= preg_replace("/".normalizePreg(get_ou('terminalRDN')).",/",get_ou('printerou'),$this->dn);
     }
 
     if(preg_match("/workstation/i",$this->BelongsTo)){
index 611e87264ce9408cb64526cd2b79c2748fbdfefa..d2c28eb469c7856d4372efa87427bfe8a62e3674 100644 (file)
@@ -125,7 +125,7 @@ class termgeneric extends plugin
       $ui= get_userinfo();
       $this->base= dn2base($ui->dn);
     } else {
-      $this->base= preg_replace ("/^[^,]+,".normalizePreg(get_ou("terminalou"))."/", "", $this->dn);
+      $this->base= preg_replace ("/^[^,]+,".normalizePreg(get_ou("terminalRDN"))."/", "", $this->dn);
     }
 
     /* Create an array of all Syslog servers */
@@ -426,7 +426,7 @@ class termgeneric extends plugin
     }
 
     /* Permissions for that base? */
-    $this->dn= "cn=".$this->cn.",".get_ou('terminalou').$this->base;
+    $this->dn= "cn=".$this->cn.",".get_ou('terminalRDN').$this->base;
 
     if ($this->cn == ""){
       $message[]= msgPool::required(_("Name"));
index 87f5ef44eab17300e8b0ef53356951f7c345abae..1e24104ae8b760c8ea2e9b943c59e8677c62f6d1 100644 (file)
@@ -199,8 +199,8 @@ class termservice extends plugin
     $deps_a = array(
         get_people_ou(),
         get_ou("ogroupou"),
-        get_ou("serverou"),
-        get_ou("terminalou"),
+        get_ou("serverRDN"),
+        get_ou("terminalRDN"),
         get_ou("workstationou"),
         get_ou("printerou"),
         get_ou("componentou"),
index ad56167398df74963a837533b48cb699b09d1625..96a816f97632c23a59b45a14d8b1f5abac17b27d 100644 (file)
@@ -355,7 +355,7 @@ class termstartup extends plugin
       $ldap= $this->config->get_ldap_link();
 
       /* Strip relevant part from dn, keep trailing ',' */
-      $tmp= preg_replace("/^cn=[^,]+,".get_ou('terminalou')."/i", "", $this->dn);
+      $tmp= preg_replace("/^cn=[^,]+,".get_ou('terminalRDN')."/i", "", $this->dn);
       $tmp= preg_replace("/".$this->config->current['BASE']."$/i", "", $tmp);
 
       /* Walk from top to base and try to load default values for
@@ -363,7 +363,7 @@ class termstartup extends plugin
       while (TRUE){
         $tmp= preg_replace ("/^[^,]+,/", "", $tmp);
 
-        $ldap->cat("cn=default,".get_ou('terminalou').$tmp.
+        $ldap->cat("cn=default,".get_ou('terminalRDN').$tmp.
             $this->config->current['BASE'], array('gotoTerminalPath'));
         $attrs= $ldap->fetch();
         if (isset($attrs['gotoTerminalPath'])){
index fe3d0e5b34588213fc14ac97430422df93438b8e..d9be8af66deff8ccc992375c5ef2e392bf9b4ab0 100644 (file)
@@ -162,8 +162,8 @@ class workservice extends plugin
     $deps_a = array(
         get_people_ou(),
         get_ou("ogroupou"),
-        get_ou("serverou"),
-        get_ou("terminalou"),
+        get_ou("serverRDN"),
+        get_ou("terminalRDN"),
         get_ou("workstationou"),
         get_ou("printerou"),
         get_ou("componentou"),
index 18aa50c93b072b9e5f48e83f3f186d43750f88d7..ef3fa586a94c316aa6bf02ea7e7b25503d93ca30 100644 (file)
@@ -801,7 +801,7 @@ class workstartup extends plugin
       $ldap= $this->config->get_ldap_link();
 
       /* Strip relevant part from dn, keep trailing ',' */
-      $tmp= preg_replace("/^cn=[^,]+,".get_ou('terminalou')."/i", "", $this->dn);
+      $tmp= preg_replace("/^cn=[^,]+,".get_ou('terminalRDN')."/i", "", $this->dn);
       $tmp= preg_replace("/".$this->config->current['BASE']."$/i", "", $tmp);
 
       /* Walk from top to base and try to load default values for
@@ -809,7 +809,7 @@ class workstartup extends plugin
       while (TRUE){
         $tmp= preg_replace ("/^[^,]+,/", "", $tmp);
 
-        $ldap->cat("cn=default,".get_ou('terminalou').$tmp.
+        $ldap->cat("cn=default,".get_ou('terminalRDN').$tmp.
             $this->config->current['BASE'], array('gotoTerminalPath'));
         $attrs= $ldap->fetch();
         if (isset($attrs['gotoTerminalPath'])){
index 2a644f7fa972978e5a3be8084b7f2b060959d460..fbf62904c030f28c1b0317cc17cab8affd0de3ea 100644 (file)
@@ -81,7 +81,7 @@ class termtabs extends tabs
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
     $baseobject= $this->by_object['termgeneric'];
-    $this->dn= "cn=".$baseobject->cn.",".get_ou('terminalou').$baseobject->base;
+    $this->dn= "cn=".$baseobject->cn.",".get_ou('terminalRDN').$baseobject->base;
     $baseobject->dn= $this->dn;
 
     if($this->dn != $baseobject->orig_dn && $baseobject->orig_dn != "new"){
index 147cc912ca4569a3cff3c6406952c4ecd2d008ba..158f055f6233e7c353f4f056866889d09258e07e 100644 (file)
@@ -114,7 +114,7 @@ class servnfs extends plugin
         $smarty->assign("mount_checked", "checked");
       } else {
         $tmp = split(",", $this->dn);
-        $clip = $tmp[0] . ",".get_ou('serverou');
+        $clip = $tmp[0] . ",".get_ou('serverRDN');
         $mountsdn = "cn=mounts," . substr($this->dn, strlen($clip));
         switch ($this->type) {
           case "netatalk" : {
index 23f527b527b4b1608fe5e8344eaad83be7f2d36d..e32e9555eef1fa940a31162bc817878ed264e209 100644 (file)
@@ -240,7 +240,7 @@ class goShareServer extends goService{
 
    function process_mounts() {
 
-    $clip = "cn=" . $this->cn . ",".get_ou('serverou');
+    $clip = "cn=" . $this->cn . ",".get_ou('serverRDN');
     $mountsdn = "cn=mounts," . substr($this->dn, strlen($clip));
 
     $mounts = array(
index 469090097c5a6395a9d43ff76bc8abfd565b9870..c0c4e8a0b4abdd84346be52c314f7964e7541767 100644 (file)
@@ -77,7 +77,7 @@ class xlsexport extends plugin
     $smarty->assign("choicelist",array( get_people_ou()             =>"users" ,
                                         get_groups_ou()             =>"groups" ,
                                         get_ou('systemsou')         =>"computers",
-                                        get_ou('serverou')          =>"servers",
+                                        get_ou('serverRDN')          =>"servers",
                                         "dc=addressbook,"           =>"addressbook"));
 
     // Get the LDAP link, to generate the Export
index bebcb3dd8084da4dc1f71a6db79cb36955671ba9..5f324950458bc53ce64e980829243740fd669042 100644 (file)
@@ -183,7 +183,7 @@ function dump_ldap ($mode= 0)
      /* SYSTEMS 
        Get all systems from th $dn
        and put them into the xls work sheet */
-     case get_ou('serverou'): $servers= $ldap->gen_xls($dn,"(objectClass=*)",array("cn"));
+     case get_ou('serverRDN'): $servers= $ldap->gen_xls($dn,"(objectClass=*)",array("cn"));
        $intitul=array(_("Server name").":");
 
        //name of the xls file
@@ -288,7 +288,7 @@ function dump_ldap ($mode= 0)
     $computers= $ldap->gen_xls("ou=computers,".$dn,"(objectClass=*)",array("cn","description","uid"));
     $computers_intitul=array(_("Description").":",_("UID").":");
     //data about servers
-    $servers= $ldap->gen_xls(get_ou('serverou').$dn,"(objectClass=*)",array("cn"));
+    $servers= $ldap->gen_xls(get_ou('serverRDN').$dn,"(objectClass=*)",array("cn"));
     $servers_intitul=array(_("Name").":");
     //data about addressbook
     $address= $ldap->gen_xls("dc=addressbook,".$dn,"(objectClass=*)",
index c7fc62c294a2d23c29805f473270058b2f416e1f..838b0859066b1b64beec10d6d37f251da7459296 100644 (file)
@@ -620,9 +620,9 @@ class sudo extends plugin
     $filter= "(&(|(objectClass=goServer)(objectClass=gotoWorkstation)(objectClass=gotoTerminal))$exclude(cn=*)(cn=$regex))";
 
     $res = array();
-    $res= array_merge($res,get_sub_list($filter, array("terminal"), get_ou("terminalou"),
+    $res= array_merge($res,get_sub_list($filter, array("terminal"), get_ou("terminalRDN"),
         get_ou("systemsou").$sysfilter['depselect'],          array("cn"), GL_SUBSEARCH | GL_SIZELIMIT));
-    $res= array_merge($res,get_sub_list($filter, array("server"), get_ou("serverou"), 
+    $res= array_merge($res,get_sub_list($filter, array("server"), get_ou("serverRDN"), 
         get_ou("systemsou").$sysfilter['depselect'],          array("cn"), GL_SUBSEARCH | GL_SIZELIMIT));
     $res= array_merge($res,get_sub_list($filter, array("workstation"), get_ou("workstationou"),
         get_ou("systemsou").$sysfilter['depselect'],          array("cn"), GL_SUBSEARCH | GL_SIZELIMIT));
index 64a676a481340f95b471d17393cfe95e642ed535..04d7942f18aec4a12d391a013aea6d3b7551cf8a 100644 (file)
@@ -232,7 +232,7 @@ class target_list_systems extends MultiSelectWindow
       if($this->terminal){
         $filter = "(objectClass=gotoTerminal)";
         $filter= "(&(cn=".$Regex.")(|".$filter."))";
-        $res= array_merge($res,get_sub_list($filter,"terminal",get_ou('terminalou'),$base, 
+        $res= array_merge($res,get_sub_list($filter,"terminal",get_ou('terminalRDN'),$base, 
               array("cn","objectClass","description"), GL_SIZELIMIT | GL_SUBSEARCH));
       }
       if($this->workstation){
@@ -244,7 +244,7 @@ class target_list_systems extends MultiSelectWindow
       if($this->server){
         $filter = "(objectClass=goServer)";
         $filter = "(&(cn=".$Regex.")(|".$filter."))";
-        $res= array_merge($res,get_sub_list($filter, "server", get_ou('serverou'),$base, 
+        $res= array_merge($res,get_sub_list($filter, "server", get_ou('serverRDN'),$base, 
               array("cn","objectClass","description"), GL_SIZELIMIT | GL_SUBSEARCH));
       }
     }else{
@@ -252,7 +252,7 @@ class target_list_systems extends MultiSelectWindow
       if($this->terminal){
         $filter = "(objectClass=gotoTerminal)";
         $filter= "(&(cn=".$Regex.")(|".$filter."))";
-        $res= array_merge($res,get_list($filter,"terminal", get_ou('terminalou').$base, 
+        $res= array_merge($res,get_list($filter,"terminal", get_ou('terminalRDN').$base, 
               array("cn","objectClass","description"), GL_SIZELIMIT ));
       }
       if($this->workstation){
@@ -264,7 +264,7 @@ class target_list_systems extends MultiSelectWindow
       if($this->server){
         $filter = "(objectClass=goServer)";
         $filter = "(&(cn=".$Regex.")(|".$filter."))";
-        $res= array_merge($res,get_list($filter, "server", get_ou('serverou').$base, 
+        $res= array_merge($res,get_list($filter, "server", get_ou('serverRDN').$base, 
               array("cn","objectClass","description"), GL_SIZELIMIT ));
       }
     }
index c52153441db85ea360fdfdd9ce7e70cbd6fef07e..a4fc61fa2ef8ace9a06e3a3d17ae888e1ee65aef 100644 (file)
@@ -92,7 +92,7 @@ class servgeneric extends plugin
       $this->base= dn2base($ui->dn);
       $this->cn= "";
     } else {
-      $this->base= preg_replace ("/^[^,]+,".normalizePreg(get_ou("serverou"))."/", "", $this->dn);
+      $this->base= preg_replace ("/^[^,]+,".normalizePreg(get_ou("serverRDN"))."/", "", $this->dn);
     }
     $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses);
     $this->netConfigDNS->set_acl_category("server");
@@ -332,7 +332,7 @@ class servgeneric extends plugin
     /* Call common method to give check the hook */
     $message= plugin::check();
     $message= array_merge($message, $this->netConfigDNS->check());
-    $this->dn= "cn=".$this->cn.",".get_ou('serverou').$this->base;
+    $this->dn= "cn=".$this->cn.",".get_ou('serverRDN').$this->base;
 
     /* must: cn */
     if ($this->cn == ""){
@@ -351,7 +351,7 @@ class servgeneric extends plugin
       if ($ldap->count() != 0){
         while ($attrs= $ldap->fetch()){
           if ($attrs['dn'] != $this->orig_dn){
-            if(!preg_match("/cn=dhcp,/",$attrs['dn']) && !preg_match("/,".get_ou('incomingou')."/",$attrs['dn']) && preg_match("/,".get_ou('serverou')."/",$attrs['dn'])){
+            if(!preg_match("/cn=dhcp,/",$attrs['dn']) && !preg_match("/,".get_ou('incomingou')."/",$attrs['dn']) && preg_match("/,".get_ou('serverRDN')."/",$attrs['dn'])){
               $message[]= msgPool::duplicated(_("Server name"));
               break;
             }
index 1b26ef9a4f2705c559925a8db551482dda057793..85ca9f84ca7b81f2ecc2fdd2f602186ea8c32e05 100644 (file)
@@ -1062,10 +1062,10 @@ class systems extends plugin
     /* Check acls, if we are not allowed to create and write each plugin tab, skip this object */
 
     $tabs = array(
-        "terminal"        => get_ou('terminalou'),
+        "terminal"        => get_ou('terminalRDN'),
         "workstation"     => get_ou('workstationou'),
         "incoming"        => get_ou('incomingou'),
-        "server"          => get_ou('serverou'),
+        "server"          => get_ou('serverRDN'),
         "printer"         => get_ou('printerou'),
         "phone"           => get_ou('phoneou'),
         "winworkstation"  => get_winstations_ou(),
@@ -1143,8 +1143,8 @@ class systems extends plugin
 
     /* This array represents the combination between checkboxes and search filters */
     $objs = array( 
-        "ShowServers"        => array("TAB" => "servtabs",      "CLASS" => "goServer"        ,"TREE" => get_ou('serverou')),
-        "ShowTerminals"      => array("TAB" => "termtabs",      "CLASS" => "gotoTerminal"    ,"TREE" => get_ou('terminalou')),
+        "ShowServers"        => array("TAB" => "servtabs",      "CLASS" => "goServer"        ,"TREE" => get_ou('serverRDN')),
+        "ShowTerminals"      => array("TAB" => "termtabs",      "CLASS" => "gotoTerminal"    ,"TREE" => get_ou('terminalRDN')),
         "ShowPrinters"       => array("TAB" => "printtabs",     "CLASS" => "gotoPrinter"     ,"TREE" => get_ou('printerou')),
         "ShowDevices"        => array("TAB" => "componenttabs", "CLASS" => "ieee802Device"   ,"TREE" => get_ou('componentou')),
         "ShowPhones"         => array("TAB" => "phonetabs",     "CLASS" => "goFonHardware"   ,"TREE" => get_ou('phoneou')),
index e0a6e7960c7418e96c6cc5186f8f5453671e348b..bca8b91eafa02e07123d980b403e05915f47f873 100644 (file)
@@ -185,8 +185,8 @@ class termDNS extends plugin
      */
     $deps  = array();
     $ou = preg_replace("/,.*$/","",get_ou("systemsou"));
-    $a_ous = array(get_ou("serverou"),
-                  get_ou("terminalou"),
+    $a_ous = array(get_ou("serverRDN"),
+                  get_ou("terminalRDN"),
                   get_ou("workstationou"),
                   get_ou("printerou"),
                   get_ou("phoneou"),
index 0df20e09ff03da36055aadbcf1f16d2521ea90a9..0c105219b39724cad92c061201bd4485d556ade0 100644 (file)
@@ -95,7 +95,7 @@ class servtabs extends tabs
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
     $baseobject= $this->by_object['servgeneric'];
-    $this->dn= "cn=$baseobject->cn,".get_ou('serverou').$baseobject->base;
+    $this->dn= "cn=$baseobject->cn,".get_ou('serverRDN').$baseobject->base;
 
     /* cn is not case sensitive for ldap, but for php it is!! */
     if($baseobject->orig_dn != "new"){