public static bool VerifyLDAPS(string Login, string Password, out bool serverdown, out string exmsg)
{
serverdown = false;
exmsg = "";
string strLogin = "uid=" + Login + ",ou=users,ou=xxxx";
using (var conn = new LdapConnection(new LdapDirectoryIdentifier("10.10.10.184",636)))
{
try
{
conn.SessionOptions.ProtocolVersion = 3;
conn.AuthType = AuthType.Basic;
conn.Credential = new System.Net.NetworkCredential(strLogin, Password);
conn.SessionOptions.SecureSocketLayer = true;
conn.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback(ServerCallback);
conn.SessionOptions.QueryClientCertificate = new Q ...
Go to the complete details ...