Commit 99c2dcc6 authored by jiangbowen's avatar jiangbowen

add attr

parent 11cd1c53
......@@ -200,7 +200,7 @@ class LdapController extends Controller
$user=$this->provider->search()->find($key);
if ($user->exists) {
$user->rename("cn=$value");
$user->setDn("cn={$value},{$dept_name},ou=Users_hoto,dc=hoto,dc=test"); //在IT发展部新增人员
// $user->setDn("cn={$value},{$dept_name},ou=Users_hoto,dc=hoto,dc=test"); //在IT发展部新增人员
//邮箱
if(!empty($company_email)) {
$user->setAttribute('mail', $company_email);
......
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