From 6bfe328e9e88ddccc99163c9f3b809dd62fd72f1 Mon Sep 17 00:00:00 2001 From: psc Date: Mon, 22 Jun 2009 14:05:51 +0000 Subject: [PATCH] Compare LDAP::fix()'ed DNs only, because othereise the the comparison can fail if DNs contain special characters. (#1917) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13761 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc | 2 +- trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc index 45faac81f..991937afa 100644 --- a/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -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')); } diff --git a/trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc index 0ea570e81..8bf9f7eae 100644 --- a/trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc +++ b/trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc @@ -339,7 +339,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"){ -- 2.30.2