summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv_cmd.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-02-18 10:23:19 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-18 16:40:43 +0100
commitfa0a9bad84d060a1adf8dd44f35d366e14f54d58 (patch)
treefa5e89c85b3a164c09e1dc787ebf731c9e76aac2 /src/responder/nss/nsssrv_cmd.c
parent5a56c7c6ee79ab6d9706be333a64c2c29b90e668 (diff)
downloadsssd-fa0a9bad84d060a1adf8dd44f35d366e14f54d58.tar.gz
sssd-fa0a9bad84d060a1adf8dd44f35d366e14f54d58.tar.xz
sssd-fa0a9bad84d060a1adf8dd44f35d366e14f54d58.zip
RESPONDERS: Warn to syslog about colliding objects
Resolves: https://fedorahosted.org/sssd/ticket/2203 Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/responder/nss/nsssrv_cmd.c')
-rw-r--r--src/responder/nss/nsssrv_cmd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 1affde874..f9056590a 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -908,6 +908,10 @@ static int nss_cmd_getpwnam_search(struct nss_dom_ctx *dctx)
if (dctx->res->count > 1) {
DEBUG(SSSDBG_FATAL_FAILURE,
"getpwnam call returned more than one result !?!\n");
+ sss_log(SSS_LOG_ERR,
+ "More users have the same name [%s@%s] in SSSD cache. "
+ "SSSD will not work correctly.\n",
+ name, dom->name);
return ENOENT;
}
@@ -1580,6 +1584,9 @@ static int nss_cmd_getpwuid_search(struct nss_dom_ctx *dctx)
if (dctx->res->count > 1) {
DEBUG(SSSDBG_FATAL_FAILURE,
"getpwuid call returned more than one result !?!\n");
+ sss_log(SSS_LOG_ERR,
+ "More users have the same UID [%"PRIu32"] in directory "
+ "server. SSSD will not work correctly.\n", cmdctx->id);
ret = ENOENT;
goto done;
}
@@ -3003,6 +3010,10 @@ static int nss_cmd_getgrnam_search(struct nss_dom_ctx *dctx)
if (dctx->res->count > 1) {
DEBUG(SSSDBG_FATAL_FAILURE,
"getgrnam call returned more than one result !?!\n");
+ sss_log(SSS_LOG_ERR,
+ "More groups have the same name [%s@%s] in SSSD cache. "
+ "SSSD will not work correctly.\n",
+ name, dom->name);
return ENOENT;
}
@@ -3138,6 +3149,9 @@ static int nss_cmd_getgrgid_search(struct nss_dom_ctx *dctx)
if (dctx->res->count > 1) {
DEBUG(SSSDBG_FATAL_FAILURE,
"getgrgid call returned more than one result !?!\n");
+ sss_log(SSS_LOG_ERR,
+ "More groups have the same GID [%"PRIu32"] in directory "
+ "server. SSSD will not work correctly.\n", cmdctx->id);
ret = ENOENT;
goto done;
}