diff options
author | Sumit Bose <sbose@redhat.com> | 2015-03-05 15:26:35 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-13 11:54:13 +0100 |
commit | 10da5ea89b2b963e5e0bb0e0113d118e3bdea892 (patch) | |
tree | ac4574fb5265b1bde57e0d4d869be58bc6381410 /src/responder/pam | |
parent | 7bbf9d1d054f0571fa90ff5dd400a6f4a5a7f6c8 (diff) | |
download | sssd-10da5ea89b2b963e5e0bb0e0113d118e3bdea892.tar.gz sssd-10da5ea89b2b963e5e0bb0e0113d118e3bdea892.tar.xz sssd-10da5ea89b2b963e5e0bb0e0113d118e3bdea892.zip |
pam_initgr_check_timeout: add debug output
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/pam')
-rw-r--r-- | src/responder/pam/pam_helpers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/responder/pam/pam_helpers.c b/src/responder/pam/pam_helpers.c index 1b94f7adf..586888cae 100644 --- a/src/responder/pam/pam_helpers.c +++ b/src/responder/pam/pam_helpers.c @@ -140,14 +140,18 @@ errno_t pam_initgr_check_timeout(hash_table_t *id_table, hret = hash_lookup(id_table, &key, &val); if (hret != HASH_SUCCESS && hret != HASH_ERROR_KEY_NOT_FOUND) { + DEBUG(SSSDBG_TRACE_ALL, "Error searching user [%s] in PAM cache.\n", + name); return EIO; } else if (hret == HASH_ERROR_KEY_NOT_FOUND) { + DEBUG(SSSDBG_TRACE_ALL, "User [%s] not found in PAM cache.\n", name); return ENOENT; } /* If there's a value here, then the cache * entry is still valid. */ + DEBUG(SSSDBG_TRACE_INTERNAL, "User [%s] found in PAM cache.\n", name); return EOK; } |