]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Fix bug 8567 -- segfault in dom_sid_compare
authorVolker Lendecke <vl@samba.org>
Sun, 19 Feb 2012 11:49:55 +0000 (12:49 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 20 Feb 2012 21:36:23 +0000 (22:36 +0100)
The underlying problem was that with ldapsam:trusted we require the
a group mapping for the primary group of every user, including root.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Feb 20 22:36:23 CET 2012 on sn-devel-104

source3/passdb/pdb_ldap.c

index 7c1681031a507e5572091814a5c36d5f0a003bbf..04541e881de28787937f70aee0ef2fbdc05c7a5b 100644 (file)
@@ -3027,6 +3027,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;
        }