Merge branch '2013.10' into 2014.11
[tine20] / 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);
         
         
         $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;
         $group = $this->getGroupByIdFromSyncBackend($_group);
 
         return $group;