Commit 35022305 authored by jiangbowen's avatar jiangbowen

test conn

parent 2542cc4e
......@@ -55,7 +55,7 @@ class LdapController extends Controller
foreach ($data as $key => $value) {
$entry=["cn"=>"{$value}"];
$user=$this->provider->make()->user($entry);
$user->setDn("cn={$value},cn=IT发展部,cn=Users_hoto,dc=test,dc=com");
$user->setDn("cn={$value},ou=IT发展部,ou=Users_hoto,dc=test,dc=com");
$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