summaryrefslogtreecommitdiffstatsabout
path: root/lib
diff options
context:
space:
mode:
authorEdward Rudd <urkle@outoforder.cc>2010-02-15 18:41:50 (GMT)
committer Edward Rudd <urkle@outoforder.cc>2010-02-15 18:42:27 (GMT)
commitaa52e15abc8ed61839866c0e5b65e725c690cccb (patch)
tree06bd8e6ddf9824d19f9df7c71e58f6472de78e93 /lib
parentf9ee7681ca1b272fecc6e431937d705f3d76d375 (diff)
if no binddn is specified do an anonymous bind instead of unbinding.
Diffstat (limited to 'lib')
-rw-r--r--lib/DJabberd/Authen/LDAP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DJabberd/Authen/LDAP.pm b/lib/DJabberd/Authen/LDAP.pm
index 92a948e..fdfa105 100644
--- a/lib/DJabberd/Authen/LDAP.pm
+++ b/lib/DJabberd/Authen/LDAP.pm
@@ -131,7 +131,7 @@ sub check_cleartext {
131 $cb->decline; 131 $cb->decline;
132 } 132 }
133 } else { 133 } else {
134 $ldap->unbind; 134 $ldap->bind;
135 } 135 }
136 136
137 my $filter = $self->{'ldap_filter'}; 137 my $filter = $self->{'ldap_filter'};