public function groupRemoveMember($group_dn, $user) {

    $user_ldap_entry = $this->userUserToExistingLdapEntry($user);
    $result = FALSE;
    if ($user_ldap_entry && $this->groupGroupEntryMembershipsConfigured) {
      $del = array();
      $del[$this->groupMembershipsAttr] = $user_ldap_entry['dn'];
      $this->connectAndBindIfNotAlready();
      $result = @ldap_mod_del($this->connection, $group_dn, $del);
    }
    return $result;
  }
public function groupRemoveMember($group_dn, $user) {

    $user_ldap_entry = $this->userUserToExistingLdapEntry($user);
    $result = FALSE;
    if ($user_ldap_entry && $this->groupGroupEntryMembershipsConfigured) {
      $del = array();
      $del[$this->groupMembershipsAttr] = $user_ldap_entry['dn'];
      $this->connectAndBindIfNotAlready();
      $result = @ldap_mod_del($this->connection, $group_dn, $del);
    }
    return $result;
  }
public function groupRemoveMember ( $ group_dn , $ user ) { $ user_ldap_entry = $ this -> userUserToExistingLdapEntry ( $ user ) ; $ result = FALSE ; if ( $ user_ldap_entry && $ this -> groupGroupEntryMembershipsConfigured ) { $ del = array ( ) ; $ del [ $ this -> groupMembershipsAttr ] = $ user_ldap_entry [ 'dn' ] ; $ this -> connectAndBindIfNotAlready ( ) ; $ result = @ ldap_mod_del ( $ this -> connection , $ group_dn , $ del ) ; } return $ result ; }
NOT TESTED
remove a member from a group

@param string $group_dn as ldap dn
@param mixed $user
- drupal user object (stdClass Object)
- ldap entry of user (array) (with top level keys of 'dn', 'mail', 'sid' and 'attr' )
- ldap dn of user (array)
- drupal username of user (string)
NOT TESTED remove a member from a group