diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-05-15 17:54:13 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-05-15 17:54:13 +0000 |
commit | 6ce2cb8cda3da844bbda10c6760b33de3e5e2bd2 (patch) | |
tree | e8dc68eb0931e9ecbd12e5f93769888036f9bd48 | |
parent | 47a67a39b3d0b41cd7851973e9dd7c4c81368997 (diff) | |
download | drakx-6ce2cb8cda3da844bbda10c6760b33de3e5e2bd2.tar drakx-6ce2cb8cda3da844bbda10c6760b33de3e5e2bd2.tar.gz drakx-6ce2cb8cda3da844bbda10c6760b33de3e5e2bd2.tar.bz2 drakx-6ce2cb8cda3da844bbda10c6760b33de3e5e2bd2.tar.xz drakx-6ce2cb8cda3da844bbda10c6760b33de3e5e2bd2.zip |
don't update UsePAM option in sshd configuration
-rw-r--r-- | perl-install/NEWS | 2 | ||||
-rw-r--r-- | perl-install/authentication.pm | 13 | ||||
-rw-r--r-- | perl-install/install/NEWS | 2 |
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 |