Working on my latest project required quite a degree of development against the Active Directory. Not having had any AD experience before slowed me down for a while, but after trawling through lost of news groups etc, I gathered enough information to do what I needed to do.I have developed an ADHelper class that will should take care of most AD requirements, from :-
All while returning DataSets to allow easy binding to datagrids etc.Im by no means an expert, but hopefully this helps some of you facing the same problems that I had.
NOTES=====This class will return a mix of ActiveDirectory 'DirectoryEntry' objects and DataSets that u can plug into your business layer
The first couple of lines that set the following private varables, need to be changed so that the 'Configuration' is the .Net ConfigurationSettings.AppSettings["xxx"].ToString, as the configuration object is a custom one that has not been included.
Change to :-
private