title: PHP LDAP (AD) Search for members of nested groups
body: <p>I'm looking for an possibility to check, if a user is a member of a group or not. The problem ... the group can be nested.</p>
  
  <p>Example:
  Group_A is member of Master_Group
  Group_B is member of Master_Group
  User_A is member of Group_A</p>
  
  <p>I've to check, if User_A is member of Master_Group (or nested Groups).</p>
  
  <pre><code>$result = ldap_search($ldap, $_GLOBAL["ldap_BaseDN"], "(????)");
  $info = ldap_get_entries($ldap, $result);
  </code></pre>
  
  <p>Do I have to foreach through every group and check if there is a nested group?</p>
  
  <p>Thank you in advance</p>