summaryrefslogtreecommitdiffstats
path: root/perl-install/authentication.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-23 20:23:09 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-23 20:23:09 +0000
commitb56929a7a0a6f445be002e08bc0c5ce2bf6afa56 (patch)
treee87b87ef7ad5fa16f2ad7b2e082c7ab43608c1cd /perl-install/authentication.pm
parent047af97d8377c6bd254afa956fcc74cc6ea2053e (diff)
downloaddrakx-b56929a7a0a6f445be002e08bc0c5ce2bf6afa56.tar
drakx-b56929a7a0a6f445be002e08bc0c5ce2bf6afa56.tar.gz
drakx-b56929a7a0a6f445be002e08bc0c5ce2bf6afa56.tar.bz2
drakx-b56929a7a0a6f445be002e08bc0c5ce2bf6afa56.tar.xz
drakx-b56929a7a0a6f445be002e08bc0c5ce2bf6afa56.zip
(set_pam_authentication) perl_checker cleanups
Diffstat (limited to 'perl-install/authentication.pm')
-rw-r--r--perl-install/authentication.pm11
1 files changed, 5 insertions, 6 deletions
diff --git a/perl-install/authentication.pm b/perl-install/authentication.pm
index a76a62d0b..a3e8ca3ca 100644
--- a/perl-install/authentication.pm
+++ b/perl-install/authentication.pm
@@ -530,8 +530,7 @@ sub pam_sufficient_line {
sub set_pam_authentication {
- #my (@authentication_kinds) = @_;
- my ($authentication_kinds, $ccreds) = @_;
+ my ($authentication_kinds, $o_ccreds) = @_;
my %special = (
#auth => [ difference2(\@authentication_kinds,, [ 'mount' ]) ],
@@ -586,15 +585,15 @@ sub set_pam_authentication {
);
push @{$l[-1]}, @para_for_last;
#$_ = join('', map { pam_format_line($type, 'sufficient', @$_) } @l);
- ### $_ = join('', map { pam_format_line($type, sufficient($ccreds, $_->[0], $type), @$_) } @l);
- $_ = join('', map { pam_sufficient_line($ccreds, $type, @$_) } @l);
+ ### $_ = join('', map { pam_format_line($type, sufficient($o_ccreds, $_->[0], $type), @$_) } @l);
+ $_ = join('', map { pam_sufficient_line($o_ccreds, $type, @$_) } @l);
if ($control eq 'required') {
#- ensure a pam_deny line is there. it will be added below
($module, @para) = ('pam_deny');
}
- if ($type eq 'auth' && $ccreds) {
+ if ($type eq 'auth' && $o_ccreds) {
$_ .= pam_format_line('auth', '[default=done]', 'pam_ccreds', 'action=validate use_first_pass');
$_ .= pam_format_line('auth', '[default=done]', 'pam_ccreds', 'action=store');
$_ .= pam_format_line('auth', '[default=bad]', 'pam_ccreds', 'action=update');
@@ -604,7 +603,7 @@ sub set_pam_authentication {
if (member($module, 'pam_deny', 'pam_permit')) {
$_ .= pam_format_line($type, $control,
- $type eq 'account' && $ccreds ? 'pam_permit' : 'pam_deny');
+ $type eq 'account' && $o_ccreds ? 'pam_permit' : 'pam_deny');
}
if (my $s = delete $before_first{$type}) {
$_ = $s . $_;