LDAP Authentifikation zwischen requests korrekt resetten.
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 1 Dec 2011 12:28:52 +0000 (13:28 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 1 Dec 2011 12:28:52 +0000 (13:28 +0100)
SL/Auth.pm
SL/Auth/DB.pm
SL/Auth/LDAP.pm

index 1577eb8..bd4fcd9 100644 (file)
@@ -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 {
index 3417c0d..ab8788a 100644 (file)
@@ -25,6 +25,10 @@ sub new {
   return $self;
 }
 
+sub reset {
+  # nothing to do here
+}
+
 sub authenticate {
   $main::lxdebug->enter_sub();
 
index 1c8c851..92ee43e 100644 (file)
@@ -27,6 +27,12 @@ sub new {
   return $self;
 }
 
+sub reset {
+  my ($self) = @_;
+  $self->{ldap}     = undef;
+  $self->{dn_cache} = { };
+}
+
 sub _connect {
   $main::lxdebug->enter_sub();