From 0cad493412c034a7dec36db5dfb11425d897547a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 23 Mar 2012 17:58:39 +1100 Subject: s3-winbindd: Do not use WBC_ types internally in winbindd Use the types from idmap.idl instead Signed-off-by: Michael Adam --- source3/winbindd/winbindd_sids_to_xids.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/winbindd_sids_to_xids.c b/source3/winbindd/winbindd_sids_to_xids.c index 0ed6c89cb4..2df5f54e75 100644 --- a/source3/winbindd/winbindd_sids_to_xids.c +++ b/source3/winbindd/winbindd_sids_to_xids.c @@ -267,24 +267,26 @@ NTSTATUS winbindd_sids_to_xids_recv(struct tevent_req *req, type = 'G'; } } else { + unix_id = state->ids.ids[num_non_cached].unix_id; if (unix_id == -1) { found = false; } + switch(state->ids.ids[num_non_cached].type) { - case WBC_ID_TYPE_UID: + case ID_TYPE_UID: type = 'U'; idmap_cache_set_sid2uid( &state->non_cached[num_non_cached], unix_id); break; - case WBC_ID_TYPE_GID: + case ID_TYPE_GID: type = 'G'; idmap_cache_set_sid2gid( &state->non_cached[num_non_cached], unix_id); break; - case WBC_ID_TYPE_BOTH: + case ID_TYPE_BOTH: type = 'B'; idmap_cache_set_sid2both( &state->non_cached[num_non_cached], -- cgit