Radius , PPPoE and user with "-"

When I try discconect user with “-” in username ,
etc. ,

… I recived this in log “Error-Cause = 406” ,

… 406 Unsupported Extension … by who , mikrotik or radius ?

it must be a mikrotik error…radius wont stop you from disconnecting a user.

regards,
Asad

now I see this…

.. if user have “-” , etc. disconnect work fine,

but , if I try disconnect user with “-1” , etc. , (ghost or second login with same username), I recived error 406

my script find username with “-” over snmp, and send disconnect request for that user,

I try with this to resolve problems with ghost user

The pppoe and 1 part are added by Mikrotik, it’s not the username.

How exactly are you trying to ‘disconnect’ this user?

script read OID (simplequeue), and recived

then used username-1 , put in disconnect request and send to radius …

radius send request to mikrotik …

but mikrotik have error 406 and put request in Naks.

mikrotik have username with -1, but this “-1” make mikrotik and probably this is problem ?

Strip the pppoe and -1 parts. Mikrotik adds them internally.

Best would be to use the Radius Accounting data, you need far more than just a username to send a radius disconnect message…