LdapTools\Object\LdapObjectManager::validateObject PHP Method

validateObject() protected method

The DN attribute must be present to perform LDAP operations.
protected validateObject ( LdapObject $ldapObject )
$ldapObject LdapObject
    protected function validateObject(LdapObject $ldapObject)
    {
        if (!$ldapObject->has('dn')) {
            throw new InvalidArgumentException('To persist/delete/move/restore a LDAP object it must have the DN attribute.');
        }
    }