Commit 45c29aa8 authored by jiangbowen's avatar jiangbowen

test conn

parent 22c2894b
...@@ -206,9 +206,9 @@ class LdapController extends Controller ...@@ -206,9 +206,9 @@ class LdapController extends Controller
$hou_ous[] = "ou={$v}"; $hou_ous[] = "ou={$v}";
} }
$ou_str = implode(',',$ous); $ou_str = implode(',',$ous);
var_export($depts[0]); // var_export($depts[0]);
$result=$this->provider->search()->ous()->find($depts[0]); $result=$this->provider->search()->ous()->find($depts[0]);
var_export($result);die; // var_export($result);die;
$result->setDn("$ou_str,ou=IT发展部,ou=Users_hoto,dc=hoto,dc=test"); $result->setDn("$ou_str,ou=IT发展部,ou=Users_hoto,dc=hoto,dc=test");
// var_dump($result);die; // var_dump($result);die;
if ($result->exists) { if ($result->exists) {
......
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