s3:winbindd: factor winbindd_sids_to_xids into external and internal part
commit9b94125235bb82131e4ba22790e562ae27048ed4
authorMichael Adam <obnox@samba.org>
Sat, 17 Nov 2012 01:30:07 +0000 (17 02:30 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 Dec 2012 12:01:31 +0000 (3 13:01 +0100)
treec3daf69edce660cf86ae3417fa244a67f11e59ac
parent52d9672024feb70c01666a1da8e64efba67c1c38
s3:winbindd: factor winbindd_sids_to_xids into external and internal part

- external part takes winbindd request/reponse structs (with sid strings)
- internal part takes sid lists

The new internal part implements functions wb_sids2xids_* that are
moved into the new module wb_sids2xids.c.

The purpose of this change is to use wb_sids2xids in winbindd_sid_to_uid
and winbindd_sid_to_gid instead of the currently used wb_sid2uid and wb_sid2gid.
We should just have one code path into id mapping and not several that behave
differently.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 8e5ce1e2d53f36fd35eb8efad7da680dcf0b1ce1)
source3/Makefile.in
source3/winbindd/wb_sids2xids.c [copied from source3/winbindd/winbindd_sids_to_xids.c with 62% similarity]
source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_sids_to_xids.c
source3/wscript_build