From f9ee7681ca1b272fecc6e431937d705f3d76d375 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Mon, 15 Feb 2010 13:39:13 -0500 Subject: fix typo in accessing the ldap_method configuration --- lib/DJabberd/Authen/LDAP.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DJabberd/Authen/LDAP.pm b/lib/DJabberd/Authen/LDAP.pm index 3c06c03..92a948e 100644 --- a/lib/DJabberd/Authen/LDAP.pm +++ b/lib/DJabberd/Authen/LDAP.pm @@ -96,8 +96,8 @@ sub finalize { my $self = shift; $logger->error_die("Invalid LDAP URI") unless $self->{ldap_uri}; $logger->error_die("No LDAP BaseDN Specified") unless $self->{ldap_basedn}; - if (not defined $self->{'ldap_method'}) { $self->{'ldap_type'} = 'rebind'; } - for ($self->{ldap_type}) { + if (not defined $self->{'ldap_method'}) { $self->{'ldap_method'} = 'rebind'; } + for ($self->{ldap_method}) { if (/^rebind$/) { # check additional required params $logger->error_die("Must specify filter with userid as %u") unless $self->{ldap_filter}; -- cgit