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 43c734f16cba1e7b64be21b7179ff2ccc915538e 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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
index 286dbb243..933f7c1a1 100644
--- a/src/confdb/confdb.c
+++ b/src/confdb/confdb.c
@@ -1010,6 +1010,9 @@ 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

Reply via email to