summaryrefslogtreecommitdiffstats
path: root/sesman/verify_user_pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/verify_user_pam.c')
-rw-r--r--sesman/verify_user_pam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sesman/verify_user_pam.c b/sesman/verify_user_pam.c
index 15174c24..05e941bb 100644
--- a/sesman/verify_user_pam.c
+++ b/sesman/verify_user_pam.c
@@ -91,7 +91,8 @@ get_service_name(char *service_name)
{
service_name[0] = 0;
- if (g_file_exist("/etc/pam.d/xrdp-sesman"))
+ if (g_file_exist("/etc/pam.d/xrdp-sesman") ||
+ g_file_exist(XRDP_SYSCONF_PATH "/pam.d/xrdp-sesman"))
{
g_strncpy(service_name, "xrdp-sesman", 255);
}