1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Author: <agmartin@debian.org>
Description: Help getting useful information in case of login failure in non-console login.
Bug-Debian: http://bugs.debian.org/648704
Bug: http://code.google.com/p/pam-encfs/issues/detail?id=7
Index: libpam-encfs/pam_encfs.c
===================================================================
--- libpam-encfs.orig/pam_encfs.c 2011-01-24 16:20:00.000000000 +0100
+++ libpam-encfs/pam_encfs.c 2012-02-02 19:37:16.048103292 +0100
@@ -624,8 +624,8 @@
buff[len] = 0;
if (!checkmnt(targetpath) && (len > 0 || exitstatus > 0))
{
- _pam_log(LOG_ERR, "exitcode : %d, errorstring : %s", exitstatus,
- buff);
+ // _pam_log(LOG_ERR, "exitcode : %d, errorstring : %s", exitstatus, buff);
+ _pam_log(LOG_ERR, "exitcode : %d, login failed, try a console login to get more info.\n", exitstatus);
return PAM_AUTH_ERR;
}
else
|