Re: querying AD users
- From: SpaceMarine <spacemarine@xxxxxxxxxxxxxx>
- Date: Sun, 6 Jul 2008 09:44:26 -0700 (PDT)
looks like the DirectoryServices class is where its at for this. the
DirectorySearcher class is used for, well, searching the directory.
there is a .Filter prop for passing in queries:
http://msdn.microsoft.com/en-us/library/system.directoryservices.directorysearcher.filter.aspx
....now i just gotta figure out the proper filter. its LDAP syntax. to
get all users w/ a last name of "A", i think its something like:
.Filter = "(objectClass=user)(lastName >= A)"
sm
.
- Follow-Ups:
- Re: querying AD users
- From: SpaceMarine
- Re: querying AD users
- References:
- querying AD users
- From: SpaceMarine
- querying AD users
- Prev by Date: querying AD users
- Next by Date: Re: querying AD users
- Previous by thread: querying AD users
- Next by thread: Re: querying AD users
- Index(es):