Provides an authentication mechanism for NodeRED based on PAM on Linux
This requires authenitcate-pam, that requires PAM headers for compilation. Install the package libpam0g-dev
with your favorite package manager. On Debian-based distros:
sudo apt-get install libpam0g-dev
Then install this package on the folder your settings.js
is located, typically ~/.node-red
, by running
npm install node-red-auth-pam
Just require the module and call the returning function, setting the result to adminAuth
, as the example below:
// ...
// }]
//},
adminAuth: require('node-red-auth-pam')(
{ users: [
{ username: "admin", permissions:"*" },
{ username: "user", permissions: "read" }
]}),
// To password protect the node-defined HTTP endpoints (httpNodeRoot), or
// the static content (httpStatic), the following properties can be used.
// ...
- Usermap and linux PAM user need to be aligned
Please open an issue on the page of the project on GitHub, or reach out on the Node-RED forum.
Copyright 2017-2020 Smart-Tech, Apache 2.0 license.