aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am7
-rw-r--r--lightdm-remote-freerdp7
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d6a1287..51fd14b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,11 @@
+pam_sessiondir = $(sysconfdir)/pam.d/
+pam_session_DATA = \
+ lightdm-remote-freerdp
+
+EXTRA_DIST = \
+ $(pam_session_DATA)
+
DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall
dist-hook:
diff --git a/lightdm-remote-freerdp b/lightdm-remote-freerdp
new file mode 100644
index 0000000..d79bc2e
--- /dev/null
+++ b/lightdm-remote-freerdp
@@ -0,0 +1,7 @@
+#%PAM-1.0
+auth requisite pam_nologin.so
+auth required pam_env.so readenv=1
+auth required pam_env.so readenv=1 envfile=/etc/default/locale
+auth required pam_freerdp.so
+session required pam_limits.so
+session required pam_freerdp.so