Code

Applied lhm patch from revision : 13761
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Jun 2009 13:17:05 +0000 (13:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Jun 2009 13:17:05 +0000 (13:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13776 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/ogroups/class_ogroup.inc
gosa-core/plugins/admin/ogroups/tabs_ogroups.inc

index 45faac81fe78d25482a7d6ed49eb992db4cd95b5..991937afa05d319245796a9047aa368ded4ff50d 100644 (file)
@@ -914,7 +914,7 @@ class ogroup extends plugin
     }
 
     $ldap = $this->config->get_ldap_link();
-    if($this->dn != $new_dn){
+    if(LDAP::fix($this->dn) != LDAP::fix($new_dn)){
       $ldap->cat ($new_dn, array('dn'));
     }
     
index a5cbaf79fd15acdd56e34349e66234ee3b6facdc..f70d3c374fcf0b0ca175f1c6f5053efd117fa430 100644 (file)
@@ -343,7 +343,7 @@ class ogrouptabs extends tabs
     $new_dn= 'cn='.$baseobject->cn.','.get_ou('ogroupRDN').$baseobject->base;
 
     /* Move group? */
-    if ($this->dn != $new_dn){
+    if (LDAP::fix($this->dn) != LDAP::fix($new_dn)){
 
       /* Write entry on new 'dn' */
       if ($this->dn != "new"){