Courtesy of Raphael Burri - http://rburri.wordpress.com/2008/10/27/ad-integration-based-on-ou-membership/