From 4e1b26db3490c6063bf0ea05b8ae7e34a96ca8a9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 3 Jun 2004 09:25:01 +0000 Subject: r989: Calling sid_to_gid from within winbind makes no sense, as this calls winbind_sid_to_gid. For the consistency check, local_sid_to_gid must set the name_type it found. Volker (This used to be commit 5070c1b68f2add16916ba3135984f6e70bbe42cf) --- source3/passdb/passdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/passdb') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 75f8171a25..c3a423c263 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -1287,6 +1287,7 @@ BOOL local_sid_to_gid(gid_t *pgid, const DOM_SID *psid, enum SID_NAME_USE *name_ } *pgid = group.gid; + *name_type = group.sid_name_use; DEBUG(10,("local_sid_to_gid: SID %s -> gid (%u)\n", sid_string_static(psid), (unsigned int)*pgid)); -- cgit