From: psc Date: Fri, 19 Jun 2009 09:54:04 +0000 (+0000) Subject: Fix check for used DNs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7e2f3a207d2a3076cddd20ba25978dc7b35ce767;p=gosa.git Fix check for used DNs (Trac: #2673) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13740 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc index 59ad363be..6fa967349 100644 --- a/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc +++ b/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc @@ -1109,7 +1109,7 @@ class group extends plugin /* Check for used 'cn' */ $ldap= $this->config->get_ldap_link(); - if(($this->cn != $this->orig_cn) || ($this->orig_dn == "new")){ + if(($this->cn != $this->orig_cn) || ($this->orig_dn == "new") || ($new_dn != $this->orig_dn)){ $ldap->cd(get_groups_ou().$this->base); $ldap->ls("(&(|(objectClass=gosaGroupOfNames)(objectClass=posixGroup))(cn=$this->cn))",get_groups_ou().$this->base,array("cn")); if ($ldap->count() != 0){