Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncAD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
江博文
syncAD
Commits
1bde3990
Commit
1bde3990
authored
Feb 11, 2022
by
张育槟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试1
parent
eb8f3a44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
LdapController.php
app/Http/Controllers/LdapController.php
+3
-1
No files found.
app/Http/Controllers/LdapController.php
View file @
1bde3990
...
...
@@ -305,7 +305,8 @@ class LdapController extends Controller
// '档案出版管理/项目管理部/Users_Hoto','产品技术中心/IT发展部/Users_Hoto','测试部/产品技术中心/IT发展部/Users_Hoto'];
$result
=
$this
->
provider
->
search
()
->
ous
()
->
get
();
$result
=
json_decode
(
json_encode
(
$result
),
true
);
foreach
(
$result
as
$key
=>
$value
)
{
$key
=
0
;
foreach
(
$result
as
$value
)
{
$new_distinguishedname_arr
=
[];
$distinguishedname
=
$value
[
'distinguishedname'
][
0
];
$distinguishedname_arr
=
explode
(
','
,
$distinguishedname
);
...
...
@@ -319,6 +320,7 @@ class LdapController extends Controller
}
//echo $new_distinguishedname_str . "....\r\n";
$data
[
$key
]
=
$new_distinguishedname_str
;
$key
++
;
}
$res
=
[
'status'
=>
true
,
'msg'
=>
'success'
];
//测试部/产品技术中心2/IT发展部
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment