1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s3:passdb: use ID_TYPE_* instead of WBC_ID_TYPE_*

Currently these enums have the same values, but that will
change in future.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14539

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Stefan Metzmacher 2020-09-15 16:46:44 +02:00 committed by Andrew Bartlett
parent 1576421dbd
commit 58e9b62222

View File

@ -1339,14 +1339,14 @@ bool sids_to_unixids(const struct dom_sid *sids, uint32_t num_sids,
done:
for (i=0; i<num_sids; i++) {
switch(ids[i].type) {
case WBC_ID_TYPE_GID:
case WBC_ID_TYPE_UID:
case WBC_ID_TYPE_BOTH:
case ID_TYPE_GID:
case ID_TYPE_UID:
case ID_TYPE_BOTH:
if (ids[i].id == -1) {
ids[i].type = ID_TYPE_NOT_SPECIFIED;
}
break;
case WBC_ID_TYPE_NOT_SPECIFIED:
case ID_TYPE_NOT_SPECIFIED:
break;
}
}