s3-idmap: Rework idmap_cache to store ID_TYPE_BOTH values
commit583b104d4b9a6ae65e4b43afaba665398a34c72f
authorAndrew Bartlett <abartlet@samba.org>
Fri, 23 Mar 2012 10:01:01 +0000 (23 21:01 +1100)
committerMichael Adam <obnox@samba.org>
Wed, 2 May 2012 11:18:02 +0000 (2 13:18 +0200)
tree57adfe71a9d11c1e925aa4c7dfd4f78614248f58
parent0cad493412c034a7dec36db5dfb11425d897547a
s3-idmap: Rework idmap_cache to store ID_TYPE_BOTH values

This required that the lower level cache store a UID/GID and a type, and that
we operate on struct unixid rather than just uid/gid.

The ID_TYPE_BOTH is then handled as being a positive mapping for both
a UID and GID value.  Wrapper functions are provided so that callers are not
changed in this patch.

Andrew Bartlett

Signed-off-by: Michael Adam <obnox@samba.org>
source3/lib/idmap_cache.c
source3/lib/idmap_cache.h