aboutsummaryrefslogtreecommitdiffstats
path: root/lib/DJabberd/Authen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DJabberd/Authen')
-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};