dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0137-RESPONDER-Log-failures-to-resolve-user-names-in-csv_.patch

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