Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
fea543fd
Verified
Commit
fea543fd
authored
1 month ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
(ldap) - restore_error_handler
restore_error_hanlder
parent
7f99fbf8
core-php8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/class_ldap.inc
+2
-0
include/class_ldap.inc
with
2 additions
and
0 deletions
+2
-0
include/class_ldap.inc
+
2
−
0
View file @
fea543fd
...
@@ -1197,6 +1197,8 @@ class LDAP
...
@@ -1197,6 +1197,8 @@ class LDAP
function
dn_exists
(
$dn
):
bool
function
dn_exists
(
$dn
):
bool
{
{
// Previous error handler create issue with ldap_read - restoring default behavior.
restore_error_handler
();
logging
::
debug
(
DEBUG_LDAP
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
''
,
'dn_exists('
.
$dn
.
')'
);
logging
::
debug
(
DEBUG_LDAP
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
''
,
'dn_exists('
.
$dn
.
')'
);
return
(
@
ldap_read
(
$this
->
cid
,
$dn
,
'(objectClass=*)'
,
[
'objectClass'
])
!==
FALSE
);
return
(
@
ldap_read
(
$this
->
cid
,
$dn
,
'(objectClass=*)'
,
[
'objectClass'
])
!==
FALSE
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets