Commit 44d97fee authored by 张育槟's avatar 张育槟

调试4

parent 4caf11aa
...@@ -16,15 +16,15 @@ class LdapController extends Controller ...@@ -16,15 +16,15 @@ class LdapController extends Controller
public $provider=null; public $provider=null;
public function __construct() public function __construct()
{ {
// $ad = new \Adldap\Adldap(); $ad = new \Adldap\Adldap();
// $config = [ $config = [
// 'hosts'=>[$this->host], 'hosts'=>[$this->host],
// 'base_dn'=>$this->dn, 'base_dn'=>$this->dn,
// 'username' => $this->username, 'username' => $this->username,
// 'password' =>$this->password 'password' =>$this->password
// ]; ];
// $ad->addProvider($config); $ad->addProvider($config);
// $this->provider = $ad->connect(); $this->provider = $ad->connect();
} }
public function handle(Request $request) public function handle(Request $request)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment