Merge branch '2013.10' into 2014.11
authorPhilipp Schüle <p.schuele@metaways.de>
Thu, 16 Jul 2015 08:59:43 +0000 (10:59 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Thu, 16 Jul 2015 08:59:43 +0000 (10:59 +0200)
tine20/Tinebase/Group/Ldap.php

index 5e5519b..74df7cd 100644 (file)
@@ -625,6 +625,11 @@ class Tinebase_Group_Ldap extends Tinebase_Group_Sql implements Tinebase_Group_I
         
         $this->getLdap()->update($dn, $ldapData);
         
+        if ($metaData['cn'] != $ldapData['cn']) {
+            $newDn = "cn={$ldapData['cn']},{$this->_options['groupsDn']}";
+            $this->_ldap->rename($dn, $newDn);
+        }
+        
         $group = $this->getGroupByIdFromSyncBackend($_group);
 
         return $group;