I'm pretty sure the 'group' object in AD has something like an IsMember function that takes an adsPath. Do some research, i know i've seen it before (and probably wrote a few times too).