From 7d8f7c14b594ce1fefede1f7d10f5d81863eabac Mon Sep 17 00:00:00 2001 From: BLINDAUER Emmanuel Date: Sat, 11 Nov 2017 11:26:21 +0100 Subject: [PATCH] Add the loginuid pam module, as we are starting a session. So /proc//loginuid will be filled by the uid of the user. This will fix entries in 'last' with "gone - no logout" instead of 'still logged in' --- instfiles/pam.d/xrdp-sesman.debian | 3 +++ instfiles/pam.d/xrdp-sesman.redhat | 3 +++ instfiles/pam.d/xrdp-sesman.suse | 3 +++ 3 files changed, 9 insertions(+) diff --git a/instfiles/pam.d/xrdp-sesman.debian b/instfiles/pam.d/xrdp-sesman.debian index 789ce8f7..ead65a28 100644 --- a/instfiles/pam.d/xrdp-sesman.debian +++ b/instfiles/pam.d/xrdp-sesman.debian @@ -1,5 +1,8 @@ #%PAM-1.0 @include common-auth @include common-account + +# Set the loginuid process attribute. +session required pam_loginuid.so @include common-session @include common-password diff --git a/instfiles/pam.d/xrdp-sesman.redhat b/instfiles/pam.d/xrdp-sesman.redhat index 9da2690b..aa444ad6 100644 --- a/instfiles/pam.d/xrdp-sesman.redhat +++ b/instfiles/pam.d/xrdp-sesman.redhat @@ -1,5 +1,8 @@ #%PAM-1.0 auth include password-auth account include password-auth + +# Set the loginuid process attribute. +session required pam_loginuid.so session include password-auth password include password-auth diff --git a/instfiles/pam.d/xrdp-sesman.suse b/instfiles/pam.d/xrdp-sesman.suse index a7c7836c..44e5b24e 100644 --- a/instfiles/pam.d/xrdp-sesman.suse +++ b/instfiles/pam.d/xrdp-sesman.suse @@ -1,5 +1,8 @@ #%PAM-1.0 auth include common-auth account include common-account + +# Set the loginuid process attribute. +session required pam_loginuid.so session include common-session password include common-password