Code

Fix check for used DNs
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Jun 2009 09:54:04 +0000 (09:54 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Jun 2009 09:54:04 +0000 (09:54 +0000)
(Trac: #2673)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13740 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc

index 59ad363be3412589d66b8e601421087e99ce8457..6fa9673495657074bd54577c0403134c09cbe563 100644 (file)
@@ -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){