Fixed user duplication bug in LDAP