add auto-discover of the ldap servers

This adds auto-discover support for LDAP logins.