Ldap rename bug: emulate flag was always true

Ldap rename bug: emulate flag was always true