Adding ldap auth support
Use external database name