This is basic code that will list out all the user name. I would advise to
also look into the Filter property of the DirectorySearcher
Of course you would have to change the Response.Write's to whatever or
however you want to output the data retreived
I hope this helps!
DirectoryEntry de = new
DirectoryEntry(ActiveDirectoryQuery,Username,Passw ord);
DirectorySearcher ds = new DirectorySearcher(de);
try{
SearchResultCollection src = ds.FindAll();
foreach(SearchResult sr in src){
Response.Write(sr.Properties["samaccountname"][0].ToString();
}
}
catch(Exception ex){
Response.Write(ex.Message);
}
--
Abdellah Elamiri
..net Developer
Efficacy through simplicity
"Jay" <jg********@scf.sk.ca> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have an asp.net application that needs to fill a series of checkboxes
with usernames from a particular group in Active Directory.
Could someone please point me in the right direction in regards to a
snippet of code or a link to where I might info on this? I've checked msdn and
can find nothing definate.
Thanks in advance,
Jay