summaryrefslogtreecommitdiffstats
path: root/src/responder/common
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:00:40 +0100
commitbe78629a06442e2e17d479756a94d88fc33a0658 (patch)
treeada1d85fe3256aff905cab8d14d24f632e918cff /src/responder/common
parent5d5687c43ec20d343da3f9d7322143718d38267e (diff)
downloadsssd-be78629a06442e2e17d479756a94d88fc33a0658.tar.gz
sssd-be78629a06442e2e17d479756a94d88fc33a0658.tar.xz
sssd-be78629a06442e2e17d479756a94d88fc33a0658.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>
Diffstat (limited to 'src/responder/common')
-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;
}
}