Changeset 2278 for trunk/LATMOS-Accounts


Ignore:
Timestamp:
08/29/19 20:06:06 (5 years ago)
Author:
nanardon
Message:

Add la-dump: allow to dump in vrious format (xml only at time

Location:
trunk/LATMOS-Accounts
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/Makefile.PL

    r2240 r2278  
    8787        bin/la-renewEmp 
    8888        bin/la-load-csv 
     89        bin/la-dump 
    8990        bin/la-sql-attrvalues 
    9091        ) ], 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Acls.pm

    r2259 r2278  
    3636    $acls->add( '*.log', [ '$uid: read', '*: deny' ] ); 
    3737    $acls->add( 
    38         'user.{userPasswd,userPassword,encryptedPassword}', 
     38        'user.{userPasswd,userPassword,encryptedPassword,oldPassword}', 
    3939        [ '$uid: write', '*: deny' ], 
    4040    ); 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm

    r2261 r2278  
    11731173} 
    11741174 
     1175=head2 SetConnectedUser($username) 
     1176 
     1177Set the username of the connected user 
     1178 
     1179=cut 
     1180 
     1181sub SetConnectedUser { 
     1182    my ($self, $username) = @_; 
     1183 
     1184    $self->{_user} = $username; 
     1185    la_log(LA_DEBUG, "Connected as $username"); 
     1186} 
     1187 
    11751188=head2 connect($username, $password) 
    11761189 
     
    11831196    my $auth = $self->authenticate_user($username, $password); 
    11841197    if ($auth) { 
    1185         $self->{_user} = $username; 
    1186         la_log(LA_DEBUG, "Connected as $username"); 
     1198        $self->SetConnectedUser($username); 
    11871199    } 
    11881200    return $auth; 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm

    r2277 r2278  
    889889    } 
    890890 
     891    my $SubOtype = undef; 
     892 
     893    if (@{ $config->{SubOtype} || []}) { 
     894        $SubOtype = { map { $_ => 1 } @{ $config->{SubOtype} } }; 
     895    } 
     896 
    891897    if (ref $self && $config->{recur}) { 
    892898          my %subobj = $self->ListChildObjects; 
    893899          foreach my $otype (sort keys %subobj) { 
     900              if ($SubOtype) { 
     901                  $SubOtype->{$otype} or next; 
     902              } 
    894903              foreach my $oname (sort @{ $subobj{$otype} }) { 
    895904                  my $obj = $self->base->get_object($otype, $oname) or next; 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Base.pm

    r2267 r2278  
    246246                        'filefmt=s'  => \my $filefmt, 
    247247                        'recur'      => \my $recur, 
     248                        'subotype=s' => \my @SubOtype, 
    248249                    }, @_ 
    249250                ); 
     
    279280                            empty_attr => $empty_attr, 
    280281                            only_rw => !$with_ro, 
     282                            SubOtype => \@SubOtype, 
    281283                        } ); 
    282284                    } 
Note: See TracChangeset for help on using the changeset viewer.