From: Sven Schöling Date: Thu, 1 Dec 2011 12:28:52 +0000 (+0100) Subject: LDAP Authentifikation zwischen requests korrekt resetten. X-Git-Tag: release-2.7.0beta1~149 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=72887d24e8b32a10d0641389c62050440a764a14;p=kivitendo-erp.git LDAP Authentifikation zwischen requests korrekt resetten. --- diff --git a/SL/Auth.pm b/SL/Auth.pm index 1577eb862..bd4fcd90a 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -47,6 +47,7 @@ sub reset { $self->{RIGHTS} = { }; $self->{unique_counter} = 0; $self->{column_information} = SL::Auth::ColumnInformation->new(auth => $self); + $self->{authenticator}->reset; } sub get_user_dbh { diff --git a/SL/Auth/DB.pm b/SL/Auth/DB.pm index 3417c0d28..ab8788abd 100644 --- a/SL/Auth/DB.pm +++ b/SL/Auth/DB.pm @@ -25,6 +25,10 @@ sub new { return $self; } +sub reset { + # nothing to do here +} + sub authenticate { $main::lxdebug->enter_sub(); diff --git a/SL/Auth/LDAP.pm b/SL/Auth/LDAP.pm index 1c8c85161..92ee43e2b 100644 --- a/SL/Auth/LDAP.pm +++ b/SL/Auth/LDAP.pm @@ -27,6 +27,12 @@ sub new { return $self; } +sub reset { + my ($self) = @_; + $self->{ldap} = undef; + $self->{dn_cache} = { }; +} + sub _connect { $main::lxdebug->enter_sub();