Query the Windows A/D or LDAP server

Hi all,

Does anyone have a method for querying an A/D (Active Directory) in a Windows server environment. It could be using LDAP? We are looking for a way to list the users in an A/D group to cross-reference with other data sources.

Thanks

Martin