From be78629a06442e2e17d479756a94d88fc33a0658 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 11 Dec 2014 11:28:57 +0100 Subject: 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(+) (limited to 'src/responder') diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c index 6646fa258..a5a444787 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; } } -- cgit