Fix LDAP authentication to use proper 2-step process