From 6f44fcb19212d8056ff13b06f6e0fa71eca34b9b Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 5 May 2006 04:45:39 +0000 Subject: [PATCH] REmoved self from server->repository parent url git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3202 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_servRepositorySetup.inc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/admin/systems/class_servRepositorySetup.inc b/plugins/admin/systems/class_servRepositorySetup.inc index b4a9d686f..24f1c92bd 100644 --- a/plugins/admin/systems/class_servRepositorySetup.inc +++ b/plugins/admin/systems/class_servRepositorySetup.inc @@ -9,16 +9,17 @@ class servRepositorySetup extends plugin /* attribute list for save action */ var $ignore_account = TRUE; - var $attributes = array("Release","ParentServer","Url"); + var $attributes = array("Release","ParentServer","Url","cn"); var $objectclasses = array("whatever"); /* Attributes */ - var $Release =""; - var $ParentServer =""; - var $Url =""; - var $Sections =array(); - var $ParentServers =""; - var $initialy_was=false; + var $Release = ""; + var $ParentServer = ""; + var $Url = ""; + var $Sections = array(); + var $ParentServers = ""; + var $initialy_was = false; + var $cn = ""; function servRepositorySetup ($config, $dn= NULL,$data = false) { @@ -144,6 +145,7 @@ class servRepositorySetup extends plugin $ldap->cd($this->config->current['BASE']); $ldap->search("(objectClass=FAIrepositoryServer)",array("*")); while($attr = $ldap->fetch()){ + if($attr['cn'][0] == $this->cn) continue; $ret[$attr['cn'][0]]= $attr['cn'][0]; } -- 2.30.2