Windows: obtain LDAP Organizational Unit
I have a User GUI开发者_StackOverflow社区D. How could I get the Organizational Unit (OU) of this user?
This forum response shows how to generate the proper LDAP query, after that you just need to fetch the OU attribute from the returned object.
精彩评论