Skip to content
Snippets Groups Projects
Commit 735738fe authored by Dominik Schmidt's avatar Dominik Schmidt
Browse files

user_ldap: close ldap connection in dtor

parent 5f29f8a8
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,12 @@ class OC_USER_LDAP extends OC_USER_BACKEND {
$this->ldap_filter = OC_APPCONFIG::getValue('user_ldap', 'ldap_filter','');
}
function __destruct() {
// close the connection
if( $this->ds )
ldap_unbind($this->ds);
}
private function getDs() {
if(!$this->ds) {
$this->ds = ldap_connect( $this->ldap_host, $this->ldap_port );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment