summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <christian.ambach@de.ibm.com>2010-11-24 11:57:59 +0100
committerVolker Lendecke <vlendec@samba.org>2010-11-24 16:53:01 +0100
commit650c96725e5648397a15c806ca28c5733b749968 (patch)
treefcbe9a9621742f9bf8fe8dcb3e9fbf2ad1fe3167
parent8d28ae10d278d6d2a738d55f47404651a20c17f4 (diff)
downloadsamba-650c96725e5648397a15c806ca28c5733b749968.tar.gz
samba-650c96725e5648397a15c806ca28c5733b749968.tar.bz2
samba-650c96725e5648397a15c806ca28c5733b749968.zip
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 <vlendec@samba.org> Autobuild-Date: Wed Nov 24 16:53:01 CET 2010 on sn-devel-104
-rw-r--r--source3/winbindd/idmap_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/winbindd/idmap_util.c b/source3/winbindd/idmap_util.c
index 7525fa7620..a25bac4a1d 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;
}