Changeset 584 for LATMOS-Accounts
- Timestamp:
- 01/12/10 19:05:48 (15 years ago)
- Location:
- LATMOS-Accounts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/Makefile.PL
r578 r584 20 20 'POD::Usage' => undef, 21 21 'Unicode::String' => undef, 22 'Crypt::Cracklib' => undef, 22 23 }, # e.g., Module::Name => 1.1 23 24 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 -
LATMOS-Accounts/bin/la-passwd
r457 r584 16 16 la-passwd [options] userid 17 17 18 =head1 OPTIONS 19 20 =over 4 21 22 =item -t --test 23 24 Don't change password but check it validity using CrackLib. 25 26 =back 27 18 28 =cut 19 29 … … 21 31 'c|config=s' => \my $config, 22 32 'b|base=s' => \my $base, 33 't|test' => \my $test, 23 34 'help' => sub { pod2usage(0) }, 24 35 ) or pod2usage(); … … 40 51 print "\n"; 41 52 53 print $obj->check_password($password) . "\n"; 54 55 exit(0) if($test); 56 42 57 if ($obj->set_password($password)) { 43 58 print "Password succefully changed\n"; -
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm
r504 r584 5 5 use warnings; 6 6 use LATMOS::Accounts::Log; 7 use Crypt::Cracklib; 7 8 8 9 our $VERSION = (q$Rev$ =~ /^Rev: (\d+) /)[0]; … … 307 308 return $self->_set_password($clear_pass); 308 309 } else { 309 $self-> log(LA_ERROR, "Permission denied for %s to change its password",310 $self->base->log(LA_ERROR, "Permission denied for %s to change its password", 310 311 $self->id); 311 312 return; … … 323 324 "Cannot set password: userPassword attributes is unsupported"); 324 325 } 326 } 327 328 sub check_password { 329 my ( $self, $password ) = @_; 330 my $dictionary; 331 332 return fascist_check($password, $dictionary); 325 333 } 326 334
Note: See TracChangeset
for help on using the changeset viewer.