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

调试4

parent 4caf11aa
......@@ -16,15 +16,15 @@ class LdapController extends Controller
public $provider=null;
public function __construct()
{
// $ad = new \Adldap\Adldap();
// $config = [
// 'hosts'=>[$this->host],
// 'base_dn'=>$this->dn,
// 'username' => $this->username,
// 'password' =>$this->password
// ];
// $ad->addProvider($config);
// $this->provider = $ad->connect();
$ad = new \Adldap\Adldap();
$config = [
'hosts'=>[$this->host],
'base_dn'=>$this->dn,
'username' => $this->username,
'password' =>$this->password
];
$ad->addProvider($config);
$this->provider = $ad->connect();
}
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