dapphp / radius

A pure PHP RADIUS client based on SysCo/al implementation
GNU Lesser General Public License v3.0
80 stars 43 forks source link

Support for CoA #21

Open aleksander237 opened 2 years ago

aleksander237 commented 2 years ago

Hello,

not really the issue, more like feature request. Do you plan to add support for https://www.ietf.org/rfc/rfc3576.txt. I don't now about other radius servers but FreeRADIUS has a coa-relay feature. You can configure FreeRADIUS to receive CoA packets and redirect them to the NAS. It is especially usefull when FreeRADIUS is used along with SQL database, and there is a PHP application which saves users in this database. Using your class, an application could use method like disconnectRequest($username) to disconnect user from NAS.

If you don't plan to extend your class, could you consider to make methods like clearError, decodeAttribute, generateRequestAuthenticator, parseRadiusResponsePacket, readRadiusResponse, sendRadiusRequest protected, so the class could be easily extended ?

Best regards

a1bert01 commented 2 years ago

+1 support for CoA (msg types 40-45)