getConnectionName()) ->in(NULL) ->read() ->select(['namingcontexts']) ->whereHas('objectclass') ->firstOrFail(); return $base->namingcontexts ? collect($base->namingcontexts) : NULL; } /** * Obtain the rootDSE for the server, that gives us server information * * @param null $connection * @return Entry|null * @throws ModelNotFoundException * @testedin TranslateOidTest::testRootDSE(); */ public function rootDSE($connection = NULL): ?Entry { return static::on($connection ?? (new static)->getConnectionName()) ->in(NULL) ->read() ->select(['+']) ->whereHas('objectclass') ->firstOrFail(); } }