Commit e516318b authored by jiangbowen's avatar jiangbowen

test conn

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