summaryrefslogtreecommitdiff
path: root/source3/lib/idmap_cache.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-26 11:07:12 +1000
committerMichael Adam <obnox@samba.org>2011-09-23 01:47:54 +0200
commitf236c539ad39932ee3c9a5df0276147a45dd1a42 (patch)
tree76aad49e3863f8292f290e9258968cb5d5677d79 /source3/lib/idmap_cache.h
parentdbbb69e5722075e6c791d350484add378079b1ff (diff)
downloadsamba-f236c539ad39932ee3c9a5df0276147a45dd1a42.tar.gz
samba-f236c539ad39932ee3c9a5df0276147a45dd1a42.tar.bz2
samba-f236c539ad39932ee3c9a5df0276147a45dd1a42.zip
s3-winbindd: add support for idmap type WBC_ID_TYPE_BOTH
this allows the s3 code to understand and cache responses from the s4 winbindd which may include a single SID mapped to both a uid and a gid Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Sep 23 01:47:54 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/lib/idmap_cache.h')
-rw-r--r--source3/lib/idmap_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/idmap_cache.h b/source3/lib/idmap_cache.h
index 1a62dba64f..4c87139770 100644
--- a/source3/lib/idmap_cache.h
+++ b/source3/lib/idmap_cache.h
@@ -31,9 +31,11 @@ bool idmap_cache_find_sid2gid(const struct dom_sid *sid, gid_t *pgid,
bool *expired);
bool idmap_cache_find_gid2sid(gid_t gid, struct dom_sid *sid, bool *expired);
void idmap_cache_set_sid2gid(const struct dom_sid *sid, gid_t gid);
+void idmap_cache_set_sid2both(const struct dom_sid *sid, uid_t id);
bool idmap_cache_del_uid(uid_t uid);
bool idmap_cache_del_gid(gid_t gid);
+bool idmap_cache_del_both(uid_t uid);
bool idmap_cache_del_sid(const struct dom_sid *sid);
#endif /* _LIB_IDMAP_CACHE_H_ */