0

I want to connect to Active Directory LDAP with 20000 users.

Owner of Active Directory created a username and password with sys admin credential for me.

With the code shown here, I can connect and I get true from Active Directory for admin user:

using var connection = new LdapConnection { SecureSocketLayer = false };
connection.Connect("www.somehost.com", LdapConnection.DefaultPort);
connection.Bind("CN=SU_AF,OU=SU_Users,OU=DC-SU,DC= MSN,DC=LOCAL,"ABC123!@#");

but I want to authenticate that 20000 user in lower branch with dn like this:

CN = 981105, ou = Contractors-Users,OU=MSN-Users,DC = MSN,DC = LOCAL"

Please help me!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Mohammad Naghsh
  • 207
  • 3
  • 10

0 Answers0