title: PHP/AD/LDAP: Nested group memberships
body: <p>I'm working on a PHP/Active Directory auth class, but would like to know how to resolve nested group memberships. It's a mess to make each user member of all needed groups, so I'd like to make use of groups in groups. How should I tackle this with LDAP?</p>
  
  <p>Code: <a href="http://pastie.org/private/ypuwba1cwnqklre4yhgr7g" rel="nofollow">http://pastie.org/private/ypuwba1cwnqklre4yhgr7g</a></p>