summaryrefslogtreecommitdiffstatsabout
path: root/lib
diff options
context:
space:
mode:
authorEdward Rudd <urkle@outoforder.cc>2010-02-15 18:39:13 (GMT)
committer Edward Rudd <urkle@outoforder.cc>2010-02-15 18:39:13 (GMT)
commitf9ee7681ca1b272fecc6e431937d705f3d76d375 (patch)
tree33e2bb48b0c3996ae69efbaa77cd1e3e51057595 /lib
parent68db203c1816004f9899f04e108e0f4530299b60 (diff)
fix typo in accessing the ldap_method configuration
Diffstat (limited to 'lib')
-rw-r--r--lib/DJabberd/Authen/LDAP.pm4
1 files 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 {
96 my $self = shift; 96 my $self = shift;
97 $logger->error_die("Invalid LDAP URI") unless $self->{ldap_uri}; 97 $logger->error_die("Invalid LDAP URI") unless $self->{ldap_uri};
98 $logger->error_die("No LDAP BaseDN Specified") unless $self->{ldap_basedn}; 98 $logger->error_die("No LDAP BaseDN Specified") unless $self->{ldap_basedn};
99 if (not defined $self->{'ldap_method'}) { $self->{'ldap_type'} = 'rebind'; } 99 if (not defined $self->{'ldap_method'}) { $self->{'ldap_method'} = 'rebind'; }
100 for ($self->{ldap_type}) { 100 for ($self->{ldap_method}) {
101 if (/^rebind$/) { 101 if (/^rebind$/) {
102 # check additional required params 102 # check additional required params
103 $logger->error_die("Must specify filter with userid as %u") unless $self->{ldap_filter}; 103 $logger->error_die("Must specify filter with userid as %u") unless $self->{ldap_filter};