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

        $userDn = $this->adldap->user()->dn($username);

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

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

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

        $userDn = $this->adldap->user()->dn($username);

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

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

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

@param string $groupName The group to add the user to
@param string $username  The user to add to the group

@return bool
Add a user to a group .