Commit 1069bea0 authored by jiangbowen's avatar jiangbowen

test conn

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