aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-01-31 21:36:48 +0000
committerSam James <sam@gentoo.org>2021-01-31 21:37:12 +0000
commit93165fa671e7c6fe41a09302f3c00a140dd6ec9b (patch)
tree989b4e6052b352fc6890bc176ec23de4acc3c487
parentRevert "Add systemd-homed support" (diff)
downloadpambase-93165fa671e7c6fe41a09302f3c00a140dd6ec9b.tar.gz
pambase-93165fa671e7c6fe41a09302f3c00a140dd6ec9b.tar.bz2
pambase-93165fa671e7c6fe41a09302f3c00a140dd6ec9b.zip
Revert "systemd-auth: add systemd-homed support"
This reverts commit 5a545eb14a1220af1ba8031f3669471e77edbc2f. Auto-merged on a reverted commit. Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xpambase.py1
-rw-r--r--templates/system-auth.tpl18
-rw-r--r--templates/system-session.tpl4
3 files changed, 2 insertions, 21 deletions
diff --git a/pambase.py b/pambase.py
index c078156..278d578 100755
--- a/pambase.py
+++ b/pambase.py
@@ -14,7 +14,6 @@ def main():
parser.add_argument('--pwquality', action="store_true", help='enable pam_pwquality.so module')
parser.add_argument('--elogind', action="store_true", help='enable pam_elogind.so module')
parser.add_argument('--systemd', action="store_true", help='enable pam_systemd.so module')
- parser.add_argument('--homed', action="store_true", help='enable pam_systemd_home.so module')
parser.add_argument('--selinux', action="store_true", help='enable pam_selinux.so module')
parser.add_argument('--mktemp', action="store_true", help='enable pam_mktemp.so module')
parser.add_argument('--pam-ssh', action="store_true", help='enable pam_ssh.so module')
diff --git a/templates/system-auth.tpl b/templates/system-auth.tpl
index 1adee05..01a29db 100644
--- a/templates/system-auth.tpl
+++ b/templates/system-auth.tpl
@@ -8,26 +8,16 @@ auth [success=3 default=ignore] pam_krb5.so {{ krb5_params }}
{% endif %}
auth requisite pam_faillock.so preauth
-{% if homed %}
-auth [success=2 default=ignore] pam_unix.so {{ nullok|default('', true) }} {{ debug|default('', true) }} try_first_pass
-auth [success=1 default=ignore] pam_systemd_home.so
-{% else %}
-auth [success=1 default=ignore] pam_unix.so {{ nullok|default('', true) }} {{ debug|default('', true) }} try_first_pas
-{% endif %}
+auth [success=1 default=ignore] pam_unix.so {{ nullok|default('', true) }} {{ debug|default('', true) }} try_first_pass
auth [default=die] pam_faillock.so authfail
{% if caps %}
-auth optional pam_cap.so
+-auth optional pam_cap.so
{% endif %}
{% if krb5 %}
account [success=2 default=ignore] pam_krb5.so {{ krb5_params }}
{% endif %}
-
-{% if homed %}
-account [success=1 default=ignore] pam_systemd_home.so
-{% endif %}
-
account required pam_unix.so {{ debug|default('', true) }}
account required pam_faillock.so
@@ -47,10 +37,6 @@ password required pam_pwhistory.so use_authtok remember=5 retry=3
password [success=1 default=ignore] pam_krb5.so {{ krb5_params }}
{% endif %}
-{% if homed %}
-password [success=1 default=ignore] pam_systemd_home.so
-{% endif %}
-
{% if passwdqc or pwquality %}
password required pam_unix.so try_first_pass {{ unix_authtok|default('', true) }} {{ nullok|default('', true) }} {{ unix_extended_encryption|default('', true) }} {{ debug|default('', true) }}
{% else %}
diff --git a/templates/system-session.tpl b/templates/system-session.tpl
index 536db49..2a7024b 100644
--- a/templates/system-session.tpl
+++ b/templates/system-session.tpl
@@ -8,8 +8,4 @@ session optional pam_mktemp.so
session [success=1 default=ignore] pam_krb5.so {{ krb5_params }}
{% endif %}
-{% if homed %}
-session [success=1 default=ignore] pam_systemd_home.so
-{% endif %}
-
session required pam_unix.so {{ debug|default('', true) }}