summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-05-15 17:54:13 +0000
committerNicolas Vigier <boklm@mageia.org>2012-05-15 17:54:13 +0000
commitf0cf8f4a1382a17a6609d17777f94a5d7c569f90 (patch)
treee8dc68eb0931e9ecbd12e5f93769888036f9bd48
parent9a9467b217d63868bbb2d9f4940be6d772d7d11e (diff)
downloaddrakx-backup-do-not-use-f0cf8f4a1382a17a6609d17777f94a5d7c569f90.tar
drakx-backup-do-not-use-f0cf8f4a1382a17a6609d17777f94a5d7c569f90.tar.gz
drakx-backup-do-not-use-f0cf8f4a1382a17a6609d17777f94a5d7c569f90.tar.bz2
drakx-backup-do-not-use-f0cf8f4a1382a17a6609d17777f94a5d7c569f90.tar.xz
drakx-backup-do-not-use-f0cf8f4a1382a17a6609d17777f94a5d7c569f90.zip
don't update UsePAM option in sshd configuration
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/authentication.pm13
-rw-r--r--perl-install/install/NEWS2
3 files changed, 4 insertions, 13 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 282930e63..5f03e6081 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- drakauth: don't update UsePAM option in sshd configuration
+
Version 14.21 - 11 May 2012
- harddrake2: allow writing 0 as module option, and forbid options
diff --git a/perl-install/authentication.pm b/perl-install/authentication.pm
index c0b2dc215..02a88737c 100644
--- a/perl-install/authentication.pm
+++ b/perl-install/authentication.pm
@@ -325,7 +325,6 @@ sub set_raw {
my $pam_modules = $kind2pam_kind{$kind} or log::l("kind2pam_kind does not know $kind");
$pam_modules ||= [];
- sshd_config_UsePAM(@$pam_modules > 0);
set_pam_authentication($pam_modules, $authentication->{ccreds});
my $nsswitch = $kind2nsswitch{$kind} or log::l("kind2nsswitch does not know $kind");
@@ -781,18 +780,6 @@ sub krb5_conf_update {
}
-sub sshd_config_UsePAM {
- my ($UsePAM) = @_;
- my $sshd = "$::prefix/etc/ssh/sshd_config";
- -e $sshd or return;
-
- my $val = "UsePAM " . bool2yesno($UsePAM);
- substInFile {
- $val = '' if s/^#?UsePAM.*/$val/;
- $_ .= "$val\n" if eof && $val;
- } $sshd;
-}
-
sub query_srv_names {
my ($domain) = @_;
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index a63cbbc77..b9a70986f 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,5 +1,7 @@
- final banner
- fix detecting if adding update media succeeded
+- authentication:
+ o don't update UsePAM option in sshd configuration
Version 14.21 - 11 May 2012