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


Bohdan StupakRank #479 · 5.2K reputationPosted May 21, 2021, 4:09 AM EDT
Satya KarkiRank #78 · 24.6K reputationPosted May 21, 2021, 7:37 AM EDT
Rajendran SRank #2,222 · 632 reputationPosted May 22, 2021, 1:27 PM EDT