]> git.ipfire.org Git - thirdparty/samba.git/commit
idmap: unify passdb *id_to_sid methods
authorGarming Sam <garming@catalyst.net.nz>
Tue, 25 Nov 2014 01:45:26 +0000 (14:45 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 18 Dec 2014 09:46:12 +0000 (10:46 +0100)
commitd655b56996e3cba4bd0cc2a2b655ccb06f454310
tree5adfb96df9dc9d0ba703ddc35c82eee52286beea
parent0c32df451437529b5e551035e9c806eabc0054c8
idmap: unify passdb *id_to_sid methods

Instead of passing down gid or uid, a pointer to a unixid is now sent
down. This acts as an in-out variable so that the idmap functions can
correctly receive ID_TYPE_BOTH, filling in cache details correctly
rather than forcing the cache to store ID_TYPE_UID or ID_TYPE_GID.

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

Change-Id: I11409a0f498e61a3c0a6ae606dd7af1135e6b066
Pair-programmed-with: Andrew Bartlett <abarlet@samba.org>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 7979c6cc50eaa792e5094866878c63df36e715c3)
source3/include/passdb.h
source3/passdb/lookup_sid.c
source3/passdb/pdb_interface.c
source3/passdb/pdb_ldap.c
source3/passdb/pdb_samba_dsdb.c
source3/passdb/pdb_wbc_sam.c
source3/passdb/py_passdb.c
source3/utils/net_sam.c
source3/winbindd/idmap_passdb.c