From aa52e15abc8ed61839866c0e5b65e725c690cccb Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Mon, 15 Feb 2010 13:41:50 -0500 Subject: if no binddn is specified do an anonymous bind instead of unbinding. --- lib/DJabberd/Authen/LDAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/DJabberd') 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