summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d42c435)
raw | patch | inline | side by side (parent: d42c435)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Sep 2008 16:11:21 +0000 (16:11 +0000) | ||
committer | cajus <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:
index 9fd72e779c801455f8f13f3061fb281c5513c4db..f48cddf83c08cebf926d543d5bf625e547fe860a 100644 (file)
.I ou=groups.
.PP
-.B serverou
+.B serverRDN
.I string
.PP
This statement defines the location where GOsa creates new servers inside of defined
.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)
*/
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){
$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)
"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,",
diff --git a/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/gosa-core/plugins/admin/groups/class_groupGeneric.inc
index 14bb6d69de5b164083cfcff4b4d81a0ab70b4e01..853d530cd493104e571ed903799caec590542f61 100644 (file)
/* 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){
diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc
index a41cff9867536e5917787790d4105e7e6ed78a21..37754c093047c2168b4a3e09e9f2d958e5e56b94 100644 (file)
$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);
"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" ,
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index 630e180b6650e22ee1c6ab649c5f6c56fb89317d..87be6dcc0e198083882b318d4f8bbac4336699c4 100644 (file)
$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)
}
$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){
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc
index c3b17f671af56d44eb802ab0322dbbeb59e8cce7..af7994697441a997990e35ca91a0e07af30f2187 100644 (file)
$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){
diff --git a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc
index cdde338d23707dc1633d2ef41693645db15bd4ef..abffb0390682508886e5a1e02f7940e846cc269b 100644 (file)
$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"),
diff --git a/gosa-plugins/goto/addons/goto/class_target_list.inc b/gosa-plugins/goto/addons/goto/class_target_list.inc
index 97b70e5c75ce86d0e5af5b41068e54cc9f16fe28..f5089cd4b243c366a6defa0400448bd071f1bf02 100644 (file)
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"),
diff --git a/gosa-plugins/goto/addons/goto/events/class_EventTargetAddList.inc b/gosa-plugins/goto/addons/goto/events/class_EventTargetAddList.inc
index 0df9e751d3029cea3a84d875b8cb433abda3c23e..eae22e2fb8f004deb1066eaba78e195e6d0583f3 100644 (file)
/* 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;
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){
diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc
index 46aa1f1f8b472dda1934e45113d3b409b57a2fcb..a2aa88a6f0f1999c2b4cd47c026320a8bcf3e22e 100644 (file)
/* 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)){
/* 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)){
/* 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)){
/* 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)){
diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
index 611e87264ce9408cb64526cd2b79c2748fbdfefa..d2c28eb469c7856d4372efa87427bfe8a62e3674 100644 (file)
$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 */
}
/* 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"));
diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc
index 87f5ef44eab17300e8b0ef53356951f7c345abae..1e24104ae8b760c8ea2e9b943c59e8677c62f6d1 100644 (file)
$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"),
diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc
index ad56167398df74963a837533b48cb699b09d1625..96a816f97632c23a59b45a14d8b1f5abac17b27d 100644 (file)
$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
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'])){
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc
index fe3d0e5b34588213fc14ac97430422df93438b8e..d9be8af66deff8ccc992375c5ef2e392bf9b4ab0 100644 (file)
$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"),
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index 18aa50c93b072b9e5f48e83f3f186d43750f88d7..ef3fa586a94c316aa6bf02ea7e7b25503d93ca30 100644 (file)
$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
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'])){
diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc b/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc
index 2a644f7fa972978e5a3be8084b7f2b060959d460..fbf62904c030f28c1b0317cc17cab8affd0de3ea 100644 (file)
/* 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"){
diff --git a/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc b/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc
index 147cc912ca4569a3cff3c6406952c4ecd2d008ba..158f055f6233e7c353f4f056866889d09258e07e 100644 (file)
$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" : {
diff --git a/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc b/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc
index 23f527b527b4b1608fe5e8344eaad83be7f2d36d..e32e9555eef1fa940a31162bc817878ed264e209 100644 (file)
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(
diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_exportxls.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_exportxls.inc
index 469090097c5a6395a9d43ff76bc8abfd565b9870..c0c4e8a0b4abdd84346be52c314f7964e7541767 100644 (file)
$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)
/* 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
$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=*)",
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc
index c7fc62c294a2d23c29805f473270058b2f416e1f..838b0859066b1b64beec10d6d37f251da7459296 100644 (file)
$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));
diff --git a/gosa-plugins/sudo/admin/sudo/class_target_list_systems.inc b/gosa-plugins/sudo/admin/sudo/class_target_list_systems.inc
index 64a676a481340f95b471d17393cfe95e642ed535..04d7942f18aec4a12d391a013aea6d3b7551cf8a 100644 (file)
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){
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{
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){
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 ));
}
}
diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc
index c52153441db85ea360fdfdd9ce7e70cbd6fef07e..a4fc61fa2ef8ace9a06e3a3d17ae888e1ee65aef 100644 (file)
$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");
/* 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 == ""){
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;
}
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index 1b26ef9a4f2705c559925a8db551482dda057793..85ca9f84ca7b81f2ecc2fdd2f602186ea8c32e05 100644 (file)
/* 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(),
/* 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')),
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index e0a6e7960c7418e96c6cc5186f8f5453671e348b..bca8b91eafa02e07123d980b403e05915f47f873 100644 (file)
*/
$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"),
diff --git a/gosa-plugins/systems/admin/systems/tabs_server.inc b/gosa-plugins/systems/admin/systems/tabs_server.inc
index 0df20e09ff03da36055aadbcf1f16d2521ea90a9..0c105219b39724cad92c061201bd4485d556ade0 100644 (file)
/* 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"){