idmap: return the correct id type to *id_to_sid methods
authorGarming Sam <garming@catalyst.net.nz>
Wed, 26 Nov 2014 02:33:35 +0000 (15:33 +1300)
committerGarming Sam <garming@samba.org>
Wed, 3 Dec 2014 03:21:09 +0000 (04:21 +0100)
commit58b343be4742b3ba1f447701a8254453c21af413
tree35e31bf6ebce055636b87c2a2733e2485d4a9558
parent7979c6cc50eaa792e5094866878c63df36e715c3
idmap: return the correct id type to *id_to_sid methods

We have a pointer to a unixid which is sent down instead of a uid or
gid. We can use this as an in-out variable so that pdb_samba_dsdb can be
returned ID_TYPE_BOTH to cache correctly instead of leaving it as
ID_TYPE_UID or ID_TYPE_GID.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10720

Change-Id: I0cef2e419cbb337531244b7b41c708cf2ab883e3
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/knownfail
source4/winbind/idmap.c