I want to authenticate User against the MS Active Directory Server.
As there is two namespaces available for doing that I want to go with System.DirectoryServices.Protocols.
Current I am validating the User using following code
var valid = false;
var credentials = new NetworkCredential("user01", "password01");
var serverId = new LdapDirectoryIdentifier("192.168.1.21:389");
var conn = new LdapConnection(serverId, credentials);
try
{
conn.Bind();
valid = true;
}
catch
{
}
Above code is validating User correctly but It is also validating against the Old Password.
How Can I get rid this?
I have checked following Questions