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!