public function findBaseDn()
{
$schema = $this->schema;
$result = $this->setDn(null)->read()->raw()->whereHas($schema->objectClass())->first();
$key = $schema->defaultNamingContext();
if (is_array($result) && array_key_exists($key, $result)) {
if (array_key_exists(0, $result[$key])) {
return $result[$key][0];
}
}
return false;
}