Monday, 21 January 2008

Active Directory: Query catalogue 2

Hoping to keep commonly used functions in this solution. The Common project now contains a User and ActiveDirectory object.

The User class returns commonly accessed attributes for a particular user via DirectoryServices.

The ActiveDirectory class contains commonly used functions to access AD. For example:

ConnectToActiveDirectory()
GetActiveDirectoryUser(string)
GetActiveDirectoryUsers()
GetActiveDirectoryUsers(DropDownList)
GetAttributes(Common.User)

It currently contains the connection properties to access AD and this should eventually be moved into a config file. Also a service account would need to be created as it currently uses my login details.

A web front end test harness have been setup as a separate project to test these functions.

No comments: