2021-10-24 20:37:16 +00:00
|
|
|
@coreid/node-radius-server - CoreID maintained fork
|
|
|
|
Copyright (C) 2021 Simon Tretter, Garrett Mills
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
Note: this is a fork of Simon Tretter's node-radius-server package
|
|
|
|
modified for use in Starship CoreID. Per the terms of GPLv3, the
|
|
|
|
modifications made are documented below:
|
|
|
|
|
|
|
|
- Introduced the PackageInterface helper class
|
|
|
|
- enables integrating the library into code rather than as a
|
|
|
|
standalone CLI app
|
|
|
|
|
|
|
|
- Modified existing code to use configuration on the PackageInterface
|
|
|
|
class instead of global imports
|
|
|
|
|
|
|
|
- Modified existing code to log through PackageInterface.logger
|
|
|
|
|
|
|
|
- Modified existing code to introduce a credentialMiddleware method
|
|
|
|
to IPacket, which allows external code to customize the credentials
|
|
|
|
before they are sent
|
|
|
|
|
|
|
|
- Modified RadiusService to allow specifying a custom packet decoder
|
|
|
|
method on PackageInterface.
|
|
|
|
|
|
|
|
- Modified UDPServer class to expose a stop() method
|
2021-10-24 20:48:05 +00:00
|
|
|
|
2021-10-25 15:41:01 +00:00
|
|
|
- Added up(), isUp(), and down() methods to new RadiusServer to allow
|
2021-10-24 20:48:05 +00:00
|
|
|
for starting, checking, and stopping the radius server from code
|