aboutsummaryrefslogtreecommitdiff
path: root/debian/local
diff options
context:
space:
mode:
authorTimo Aaltonen <tjaalton@debian.org>2018-02-02 16:57:43 +0200
committerSteve Langasek <vorlon@debian.org>2019-01-08 22:12:42 -0800
commit6a2e700e36a7547987b9c0a69bce5fbf77a17049 (patch)
tree8361c557cee2f6d68182db7dc6d96744eb128d67 /debian/local
parent6ff79a0bdf98e8bdc16506606cb1f6668bfb521b (diff)
downloadpam-6a2e700e36a7547987b9c0a69bce5fbf77a17049.tar.gz
pam-6a2e700e36a7547987b9c0a69bce5fbf77a17049.tar.bz2
pam-6a2e700e36a7547987b9c0a69bce5fbf77a17049.zip
Import Debian changes 1.1.8-3.7
pam (1.1.8-3.7) unstable; urgency=medium * Non-maintainer upload. * libpam-modules: Added a config for pam_mkhomedir, disabled by default. (Closes: #568577) * pam-auth-update: Add support for --enable option which is useful for enabling non-default configs without prompting the admin. (LP: #1192719)
Diffstat (limited to 'debian/local')
-rw-r--r--debian/local/pam-auth-update13
-rw-r--r--debian/local/pam-auth-update.84
2 files changed, 16 insertions, 1 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index 60eb1e8f..5fb4f40a 100644
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -39,7 +39,7 @@ my $blanktemplate = 'libpam-runtime/no_profiles_chosen';
my $titletemplate = 'libpam-runtime/title';
my $confdir = '/etc/pam.d';
my $savedir = '/var/lib/pam';
-my (%profiles, @sorted, @enabled, @conflicts, @new, %removals);
+my (%profiles, @sorted, @enabled, @conflicts, @new, %removals, %to_enable);
my $force = 0;
my $package = 0;
my $priority = 'high';
@@ -89,6 +89,13 @@ while ($#ARGV >= 0) {
}
# --remove implies --package
$package = 1 if (keys(%removals));
+ } elsif ($opt eq '--enable') {
+ while ($#ARGV >= 0) {
+ last if ($ARGV[0] =~ /^--/);
+ $to_enable{shift @ARGV} = 1;
+ }
+ # --enable implies --package
+ $package = 1 if (keys(%to_enable));
}
}
@@ -136,6 +143,10 @@ if (!@enabled) {
$priority = 'high' unless ($force);
}
+# add configs to enable
+push(@enabled,
+ grep { $to_enable{$_} } @sorted);
+
# add any previously-unseen configs
push(@enabled,
grep { $profiles{$_}->{'Default'} eq 'yes' && !$seen{$_} } @sorted);
diff --git a/debian/local/pam-auth-update.8 b/debian/local/pam-auth-update.8
index fd5e2ad4..a5ebdbad 100644
--- a/debian/local/pam-auth-update.8
+++ b/debian/local/pam-auth-update.8
@@ -68,6 +68,10 @@ Indicate that the caller is a package maintainer script; lowers the
priority of debconf questions to `medium' so that the user is not
prompted by default.
.TP
+.B \-\-enable \fIprofile \fR[\fIprofile\fR...]
+Enable the specified profiles in system configuration. This is used to
+enable profiles that are not on by default.
+.TP
.B \-\-remove \fIprofile \fR[\fIprofile\fR...]
Remove the specified profiles from the system configuration.
.B pam\-auth\-update \-\-remove