X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth.pm;h=7df576b1fc5e467eb4e09eb272647ac8bd9263a4;hb=dedbaf15f42352898a20035ec552f07f51d42abd;hp=d00edb812d9a472af34e0edab2525b8d7ba608ea;hpb=4531a6c712b2529a01f31ddde2ef4d7045d173c7;p=kivitendo-erp.git diff --git a/SL/Auth.pm b/SL/Auth.pm index d00edb812..7df576b1f 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -102,6 +102,10 @@ sub _read_auth_config { my $self = shift; map { $self->{$_} = $::lx_office_conf{authentication}->{$_} } keys %{ $::lx_office_conf{authentication} }; + + # Prevent password leakage to log files when dumping Auth instances. + $self->{admin_password} = sub { $::lx_office_conf{authentication}->{admin_password} }; + $self->{DB_config} = $::lx_office_conf{'authentication/database'}; $self->{LDAP_config} = $::lx_office_conf{'authentication/ldap'}; @@ -143,7 +147,7 @@ sub authenticate_root { my ($self, $password) = @_; $password = SL::Auth::Password->hash_if_unhashed(login => 'root', password => $password); - my $admin_password = SL::Auth::Password->hash_if_unhashed(login => 'root', password => $self->{admin_password}); + my $admin_password = SL::Auth::Password->hash_if_unhashed(login => 'root', password => $self->{admin_password}->()); $main::lxdebug->leave_sub(); @@ -1298,6 +1302,7 @@ SL::Auth - Authentication and session handling =over 4 =item C + =item C Store all values of C<@values> or C<%values> in the session. Each