From aa52e15abc8ed61839866c0e5b65e725c690cccb Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Mon, 15 Feb 2010 18:41:50 +0000 Subject: if no binddn is specified do an anonymous bind instead of unbinding. --- 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 { $cb->decline; } } else { - $ldap->unbind; + $ldap->bind; } my $filter = $self->{'ldap_filter'}; -- cgit v0.9.2