/**
* Returns all of the attributes to be sent to LDAP after factoring in possible default schema values.
*
* @param array $attributes
* @return array
*/
protected function mergeDefaultAttributes(array $attributes)
{
if ($this->schema && !empty($this->schema->getDefaultValues())) {
$attributes = array_merge($this->schema->getDefaultValues(), $attributes);
}
return $attributes;
}