Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
6b45cb54
Commit
6b45cb54
authored
Sep 29, 2014
by
Lukas Reschke
Browse files
Merge pull request #11321 from owncloud/ldap-fix-memberof-detection
dn needs to be fetched to be able to detect memberOf support
parents
a8ed4275
6041ae62
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/user_ldap/lib/wizard.php
View file @
6b45cb54
...
...
@@ -377,9 +377,11 @@ class Wizard extends LDAPUtility {
$limit
=
400
;
$offset
=
0
;
do
{
$result
=
$this
->
access
->
searchGroups
(
$filter
,
array
(
'cn'
),
$limit
,
$offset
);
// we need to request dn additionally here, otherwise memberOf
// detection will fail later
$result
=
$this
->
access
->
searchGroups
(
$filter
,
array
(
'cn'
,
'dn'
),
$limit
,
$offset
);
foreach
(
$result
as
$item
)
{
$groupNames
[]
=
$item
[
0
];
$groupNames
[]
=
$item
[
'cn'
];
$groupEntries
[]
=
$item
;
}
$offset
+=
$limit
;
...
...
Write
Preview
Supports
Markdown
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