chore: support has landed in node.js (13.10.1)

This commit is contained in:
simon 2020-03-09 11:22:24 +01:00
parent 21db4164e3
commit 174f8b6fc1
3 changed files with 22 additions and 7 deletions

View File

@ -9,11 +9,12 @@ Authentication tested with Windows, Linux, Android and Apple devices.
# Quick start
1. Install nightly node js
- easiest way is to install a node js version from nodejs.org and run "npx n nightly" to install nightly version.
1. Install node js => 13.10.1
- easiest way is to install a node js version from nodejs.org or run "npx n latest" to install latest version.
2. Check out the config options, e.g. for google ldap, download your certificates from http://admin.google.com/ -> Apps -> LDAP -> Client
download the files and name them "ldap.gsuite.key" and "ldap.gsuite.crt" accordingly (Ensure you have activated your newly created LDAP Client in Google Admin).
3. Switch to this directory and run "npx radius-server -s YourRadiusSecret"
3. Switch to this directory and run "npx radius-server -s YourRadiusSecret"
4. Log into your WLAN Controller and configure the radius server to your newly running radius
5. On your clients, just connect to the WLAN, the clients should figure out the correct method by their own,
if they don't use: WPA2-Enterprise -> EAP-TTLS -> PAP / CHAP
@ -21,7 +22,7 @@ if they don't use: WPA2-Enterprise -> EAP-TTLS -> PAP / CHAP
## Known Issues / Disclaimer
This is a first implementation, which is currently only working with node js nightly (node 13+) (see https://github.com/nodejs/node/pull/31814).
Support for this has landed in node 13.10.1, therefore ensure you have installed at least this node version.
- MD5 Challenge not implenented, but RFC says this is mandatory ;-)
- Inner Tunnel does not act differently, even though spec says that EAP-message are not allowed to get fragmented,
@ -96,6 +97,6 @@ For general config options run with --help or see see [config.js](config.js) in
## Usage
Ensure you have installed latest nightly node version and run:
Ensure you have installed latest node version (>= 13.10.1) and run:
npm run start

13
package-lock.json generated
View File

@ -57,6 +57,14 @@
"eslint-plugin-unicorn": "^16.1.1"
}
},
"@hokify/node-ts-cache": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@hokify/node-ts-cache/-/node-ts-cache-4.0.1.tgz",
"integrity": "sha512-84xakZpB6FIJHnNfoJj6Kq7znAsl1GlDzKk1ijSpqFWjDP0iwwxUI2AdhKXIXZ9tCteJ2rLNgCYhG8oYtM3qEw==",
"requires": {
"bluebird": "3.5.5"
}
},
"@types/chai": {
"version": "4.2.9",
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.2.9.tgz",
@ -450,6 +458,11 @@
"integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==",
"dev": true
},
"bluebird": {
"version": "3.5.5",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz",
"integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w=="
},
"bn.js": {
"version": "4.11.8",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz",

View File

@ -3,7 +3,7 @@
"description": "radius server for google LDAP and TTLS",
"version": "1.1.2",
"engines": {
"node": ">13.9"
"node": ">13.10.1"
},
"bin": {
"radius-server": "./bin/radius-server"
@ -30,6 +30,7 @@
"preferGlobal": true,
"main": "dist/app.js",
"dependencies": {
"@hokify/node-ts-cache": "^4.0.1",
"debug": "^4.1.1",
"imap-simple": "^4.3.0",
"ldapauth-fork": "^4.3.2",
@ -37,8 +38,8 @@
"native-duplexpair": "^1.0.0",
"node-cache": "^5.1.0",
"radius": "~1.1.4",
"yargs": "~15.1.0",
"smtp-client": "^0.3.1"
"smtp-client": "^0.3.1",
"yargs": "~15.1.0"
},
"license": "GPLv3",
"devDependencies": {