Socket
Socket
Sign inDemoInstall

authenticate-pam

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

2

MIT-LICENSE.txt

@@ -1,2 +0,2 @@

Copyright (c) 2012 Damian Kaczmarek <rush@rushbase.net>
Copyright (c) 2013-2014 Code Charm Ltd <damian@codecharm.co.uk>

@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining

{
"name": "authenticate-pam",
"version": "v0.2.0",
"version": "v0.2.1",
"scripts": {

@@ -20,4 +20,4 @@ "preinstall": "node-gyp configure && node-gyp build",

"dependencies": {
"nan": "~0.8.0"
"nan": "git://github.com/rvagg/nan.git#7f0d4798ca96c3f1627bfa17bef446b44bddc727"
}
}
node-authenticate-pam
=====================
Asynchronous PAM authentication for NodeJS 0.8.0 and later (using libuv and gyp)
Asynchronous PAM authentication for NodeJS 0.10 and 0.12

@@ -23,11 +23,13 @@ *You will most likely need to run it as root in most common environments!*

var pam = require('authenticate-pam');
pam.authenticate('myusername', 'mysecretpassword', function(err) {
if(err) {
console.log(err);
}
else {
console.log("Authenticated!");
}
});
```js
var pam = require('authenticate-pam');
pam.authenticate('myusername', 'mysecretpassword', function(err) {
if(err) {
console.log(err);
}
else {
console.log("Authenticated!");
}
});
```

@@ -40,14 +42,16 @@ Usage with options:

var pam = require('authenticate-pam');
pam.authenticate('rush', 'mysecretpassword', function(err) {
if(err) {
console.log(err);
}
else {
console.log("Authenticated!");
}
}, {serviceName: 'myapp', remoteHost: 'localhost'});
```js
var pam = require('authenticate-pam');
pam.authenticate('rush', 'mysecretpassword', function(err) {
if(err) {
console.log(err);
}
else {
console.log("Authenticated!");
}
}, {serviceName: 'myapp', remoteHost: 'localhost'});
```
Install
-------------------
`npm install authenticate-pam`
`npm install authenticate-pam`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc