Return Username to the Mikrotik

Alan DeKok aland at deployingradius.com
Thu Mar 17 19:38:27 UTC 2022


On Mar 17, 2022, at 1:39 PM, mohamad buvaydanı <starking123eng at gmail.com> wrote:
> 
> Thanks for replying actually ı am returning the mac to the username in
> accounting packet but i want  to do that for disconnect packet instead of
> sending disconnect packet to the mac i wanted tosend disconnect for
> username.

  That's not how RADIUS works.

  If the session has the MAC for a User-Name, then CoA / disconnect packet MUST have the same MAC in the User-Name.

  You can store the MAC in the DB, associated with the User-Name.  Then, if you want to kick off user "bob", look "bob" up in the DB to get the MAC, and then send the RADIUS CoA packet with the MAC in the User-Name.

  Alan DeKok.



More information about the Freeradius-Users mailing list