sid_compose(map->sid, &domain->sid, map->xid.id - dom->low_id + ctx->base_rid);
- /* We **really** should have some way of validating
- the SID exists and is the correct type here. But
- that is a deficiency in the idmap_rid design. */
-
map->status = ID_MAPPED;
+ map->xid.type = ID_TYPE_BOTH;
return NT_STATUS_OK;
}
sid_peek_rid(map->sid, &rid);
map->xid.id = rid - ctx->base_rid + dom->low_id;
+ map->xid.type = ID_TYPE_BOTH;
/* apply filters before returning result */
.sids_to_unixids = idmap_rid_sids_to_unixids,
};
-NTSTATUS samba_init_module(void)
+NTSTATUS idmap_rid_init(void)
{
return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "rid", &rid_methods);
}