Ldap rename bug: emulate flag was always false