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
fusiondirectory
fusiondirectory
Commits
5ef37417
Commit
5ef37417
authored
Sep 18, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Sep 18, 2014
Browse files
SetAttributes should also support unicity setting
parent
a6988dd7
Changes
1
Show whitespace changes
Inline
Side-by-side
include/simpleplugin/class_attribute.inc
View file @
5ef37417
...
...
@@ -428,7 +428,11 @@ class Attribute
}
}
$ldap
->
cd
(
$base
);
$filter
=
"("
.
$this
->
getLdapName
()
.
"="
.
$value
.
")"
;
if
(
is_array
(
$value
))
{
$filter
=
'(|('
.
$this
->
getLdapName
()
.
'='
.
join
(
')('
.
$this
->
getLdapName
()
.
'='
,
$value
)
.
'))'
;
}
else
{
$filter
=
'('
.
$this
->
getLdapName
()
.
'='
.
$value
.
')'
;
}
$pluginFilter
=
$this
->
plugin
->
getObjectClassFilter
();
if
(
!
empty
(
$pluginFilter
))
{
$filter
=
"(&
$pluginFilter$filter
)"
;
...
...
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