Commit 1069bea0 authored by jiangbowen's avatar jiangbowen

test conn

parent 747df8c5
...@@ -31,7 +31,7 @@ Route::get('/ad', function () { ...@@ -31,7 +31,7 @@ Route::get('/ad', function () {
var_export($ad); var_export($ad);
$config = [ $config = [
'hosts' => ["172.20.100.201"], 'hosts' => ["172.20.100.201"],
'base_dn'=>'dc=hoto,dc=test', 'base_dn'=>'ou=Users_hoto,dc=hoto,dc=test',
'username'=>'hoto\hcmadmin', 'username'=>'hoto\hcmadmin',
'password'=>'hcmadmin123' 'password'=>'hcmadmin123'
]; ];
...@@ -41,8 +41,8 @@ Route::get('/ad', function () { ...@@ -41,8 +41,8 @@ Route::get('/ad', function () {
try{ try{
// 'default','hoto\hcmadmin','hcmadmin123' // 'default','hoto\hcmadmin','hcmadmin123'
$provides = $ad->connect(); $provides = $ad->connect();
// $result = $provides->search()->ous()->find('tyestttt'); $result = $provides->search()->ous()->find('IT发展部');
var_export($provides);die; var_export($result);die;
}catch (Exception $e) { }catch (Exception $e) {
echo $e->getMessage(); echo $e->getMessage();
} }
......
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