Skip to content
GitLab
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
68c0d0a2
Commit
68c0d0a2
authored
Sep 17, 2014
by
Côme Bernigaud
Browse files
Fixes #2407 cn should not be unique
parent
51bfbb08
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/class_objects.inc
View file @
68c0d0a2
...
...
@@ -185,10 +185,10 @@ class objects
if
(
$text
===
NULL
)
{
$ldap
=
$config
->
get_ldap_link
();
$ldap
->
cat
(
$dn
,
array
(
$infos
[
'
main
Attr'
]));
$ldap
->
cat
(
$dn
,
array
(
$infos
[
'
name
Attr'
]));
if
(
$attrs
=
$ldap
->
fetch
())
{
if
(
isset
(
$attrs
[
$infos
[
'
main
Attr'
]][
0
]))
{
$text
=
$attrs
[
$infos
[
'
main
Attr'
]][
0
];
if
(
isset
(
$attrs
[
$infos
[
'
name
Attr'
]][
0
]))
{
$text
=
$attrs
[
$infos
[
'
name
Attr'
]][
0
];
}
else
{
$text
=
$dn
;
}
...
...
@@ -196,7 +196,7 @@ class objects
throw
new
Exception
(
'Dn '
.
$dn
.
' not found in LDAP'
);
}
}
elseif
(
is_array
(
$text
))
{
$text
=
$text
[
$infos
[
'
main
Attr'
]][
0
];
$text
=
$text
[
$infos
[
'
name
Attr'
]][
0
];
}
if
(
$icon
&&
isset
(
$infos
[
'icon'
]))
{
...
...
Côme Chilliet
@cchilliet
mentioned in issue
#808 (closed)
·
Sep 02, 2017
mentioned in issue
#808 (closed)
mentioned in issue #808
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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