Help me !!!!
System.DirectoryServices.Protocols
I try to connect the LDAP Connection with the above assembly reference but it connection it says
The supplied credential is invalid.
80090308: LdapErr: DSID-0C090453, comment: AcceptSecurityContext error, data 52e, v3839
- using (LdapConnection ldapConnection = new LdapConnection(activeDirectoryServer) { Timeout = TimeSpan.FromSeconds(600) })
- {
- var networkCredential = new NetworkCredential(loginCN, ldpPassowrd, activeDirectpryDomain);
- ldapConnection.SessionOptions.SecureSocketLayer = true;
- ldapConnection.Credential = networkCredential;
- ldapConnection.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback(ServerCallback);
- ldapConnection.SessionOptions.ProtocolVersion = 3;
- ldapConnection.AuthType = AuthType.Basic;
- ldapConnection.Bind(networkCredential);
- }
If anyone already tried with that please help me