|
|
1cdfb00 |
From d505e55f761124fa4cce7e0bc5ea27fbfb8f2ddb Mon Sep 17 00:00:00 2001
|
|
|
1cdfb00 |
From: Sumit Bose <sbose@redhat.com>
|
|
|
1cdfb00 |
Date: Thu, 5 Mar 2015 15:26:35 +0100
|
|
|
1cdfb00 |
Subject: [PATCH 28/99] pam_initgr_check_timeout: add debug output
|
|
|
1cdfb00 |
|
|
|
1cdfb00 |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
1cdfb00 |
(cherry picked from commit 10da5ea89b2b963e5e0bb0e0113d118e3bdea892)
|
|
|
1cdfb00 |
---
|
|
|
1cdfb00 |
src/responder/pam/pam_helpers.c | 4 ++++
|
|
|
1cdfb00 |
1 file changed, 4 insertions(+)
|
|
|
1cdfb00 |
|
|
|
1cdfb00 |
diff --git a/src/responder/pam/pam_helpers.c b/src/responder/pam/pam_helpers.c
|
|
|
1cdfb00 |
index 1b94f7adf34b3c1f02c302c6161de4ef6e296cc1..586888cae48ced8d6a6f47234fbec0ef89dd84d2 100644
|
|
|
1cdfb00 |
--- a/src/responder/pam/pam_helpers.c
|
|
|
1cdfb00 |
+++ b/src/responder/pam/pam_helpers.c
|
|
|
1cdfb00 |
@@ -140,14 +140,18 @@ errno_t pam_initgr_check_timeout(hash_table_t *id_table,
|
|
|
1cdfb00 |
hret = hash_lookup(id_table, &key, &val;;
|
|
|
1cdfb00 |
if (hret != HASH_SUCCESS
|
|
|
1cdfb00 |
&& hret != HASH_ERROR_KEY_NOT_FOUND) {
|
|
|
1cdfb00 |
+ DEBUG(SSSDBG_TRACE_ALL, "Error searching user [%s] in PAM cache.\n",
|
|
|
1cdfb00 |
+ name);
|
|
|
1cdfb00 |
return EIO;
|
|
|
1cdfb00 |
} else if (hret == HASH_ERROR_KEY_NOT_FOUND) {
|
|
|
1cdfb00 |
+ DEBUG(SSSDBG_TRACE_ALL, "User [%s] not found in PAM cache.\n", name);
|
|
|
1cdfb00 |
return ENOENT;
|
|
|
1cdfb00 |
}
|
|
|
1cdfb00 |
|
|
|
1cdfb00 |
/* If there's a value here, then the cache
|
|
|
1cdfb00 |
* entry is still valid.
|
|
|
1cdfb00 |
*/
|
|
|
1cdfb00 |
+ DEBUG(SSSDBG_TRACE_INTERNAL, "User [%s] found in PAM cache.\n", name);
|
|
|
1cdfb00 |
return EOK;
|
|
|
1cdfb00 |
}
|
|
|
1cdfb00 |
|
|
|
1cdfb00 |
--
|
|
|
1cdfb00 |
2.4.0
|
|
|
1cdfb00 |
|