Add ldap login support

New template and parameters for configuring ldap login.