Fix LDAP user registration (#229)