idmap_gid_to_sid: Fix a cut-a-npaste error.
authorGerald (Jerry) Carter <jerry@samba.org>
Fri, 22 Aug 2008 19:54:50 +0000 (14:54 -0500)
committerGerald (Jerry) Carter <jerry@samba.org>
Fri, 22 Aug 2008 19:54:50 +0000 (14:54 -0500)
The call was looking up a uid and not gid in the cache.
(This used to be commit 25293ba1507f8f8fa7e33c302200184e980bb123)

source3/winbindd/idmap_util.c

index 2a6beca5a2a9b3f0b5b68d6947ec208a46dc0812..b10a1a4ba940452b18bf515dd9af2ab794878ed1 100644 (file)
@@ -87,7 +87,7 @@ NTSTATUS idmap_gid_to_sid(const char *domname, DOM_SID *sid, gid_t gid)
 
        DEBUG(10,("gid = [%lu]\n", (unsigned long)gid));
 
-       if (idmap_cache_find_uid2sid(gid, sid, &expired)) {
+       if (idmap_cache_find_gid2sid(gid, sid, &expired)) {
                DEBUG(10, ("idmap_cache_find_gid2sid found %d%s\n", gid,
                           expired ? " (expired)": ""));
                if (expired && idmap_is_online()) {