From 650c96725e5648397a15c806ca28c5733b749968 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Wed, 24 Nov 2010 11:57:59 +0100 Subject: [PATCH] s3:winbind correct a copy&paste error negative results of sid->gid lookups should be stored with idmap_cache_set_sid2gid instead of idmap_cache_set_sid2uid This seems to be a copy&paste error when similar logic from the sid2uid path was copied here in 84b88f4b. Autobuild-User: Volker Lendecke Autobuild-Date: Wed Nov 24 16:53:01 CET 2010 on sn-devel-104 --- source3/winbindd/idmap_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/winbindd/idmap_util.c b/source3/winbindd/idmap_util.c index 7525fa76203..a25bac4a1d2 100644 --- a/source3/winbindd/idmap_util.c +++ b/source3/winbindd/idmap_util.c @@ -132,7 +132,7 @@ backend: if (winbindd_use_idmap_cache()) { struct dom_sid null_sid; ZERO_STRUCT(null_sid); - idmap_cache_set_sid2uid(&null_sid, gid); + idmap_cache_set_sid2gid(&null_sid, gid); } DEBUG(10, ("gid [%lu] not mapped\n", (unsigned long)gid)); return NT_STATUS_NONE_MAPPED; @@ -258,7 +258,7 @@ backend: DEBUG(10, ("idmap_backends_sid_to_unixid failed: %s\n", nt_errstr(ret))); if (winbindd_use_idmap_cache()) { - idmap_cache_set_sid2uid(sid, -1); + idmap_cache_set_sid2gid(sid, -1); } return ret; } @@ -266,7 +266,7 @@ backend: if (map.status != ID_MAPPED) { DEBUG(10, ("sid [%s] is not mapped\n", sid_string_dbg(sid))); if (winbindd_use_idmap_cache()) { - idmap_cache_set_sid2uid(sid, -1); + idmap_cache_set_sid2gid(sid, -1); } return NT_STATUS_NONE_MAPPED; } -- 2.34.1