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

调试3

parent e90a6b42
......@@ -121,7 +121,8 @@ class LdapController extends Controller
foreach ($data['data'] as $key => $value) {
$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='.$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->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