summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-23 17:58:39 +1100
committerMichael Adam <obnox@samba.org>2012-05-02 13:18:02 +0200
commit0cad493412c034a7dec36db5dfb11425d897547a (patch)
tree9265f8ee3febf20ea34681be41fac53fa2014202
parent6e1f6e495665246c1eb435942bb63dde7f3bf6e0 (diff)
downloadsamba-0cad493412c034a7dec36db5dfb11425d897547a.tar.gz
samba-0cad493412c034a7dec36db5dfb11425d897547a.tar.bz2
samba-0cad493412c034a7dec36db5dfb11425d897547a.zip
s3-winbindd: Do not use WBC_ types internally in winbindd
Use the types from idmap.idl instead Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/winbindd/winbindd_sids_to_xids.c8
1 files changed, 5 insertions, 3 deletions
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],