First of all, sorry for my English. Here are two functions to check group membership and some others which can be useful for work with LDAP (Active Directory in this example). index.php --------- <?php $user = 'bob'; $password = 'zhlob'; $host = 'myldap'; $domain = 'mydomain.ex'; $basedn = 'dc=mydomain,dc=ex'; $group = 'SomeGroup'; $ad = ldap_connect("ldap://{$host}.{$domain}") or die('Could not c