s3:winbindd: factor winbindd_sids_to_xids into external and internal part
authorMichael Adam <obnox@samba.org>
Sat, 17 Nov 2012 01:30:07 +0000 (02:30 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 3 Dec 2012 07:48:21 +0000 (08:48 +0100)
commit8e5ce1e2d53f36fd35eb8efad7da680dcf0b1ce1
treeaa270f566a0bc5754582326afa1cec838b5dff27
parentc58c68d5ba58855098d24c54db9c0cda19db0f4b
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>
source3/Makefile.in
source3/winbindd/wb_sids2xids.c [new file with mode: 0644]
source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_sids_to_xids.c
source3/wscript_build