URL: https://github.com/SSSD/sssd/pull/334 Author: amitkumar50 Title: #334: Print a warning when enumeration is requested but disabled Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/334/head:pr334 git checkout pr334
From d7dcd72e8dba38eca8caf38233e91186dc2295be Mon Sep 17 00:00:00 2001 From: AmitKumar <amitk...@redhat.com> Date: Mon, 24 Jul 2017 20:15:13 +0530 Subject: [PATCH] CONFDB: Warn that getent passwd doesn't return all users by design Add an explanatory message to be logged once, at the start-up, mentioning that in case enumeration is not enabled, getent passwd won't return all users by design. The debug level chosen to show the message is SSSDBG_CONF_SETTINGS. Resolves: https://pagure.io/SSSD/sssd/issue/2301 --- src/confdb/confdb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 286dbb243..b01306ab6 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -1010,6 +1010,10 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, if (!domain->enumerate) { DEBUG(SSSDBG_TRACE_FUNC, "No enumeration for [%s]!\n", domain->name); + DEBUG(SSSDBG_CONF_SETTINGS, + "Please note that when enumeration is disabled `getent " + "passwd` does not return all users by design. See " + "sssd.conf man page for more detailed information\n"); } ret = confdb_get_string(cdb, tmp_ctx, CONFDB_MONITOR_CONF_ENTRY,
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org