From 654ba6ac5caedde4b0fdc8662548c8702475937e Mon Sep 17 00:00:00 2001 From: Nicholas Hughart Date: Thu, 7 Aug 2008 12:04:44 +0000 Subject: [PATCH] Add some more fallbacks that seem to work on other OS. SVN revision: 35377 --- src/bin/e_desklock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c index a8d8829fd..5e6b30894 100644 --- a/src/bin/e_desklock.c +++ b/src/bin/e_desklock.c @@ -759,6 +759,12 @@ _desklock_pam_init(E_Desklock_Auth *da) pam_prof = "system-auth"; else if (ecore_file_exists("/etc/pam.d/system")) pam_prof = "system"; + else if (ecore_file_exists("/etc/pam.d/xdm")) + pam_prof = "xdm"; + else if (ecore_file_exists("/etc/pam.d/gdm")) + pam_prof = "gdm"; + else if (ecore_file_exists("/etc/pam.d/kdm")) + pam_prof = "kdm"; if ((pamerr = pam_start(pam_prof, da->user, &(da->pam.conv), &(da->pam.handle))) != PAM_SUCCESS)