Commit 082a58cd authored by Ray Bellis's avatar Ray Bellis
Browse files

README updated again

parent 21110335
......@@ -32,9 +32,21 @@ where:
by overriding the response code or by adding additional
and then registering them with the server with the `.use` method, e.g.:
new RADIUS.Server()
auth: myAuthenticationFunc,
acct: myAccountingFunc
For an example server, see `test-server.js`. This trivial server
accepts only one combination of valid username and password
(myuser/mypass) and will reject all others.
(myuser/mypass) and will reject all others. A second handler then adds
a default IP address and Subnet mask (e.g. for dynamic dialup) for any
successful login.
Callback functions are invoked _asynchronously_ and return a `Promise`.
If that Promise resolves to a "truthy" value the response is sent
......@@ -46,7 +58,7 @@ The default behaviour with no callbacks registered is:
- `Access-Request` packets generate `Access-Reject`
- `Accounting-Request` packets generating `Accounting-Response`
- `Accounting-Request` packets generate `Accounting-Response`
- `Server-Status` packets are not passed to the callbacks but are handled
internally within the framework. They generate either `Access-Accept`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment