Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
OpnSense
Commits
fa7429e0
Commit
fa7429e0
authored
Sep 23, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ldap: fix access of non-array
parent
b91de022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
system_usermanager_import_ldap.php
src/www/system_usermanager_import_ldap.php
+11
-8
No files found.
src/www/system_usermanager_import_ldap.php
View file @
fa7429e0
<?php
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2007 Scott Ullrich <sullrich@gmail.com>
All rights reserved.
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2007 Scott Ullrich <sullrich@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
...
...
@@ -113,13 +114,15 @@ if ($authcfg['type'] == 'ldap') {
}
}
}
else
{
// list all missing accounts
foreach
(
$result
as
$ldap_user
)
{
if
(
!
in_array
(
$ldap_user
[
'dn'
],
$confDNs
))
{
$ldap_users
[
$ldap_user
[
'name'
]]
=
$ldap_user
[
'dn'
];
if
(
is_array
(
$result
))
{
// list all missing accounts
foreach
(
$result
as
$ldap_user
)
{
if
(
!
in_array
(
$ldap_user
[
'dn'
],
$confDNs
))
{
$ldap_users
[
$ldap_user
[
'name'
]]
=
$ldap_user
[
'dn'
];
}
}
ksort
(
$ldap_users
);
}
ksort
(
$ldap_users
);
}
}
}
...
...
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