src/Classes/AdldapGroups.php
public function addContact($groupName, $contactDn)
    {
        $groupDn = $this->dn($groupName);

        if ($groupDn && $contactDn) {
            $add = [];
            $add['member'] = $contactDn;

            return $this->connection->modAdd($groupDn, $add);
        }

        return false;
    }
public function addContact($groupName, $contactDn)
    {
        $groupDn = $this->dn($groupName);

        if ($groupDn && $contactDn) {
            $add = [];
            $add['member'] = $contactDn;

            return $this->connection->modAdd($groupDn, $add);
        }

        return false;
    }
public function addContact ( $ groupName , $ contactDn ) { $ groupDn = $ this -> dn ( $ groupName ) ; if ( $ groupDn && $ contactDn ) { $ add = [ ] ; $ add [ 'member' ] = $ contactDn ; return $ this -> connection -> modAdd ( $ groupDn , $ add ) ; } return false ; }
Add a contact to a group.

@param string $groupName The group to add the contact to
@param string $contactDn The DN of the contact to add

@return bool
Add a contact to a group .