summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-12-11 11:28:57 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-12-13 23:41:34 +0100
commit12e075db7ef0e72fba64ca2cd0eb55a6414388c0 (patch)
treec35f41ea8d1ce7bfe63575f23e6e19307d0e769b
parente786e081edecabb8e8506dd3c5e668094827bc52 (diff)
downloadsssd-12e075db7ef0e72fba64ca2cd0eb55a6414388c0.tar.gz
sssd-12e075db7ef0e72fba64ca2cd0eb55a6414388c0.tar.xz
sssd-12e075db7ef0e72fba64ca2cd0eb55a6414388c0.zip
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 <preichl@redhat.com>
-rw-r--r--src/responder/common/responder_common.c3
1 files changed, 3 insertions, 0 deletions
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;
}
}