diff --git a/sesman/verify_user_pam.c b/sesman/verify_user_pam.c index 1e186ffc..e3d8596e 100644 --- a/sesman/verify_user_pam.c +++ b/sesman/verify_user_pam.c @@ -85,9 +85,9 @@ static void DEFAULT_CC get_service_name(char* service_name) { service_name[0] = 0; - if (g_file_exist("/etc/pam.d/sesman")) + if (g_file_exist("/etc/pam.d/xrdp-sesman")) { - g_strncpy(service_name, "sesman", 255); + g_strncpy(service_name, "xrdp-sesman", 255); } else {