authenticate-pam
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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` |
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
56
9794
6
1
- Removednan@0.8.0(transitive)
Updatednan@git://github.com/rvagg/nan.git#7f0d4798ca96c3f1627bfa17bef446b44bddc727