I have found a lot of information from the past saying that LDAP authentication isn\'t enabled yet but you can get around that using third party packages. However, it seems
The LDAP Authentication can be achieved using System.DirectoryServices.Protocols namespace.
public Boolean IsAuthenticated(string username, string password,string domain)
{
Boolean authenticated = false;
//pass the connectionString here
using (LdapConnection connection = new LdapConnection(connectionString))
{
try
{
username = username + domain;
connection.AuthType = AuthType.Basic;
connection.SessionOptions.ProtocolVersion = 3;
var credential = new NetworkCredential(username, password);
connection.Bind(credential);
authenticated = true;
return authenticated;
}
catch (LdapException)
{
return authenticated;
}
finally
{
connection.Dispose();
}
}}