diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/responder/nss/nsssrv_cmd.c | 14 | ||||
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 4 |
2 files changed, 18 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; } diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 7cab7b2b4..90cdbec51 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -1090,6 +1090,10 @@ static int pam_check_user_search(struct pam_auth_req *preq) if (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; } else if (res->count == 0) { ret = ENOENT; |