diff options
author | Ray Strode <rstrode@redhat.com> | 2012-07-06 15:43:54 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2012-07-06 15:45:37 -0400 |
commit | 675d9870a2b1e25190cae29c03bed1e3956f3084 (patch) | |
tree | 1f2855104c339117cdae9046f2d12a0ecc91779a /data | |
parent | c8bffea9ec259e018aa61be9b9900e777013d87c (diff) | |
download | gdm-675d9870a2b1e25190cae29c03bed1e3956f3084.tar.gz |
simple-greeter: move gdm-password pam file to data
That's where the other two are after all.
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 8 | ||||
-rw-r--r-- | data/gdm-password.pam | 19 |
2 files changed, 26 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index f0d00bf1..536d1a12 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -88,6 +88,9 @@ localealias_DATA = locale.alias sessiondir = $(datadir)/gnome-session/sessions session_DATA = gdm-fallback.session gdm-shell.session +gdm-password: gdm-password.pam + cp $(srcdir)/gdm-password.pam $(builddir)/gdm-password + gdm-fingerprint: gdm-fingerprint.pam cp $(srcdir)/gdm-fingerprint.pam $(builddir)/gdm-fingerprint @@ -95,7 +98,7 @@ gdm-smartcard: gdm-smartcard.pam cp $(srcdir)/gdm-smartcard.pam $(builddir)/gdm-smartcard pamdir = $(PAM_PREFIX)/pam.d -pam_DATA = gdm-fingerprint gdm-smartcard +pam_DATA = gdm-fingerprint gdm-smartcard gdm-password EXTRA_DIST = \ $(schemas_in_files) \ @@ -108,6 +111,7 @@ EXTRA_DIST = \ gdm \ gdm-autologin \ gdm-welcome \ + gdm-password.pam \ gdm-fingerprint.pam \ gdm-smartcard.pam \ gdm-fallback.session \ @@ -129,6 +133,7 @@ CLEANFILES = \ PreSession \ PostSession \ $(gsettings_SCHEMAS) \ + gdm-password \ gdm-fingerprint \ gdm-smartcard \ $(NULL) @@ -141,6 +146,7 @@ DISTCLEANFILES = \ MAINTAINERCLEANFILES = \ *~ \ + gdm-password \ gdm-fingerprint \ gdm-smartcard \ Makefile.in diff --git a/data/gdm-password.pam b/data/gdm-password.pam new file mode 100644 index 00000000..bac431d3 --- /dev/null +++ b/data/gdm-password.pam @@ -0,0 +1,19 @@ +# Sample PAM file for doing password authentication. +# Distros should replace this with what makes sense for them. +auth required pam_env.so +auth sufficient pam_unix.so nullok try_first_pass +auth requisite pam_succeed_if.so uid >= 500 quiet +auth required pam_deny.so + +account required pam_unix.so +account sufficient pam_localuser.so +account sufficient pam_succeed_if.so uid < 500 quiet +account required pam_permit.so + +password requisite pam_cracklib.so try_first_pass retry=3 type= +password sufficient pam_unix.so nullok try_first_pass use_authtok +password required pam_deny.so + +session optional pam_keyinit.so revoke +session required pam_limits.so +session required pam_unix.so |