Commit d0bfa8a5 authored by Clément OUDOT's avatar Clément OUDOT

Apply patch to 1.4 branch and trunk (#LEMONLDAP-991)

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@4987 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 399de475
......@@ -15,7 +15,7 @@ use Unicode::String qw(utf8);
use strict;
our @EXPORT = qw(ldap);
our $VERSION = '1.4.6';
our $VERSION = '1.4.8';
our $ppLoaded = 0;
BEGIN {
......@@ -114,6 +114,21 @@ sub bind {
return $mesg;
}
## @method Net::LDAP::Message unbind()
# Reimplementation of Net::LDAP::unbind() to force call to disconnect()
# @return Net::LDAP::Message
sub unbind {
my $self = shift;
my $ldap_uri = $self->uri;
$self->{portal}->lmLog("Unbind and disconnect from $ldap_uri", 'debug');
my $mesg = $self->SUPER::unbind();
$self->SUPER::disconnect();
return $mesg;
}
## @method private boolean loadPP ()
# Load Net::LDAP::Control::PasswordPolicy
# @return true if succeed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment