summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/idmap_util.c
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2008-08-22 14:54:50 -0500
committerGerald (Jerry) Carter <jerry@samba.org>2008-08-22 14:54:50 -0500
commit5571bd29131ae8b27c25b478e2dd831aef99580c (patch)
tree77ad69cb602c0a989e1d39d46a2cbaf9ade452a2 /source3/winbindd/idmap_util.c
parent7e0314f6a29dd36e3911a21972aedb76270f1313 (diff)
downloadsamba-5571bd29131ae8b27c25b478e2dd831aef99580c.tar.gz
samba-5571bd29131ae8b27c25b478e2dd831aef99580c.tar.xz
samba-5571bd29131ae8b27c25b478e2dd831aef99580c.zip
idmap_gid_to_sid: Fix a cut-a-npaste error.
The call was looking up a uid and not gid in the cache. (This used to be commit 25293ba1507f8f8fa7e33c302200184e980bb123)
Diffstat (limited to 'source3/winbindd/idmap_util.c')
-rw-r--r--source3/winbindd/idmap_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_util.c b/source3/winbindd/idmap_util.c
index 2a6beca5a2a..b10a1a4ba94 100644
--- a/source3/winbindd/idmap_util.c
+++ b/source3/winbindd/idmap_util.c
@@ -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()) {