Commit 4db407e0 authored by jiangbowen's avatar jiangbowen

test conn

parent 0410bca6
......@@ -32,14 +32,14 @@ Route::get('/ad', function () {
$config = [
'hosts' => ["172.20.100.201"],
'base_dn'=>'dc=hoto,dc=test',
'username'=>'hoto.test\hcmadmin',
'username'=>'hoto\hcmadmin',
'password'=>'hcmadmin123'
];
$ad->addProvider($config);
var_export($ad);
echo "new obj2...\r\n";
try{
$provides = $ad->connect('default','hoto.test\hcmadmin','hcmadmin123');
$provides = $ad->connect('default','hoto\hcmadmin','hcmadmin123');
$result = $provides->search()->ous()->find('tyestttt');
var_export($result);die;
}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