0

I am working with Active Directory for the first time using ASP.NET / C#. I am using the following code to authenticate a user with given username/password on the login form. I need to know how can I search the user in a specific group like CN=MM_CMS_Users?

DirectoryEntry entry = new DirectoryEntry(adHost, UsernameTextBox.Text.Trim(), PasswordTextBox.Text.Trim());
object nativeObject = entry.NativeObject;
loginSuccess = true;

Thanks.

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
  • Assuming you are referring to security groups, do these links help?: https://stackoverflow.com/questions/12029378/how-to-check-if-a-user-belongs-to-an-ad-group, https://stackoverflow.com/questions/7915145/get-all-users-from-a-group-in-active-directory – Tawab Wakil Oct 30 '21 at 21:34

0 Answers0