Added server info

This commit is contained in:
Deon George
2020-09-19 00:08:00 +10:00
parent db61e0d1ce
commit d20a17d3fe
12 changed files with 397 additions and 330 deletions

View File

@@ -12,4 +12,14 @@ class Entry extends Model
* @var array
*/
public static $objectClasses = [];
public function rootDSE($connection = null)
{
return static::on($connection ?? (new static)->getConnectionName())
->in(null)
->read()
->select(['+'])
->whereHas('objectclass')
->firstOrFail();
}
}