var username = "admin-test";
var password = "admin-test";
var domain = "domain name";
var url = "urlname";
var credentials = new System.Net.NetworkCredential(username, password, domain);
var serverId = new LdapDirectoryIdentifier(url,399);
var connection = new LdapConnection(serverId, credentials);
var request = new SearchRequest("CN=Administrators,CN=Roles,CN=ldaptest,DC=au,DC=bp-plat,DC=domain", "(objectClass=simpleSecurityObject)", System.DirectoryServices.Protocols.SearchScope.Subtree, null);
Console.Write(request+"====================================>");
var response = (SearchResponse)connection.SendRequest(request);
AM trying to make ldap connection through the above code but i am getting invalid credential option though i am not getting while doing it manually can anyone help me on this ?
------------------------------
SANJIB SINHA
Software Senior Engineer
Asia/Kolkata
------------------------------