On scenario of a BNG / B-RAS of an ISP, the authentication processes are always a pain.
This pain is highly mitigated if you can use the Option82(or PPPoE+) sub-options to authenticate the subscribers (access-users).
On platforms like Cisco, Juniper, Huawei, Accell, you can rewrite the username that the radius-cliente of NAS (BNG / B-RAS) will send to the radius on an authentication request.
Depending on the platform, this can be done with extremely limited flexibility (just replace), or it can be done with regex, or even calling scripts to that.
I suggest / request to MikroTik that include this possibility also on Router-OS.
The basic idea is that on DHCP Radius Request, instead of sending the mac-address as username, radius client would replace that username field on radius-auth-request with the information that comes on circuit-id | remote-id | subscriber-id.
Of course, it would need to include some extra logic like “what if this request does not come with Option82 as it is expected?”
But I think RouterOS engineers could think of a satisfactory solution to that.
Alternatively, if engineers are short on time, maybe just giving the possibility of a hook to a script, after the DHCP session been initiated and before it goes to the radius-client part of the system, would be enough.
P.S.: I also created a feature request for that on MikroTik servicedesk. SUP-122259.
I’m creating a topic here also, so that other users could suggest improvements to that.