c# - Fetch all users in active directory in a specified folder -
I am making an application for which Active Directory queries are needed and I use the ldap query for that purpose I am here.
My problem is that I can not really use ou = people, DC = pissoftware, dc = com because the name of the node keeps changing because my department's The name has changed a lot lately. Therefore, to avoid the problem of changing the code every time I changed the name, I was wondering if there is any way to ask a folder ID?
For example, maybe I have ouid = 123456, dc = pisoftware, dc = com
Why can not you do a LDAP query that applies a filter to the person only return to the object category = person. You can then target that query to the search base DN, so that they can still return what you want, even if the names of the nodes are changed / changed. There is a very good guide in which you discover how to do all this and how the questions work here:
Comments
Post a Comment