public function toModifySchema()
    {
        $this->validateRequired(['username']);

        if ($this->hasAttribute('container')) {
            if (!is_array($this->getAttribute('container'))) {
                throw new AdldapException('Container attribute must be an array');
            }
        }

        return $this->getAttributes();
    }