summaryrefslogtreecommitdiffstats
path: root/sesman/verify_user_pam.c
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-07-19 15:41:32 +0900
committermetalefty <meta@vmeta.jp>2017-07-26 11:34:01 +0900
commit05ef6d104e5a13af55b61debab28eca3c04fe53e (patch)
tree7b077c78fdbacfc8bc108b0d62fe14f125bd7521 /sesman/verify_user_pam.c
parente990dd4263b48c69ddb0507513933479f0c4983b (diff)
downloadxrdp-proprietary-05ef6d104e5a13af55b61debab28eca3c04fe53e.tar.gz
xrdp-proprietary-05ef6d104e5a13af55b61debab28eca3c04fe53e.zip
sesman: search pam files also in ${sysconfdir}/pam.d
as some operating system such as FreeBSD searches not only `/etc/pam.d` but also `/usr/local/etc/pam.d` [1]. [1] https://www.freebsd.org/cgi/man.cgi?query=pam.d&sektion=5
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);
}