Skip to content

mgerald21/node-red-auth-pam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-red-auth-pam

Provides an authentication mechanism for NodeRED based on PAM on Linux

Installing

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

Usage

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.
// ...

Limitations

  • Usermap and linux PAM user need to be aligned

Bugs and enhancements

Please open an issue on the page of the project on GitHub, or reach out on the Node-RED forum.

License

Copyright 2017-2020 Smart-Tech, Apache 2.0 license.

About

Provides an authentication mechanism for NodeRED based on PAM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%