Fix user migration on ldap authentication