Commit 29477148 authored by jiangbowen's avatar jiangbowen

test conn

parent 0d12ba06
...@@ -20,7 +20,7 @@ Route::get('/', function () { ...@@ -20,7 +20,7 @@ Route::get('/', function () {
Route::get('/ad', function () { Route::get('/ad', function () {
$ad = new \Adldap\Adldap(); $ad = new \Adldap\Adldap();
var_export($ad);die;
$config = [ $config = [
'domain_controllers' => ["172.20.100.201"], 'domain_controllers' => ["172.20.100.201"],
'base_dn'=>'ou=Users_hoto,dc=hoto,dc=test', 'base_dn'=>'ou=Users_hoto,dc=hoto,dc=test',
...@@ -29,9 +29,10 @@ Route::get('/ad', function () { ...@@ -29,9 +29,10 @@ Route::get('/ad', function () {
]; ];
$ad->addProvider($config); $ad->addProvider($config);
var_export($ad);
try{ try{
$provides = $ad->connect(); $provides = $ad->connect();
var_export($provides); var_export($provides);die;
}catch (Exception $e) { }catch (Exception $e) {
} }
......
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