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
Open
LU Authorization
Commits
a5993f16
Commit
a5993f16
authored
Feb 22, 2022
by
Dainis Abols
Browse files
LDAP Connection close changes
parent
315ac467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Models/LDAP.php
View file @
a5993f16
...
...
@@ -37,6 +37,20 @@ class LDAP
*/
private
$conn
;
/**
* Fetch resource
*/
public
function
getConn
()
{
return
$this
->
conn
;
}
public
function
delConn
()
{
@
ldap_close
(
$this
->
conn
);
$this
->
conn
=
null
;
}
/**
* LDAP constructor.
*/
...
...
@@ -55,7 +69,7 @@ class LDAP
*/
public
function
__destruct
()
{
ldap_close
(
$this
->
c
onn
);
$this
->
delC
onn
(
);
}
/**
...
...
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