From 12e075db7ef0e72fba64ca2cd0eb55a6414388c0 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 11 Dec 2014 11:28:57 +0100 Subject: [PATCH 137/138] RESPONDER: Log failures to resolve user names in csv_string_to_uid_array This patch makes it more discoverable for the admin to find typos in the various user lists. Typically, the user lists are used to add access to some feature and printing a syslog message would make sure the admin sees the mistake. Reviewed-by: Pavel Reichl --- src/responder/common/responder_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c index 6646fa2587a8299de40eaef35830351136b8149a..a5a44478759e0d515e8437c3bb9bcd78dbb1e4f5 100644 --- a/src/responder/common/responder_common.c +++ b/src/responder/common/responder_common.c @@ -215,6 +215,9 @@ errno_t csv_string_to_uid_array(TALLOC_CTX *mem_ctx, const char *csv_string, DEBUG(SSSDBG_OP_FAILURE, "List item [%s] is neither a valid " "UID nor a user name which could be " "resolved by getpwnam().\n", list[c]); + sss_log(SSS_LOG_WARNING, "List item [%s] is neither a valid " + "UID nor a user name which could be " + "resolved by getpwnam().\n", list[c]); goto done; } } -- 1.9.3