From 12b16e2d4f9c22b133dcf0f9e5e125bf22e87de3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 19 Feb 2012 12:49:55 +0100 Subject: [PATCH] s3: Fix bug 8567 -- segfault in dom_sid_compare The underlying problem was that with ldapsam:trusted we require the a group mapping for the primary group of every user, including root. --- source3/passdb/pdb_ldap.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 7ce5edc..9316f40 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3037,6 +3037,7 @@ static NTSTATUS ldapsam_enum_group_memberships(struct pdb_methods *methods, if (dom_sid_compare(&global_sid_NULL, &(*pp_sids)[0]) == 0) { DEBUG(3, ("primary group of [%s] not found\n", pdb_get_username(user))); + ret = NT_STATUS_INTERNAL_DB_CORRUPTION; goto done; } -- 1.7.3.4