Ignore:
Timestamp:
09/02/19 20:11:12 (5 years ago)
Author:
nanardon
Message:

Ensure users cannot retrieve password, even encrypted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/bin/la-cli

    r2209 r2282  
    2525    'no-unexp|wo-unexp' => \my $nounexp, 
    2626    'with-unexp'        => \my $unexp, 
     27    'u|username=s'      => \my $username, 
    2728    'help'              => sub { pod2usage(0) }, 
    2829) or pod2usage(); 
     
    5253Take into account only propagated objects (attribute 'exported'=1) (default) 
    5354 
     55=item -u|--username USER 
     56 
     57Simulated access like user USER is login 
     58 
    5459=back 
    5560 
    5661=cut 
    5762 
    58 my $LA = LATMOS::Accounts->new($config, noacl => 1); 
     63my $LA = LATMOS::Accounts->new($config, noacl => $username ? 0 : 1); 
    5964my $labase = $LA->base($base); 
    6065$labase && $labase->load or die "Cannot load base"; 
Note: See TracChangeset for help on using the changeset viewer.