c0971b7e39
- Resolves: upstream#3821 - crash related to sbus_router_destructor() - Resolves: upstream#3810 - sbus2: fix memory leak in sbus_message_bound_ref - Resolves: upstream#3819 - sssd only sets the SELinux login context if it differs from the default - Resolves: upstream#3807 - The sbus codegen script relies on "python" which might not be available on all distributions - Resolves: upstream#3820 - sudo: search with lower cased name for case insensitive domains - Resolves: upstream#3701 - [RFE] Allow changing default behavior of SSSD from an allow-any default to a deny-any default when it can't find any GPOs to apply to a user login. - Resolves: upstream#3828 - Invalid domain provider causes SSSD to abort startup - Resolves: upstream#3500 - Make sure sssd is a replacement for pam_pkcs11 also for local account authentication - Resolves: upstream#3812 - sssd 2.0.0 segfaults on startup - Resolves: upstream#3826 - Remove references of sss_user/group/add/del commands in man pages since local provider is deprecated - Resolves: upstream#3827 - SSSD should log to syslog if a domain is not started due to a misconfiguration - Resolves: upstream#3830 - Printing incorrect information about domain with sssctl utility - Resolves: upstream#3489 - p11_child should work wit openssl1.0+ - Resolves: upstream#3750 - [RFE] man 5 sssd-files should mention necessary changes in nsswitch.conf - Resovles: upstream#3650 - RFE: Require smartcard authentication - Resolves: upstream#3334 - sssctl config-check does not check any special characters in domain name of domain section - Resolves: upstream#3849 - Files: The files provider always enumerates which causes duplicate when running getent passwd - Related: upstream#3855 - session not recording for local user when groups defined - Resolves: upstream#3802 - Reuse sysdb_error_to_errno() outside sysdb - Related: upstream#3493 - Remove the pysss.local interface
58 lines
2.2 KiB
Diff
58 lines
2.2 KiB
Diff
From 7b3794fbe5e4f0888d4faeba12e6c5268f8cca42 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
Date: Tue, 9 Oct 2018 12:12:44 +0200
|
|
Subject: [PATCH 73/83] FILES: The files provider should not enumerate
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Resolves:
|
|
https://pagure.io/SSSD/sssd/issue/3849
|
|
|
|
For reason I cannot explain now, the files provider always enumerates.
|
|
There is commit a60e6ec which implements this, but it's clearly wrong,
|
|
because then the plain getent passwd output contains duplicates from
|
|
nss_files and nss_sss:
|
|
|
|
$ getent passwd | sort
|
|
adm:x:3:4:adm:/var/adm:/sbin/nologin
|
|
adm:x:3:4:adm:/var/adm:/sbin/nologin
|
|
bin:x:1:1:bin:/bin:/sbin/nologin
|
|
bin:x:1:1:bin:/bin:/sbin/nologin
|
|
certuser:x:10329:10330::/home/certuser:/bin/bash
|
|
certuser:x:10329:10330::/home/certuser:/bin/bash
|
|
chrony:x:997:994::/var/lib/chrony:/sbin/nologin
|
|
chrony:x:997:994::/var/lib/chrony:/sbin/nologin
|
|
daemon:x:2:2:daemon:/sbin:/sbin/nologin
|
|
daemon:x:2:2:daemon:/sbin:/sbin/nologin
|
|
|
|
Reviewed-by: Michal Židek <mzidek@redhat.com>
|
|
---
|
|
src/confdb/confdb.c | 5 +----
|
|
1 files changed, 1 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
|
|
index 2f3d900..fdc6122 100644
|
|
--- a/src/confdb/confdb.c
|
|
+++ b/src/confdb/confdb.c
|
|
@@ -875,7 +875,6 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
|
|
char *default_domain;
|
|
bool fqnames_default = false;
|
|
int memcache_timeout;
|
|
- bool enum_default;
|
|
|
|
tmp_ctx = talloc_new(mem_ctx);
|
|
if (!tmp_ctx) return ENOMEM;
|
|
@@ -1009,10 +1008,8 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
|
|
"Interpreting as true\n", domain->name);
|
|
domain->enumerate = true;
|
|
} else { /* assume the new format */
|
|
- enum_default = is_files_provider(domain);
|
|
-
|
|
ret = get_entry_as_bool(res->msgs[0], &domain->enumerate,
|
|
- CONFDB_DOMAIN_ENUMERATE, enum_default);
|
|
+ CONFDB_DOMAIN_ENUMERATE, 0);
|
|
if(ret != EOK) {
|
|
DEBUG(SSSDBG_FATAL_FAILURE,
|
|
"Invalid value for %s\n", CONFDB_DOMAIN_ENUMERATE);
|