Add some more fallbacks that seem to work on other OS.

SVN revision: 35377
This commit is contained in:
Nicholas Hughart 2008-08-07 12:04:44 +00:00
parent 0fb524dc8c
commit 654ba6ac5c
1 changed files with 6 additions and 0 deletions

View File

@ -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)