LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xrdp-pam.patch of Package xrdp (Project home:dreveman:Factory)

Index: xrdp-0.4.1/instfiles/pam.d/xrdp-sesman
===================================================================
--- xrdp-0.4.1.orig/instfiles/pam.d/xrdp-sesman
+++ xrdp-0.4.1/instfiles/pam.d/xrdp-sesman
@@ -1,3 +1,3 @@
 #%PAM-1.0
-auth       required	pam_unix.so shadow nullok
-account    required	pam_unix.so
+auth       include	common-auth
+account    include	common-account
Index: xrdp-0.4.1/sesman/verify_user_pam.c
===================================================================
--- xrdp-0.4.1.orig/sesman/verify_user_pam.c
+++ xrdp-0.4.1/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
   {