aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Changes3
-rw-r--r--lib/DJabberd/Authen/LDAP.pm10
2 files changed, 10 insertions, 3 deletions
diff --git a/Changes b/Changes
index 88f37e9..dbbdb4d 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
1Revision history for DJabberd-Authen-LDAP 1Revision history for DJabberd-Authen-LDAP
2 2
30.02 2007-08-23
4 Implement substituting vhost in auth filter
5
30.01 2007-07-26 60.01 2007-07-26
4 Initial Revision. Only supports rebinding 7 Initial Revision. Only supports rebinding
5 8
diff --git a/lib/DJabberd/Authen/LDAP.pm b/lib/DJabberd/Authen/LDAP.pm
index 9808fa8..3c06c03 100644
--- a/lib/DJabberd/Authen/LDAP.pm
+++ b/lib/DJabberd/Authen/LDAP.pm
@@ -18,10 +18,10 @@ DJabberd::Authen::LDAP - An LDAP authentication module for DJabberd
18 18
19=head1 VERSION 19=head1 VERSION
20 20
21Version 0.01 21Version 0.02
22=cut 22=cut
23 23
24our $VERSION = '0.01'; 24our $VERSION = '0.02';
25 25
26=head1 SYNOPSIS 26=head1 SYNOPSIS
27 27
@@ -46,7 +46,9 @@ The Only LDAPMethod supported at the moment is rebind which performs a bind as L
46 or does anonymous bind, then searches for the user using LDAPFilter and then will rebind 46 or does anonymous bind, then searches for the user using LDAPFilter and then will rebind
47 as the found DN to verify the password. 47 as the found DN to verify the password.
48 48
49LDAPFilter is an LDAP filter with a %u that will be substituted with the incoming userid 49LDAPFilter is an LDAP filter substutions
50 - %u will be substituted with the incoming userid (w/o the domain) (ie. myuser)
51 - %d will be substituted with the incoming userid's domain (ie. mydoman.com)
50 52
51=head1 AUTHOR 53=head1 AUTHOR
52 54
@@ -133,7 +135,9 @@ sub check_cleartext {
133 } 135 }
134 136
135 my $filter = $self->{'ldap_filter'}; 137 my $filter = $self->{'ldap_filter'};
138 my $vhost = $conn->vhost->server_name;
136 $filter =~ s/%u/$username/; 139 $filter =~ s/%u/$username/;
140 $filter =~ s/%d/$vhost/;
137 $logger->info("Searching $filter on ".$self->{'ldap_basedn'}); 141 $logger->info("Searching $filter on ".$self->{'ldap_basedn'});
138 my $srch = $ldap->search( 142 my $srch = $ldap->search(
139 base=>$self->{'ldap_basedn'}, 143 base=>$self->{'ldap_basedn'},
gsubject'>send database store failure as DEBUGGravatar Nokis Mavrogiannopoulos 2008-03-05 | * corrected SRP enable flag, and corrected the DBM hook support. It now free ↵Gravatar Nokis Mavrogiannopoulos 2008-03-03 | | | | data needed by some DBM providers. * added option to disable srp (for distributions that disable it in gnutls)Gravatar Nokis Mavrogiannopoulos 2008-02-20 | * prepare for an alpha releaseGravatar Nokis Mavrogiannopoulos 2008-01-24 | * (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-16 | * more changes for openpgp support. Seems to be at a workable state.Gravatar Nokis Mavrogiannopoulos 2007-12-16 | * print error if preconfiguration failsGravatar Nokis Mavrogiannopoulos 2007-12-15 | * Initial support for openpgp keysGravatar Nokis Mavrogiannopoulos 2007-12-15 | * (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-10 | * (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-10 | * (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-09 | * Do not allow resuming sessions on different servers.Gravatar Nokis Mavrogiannopoulos 2007-12-09 | * Corrected bug which did not allow the TLS session cache to be used.Gravatar Nokis Mavrogiannopoulos 2007-12-09 | * Added support for sending more than one certificate.Gravatar Nokis Mavrogiannopoulos 2007-12-08 | * added more error checks.Gravatar Nokis Mavrogiannopoulos 2007-12-03 | * better handling of RSAFile and DHFileGravatar Nokis Mavrogiannopoulos 2007-12-03 | * report the missing GnuTLSPriorities for the gnutls enabled hosts only.Gravatar Nokis Mavrogiannopoulos 2007-12-02 | * No more defaults for dhparams, rsaparams. Check for GnuTLSPriorities.Gravatar Nokis Mavrogiannopoulos 2007-12-02 | * The compatibility mode can now be enabled only using the GnuTLSPriorities ↵Gravatar Nokis Mavrogiannopoulos 2007-12-02 | | | | string. * (no commit message)Gravatar Nokis Mavrogiannopoulos 2007-12-02 | * added SSL_SERVER/CLIENT_S_TYPEGravatar Nokis Mavrogiannopoulos 2007-12-02 | * export the alternative names of the certificateGravatar Nokis Mavrogiannopoulos 2007-12-02 | * added SSL_SERVER_M_SERIAL environment variableGravatar Nokis Mavrogiannopoulos 2007-12-02 | * more fixes for subject alternative name.Gravatar Nokis Mavrogiannopoulos 2007-12-02 | * some fixes in alternative name supportGravatar Nokis Mavrogiannopoulos 2007-12-02 | * Added support for subject alternative names. (untested)Gravatar Nokis Mavrogiannopoulos 2007-12-01 |