s3-winbindd: Do not use WBC_ types internally in winbindd
[samba.git] / source3 / winbindd / winbindd_sids_to_xids.c
index 0ed6c89cb4c2755af8e5f5bba56079185c574980..2df5f54e750e2d53e215c9c9a13df3218b3c3e33 100644 (file)
@@ -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],