phpldapadmin/app/Http/Controllers/HomeController.php

19 lines
361 B
PHP
Raw Normal View History

2020-08-20 12:33:13 +00:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
2020-08-22 12:26:06 +00:00
use Leenooks\LDAP;
2020-08-20 12:33:13 +00:00
class HomeController extends Controller
{
2020-08-22 12:26:06 +00:00
public function home() {
$o = new LDAP\Server;
return view('home')
->with('server',config('ldap.connections.default.name')) // @todo This connection name should be a config item
->with('bases',$o->getBaseDN());
}
2020-08-20 12:33:13 +00:00
}