|
I just wanted to point out on this post that user isn't an
objectcategory, this would get changed to be objectcategory=person. For all
intents and purposes for this specific filter, it would be just as efficient but
could hurt you in other queries.
joe From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lou Vega Sent: Tuesday, October 19, 2004 10:28 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] groups vs attributes I may be missing something in the reading, but why not just query AD based on the username and determine if that user object is a member of the group in question instead of returning a list of all users for a given group? Another possibility (one you may well have thought of already but didn’t mention) is that you can filter your search [searcher.Filter = "(&(objectCategory=user)(sAMAccountName=" & Trim(userName) & "))"]
r/ Lou |
Title: groups vs attributes
