Commit f1ef5e8f authored by 张育槟's avatar 张育槟

调试5

parent e4cfc274
......@@ -122,7 +122,7 @@ class LdapController extends Controller
$entry=["cn"=>"{$value}"];
$user=$this->provider->make()->user($entry);
//$user->setDn("cn={$value},ou='.$dept_name.',ou=Users_hoto,dc=hoto,dc=test"); //在IT发展部新增人员
$user->setDn("cn={$value},ou=IT发展部,ou=Users_hoto,dc=hoto,dc=test"); //在IT发展部新增人员
$user->setDn("cn={$value},ou={$dept_name},ou=Users_hoto,dc=hoto,dc=test"); //在IT发展部新增人员
$user->setAccountName("$value");
$user->setCommonName("$value");
if($user->create()){
......
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