Commit 4c76af02 authored by jiangbowen's avatar jiangbowen

test conn

parent d71b3ecb
......@@ -27,7 +27,8 @@ Route::get('/ad', function () {
// 'admin_username'=>'hcmadmin',
// 'admin_password'=>'hcmadmin123'
// ];
echo "new obj...\r\n";
var_export($ad);
$config = [
'hosts' => ["172.20.100.201"],
'base_dn'=>'ou=Users_hoto,dc=hoto,dc=test',
......@@ -35,7 +36,8 @@ Route::get('/ad', function () {
'password'=>'hcmadmin123'
];
$ad->addProvider($config);
// var_export($ad);
var_export($ad);
echo "new obj2...\r\n";
try{
$provides = $ad->connect();
var_export($provides);die;
......
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