@acastellon/ldap
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -18,5 +18,4 @@ // -- LDAP Simple access system | ||
const ad = new ActiveDirectory(setup); | ||
const listOfRoles = Object.keys(setup.ROLES); | ||
let listOfRoles = Object.keys(setup.ROLES); | ||
process.env.SERVER_ENVIRONMENT = process.env.SERVER_ENVIRONMENT.trim(); //trick. npm is adding in script a blank character | ||
@@ -23,0 +22,0 @@ |
{ | ||
"name": "@acastellon/ldap", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "LDAP module to validate and filter roles from a user", | ||
@@ -12,3 +12,3 @@ "main": "ldap.js", | ||
"type": "git", | ||
"url": "git+https://github.com/antonio-castellon/ldap.git" | ||
"url": "git+https://github.com/antonio-castellon/module-ldap.git" | ||
}, | ||
@@ -24,5 +24,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/antonio-castellon/ldap/issues" | ||
"url": "https://github.com/antonio-castellon/module-ldap/issues" | ||
}, | ||
"homepage": "https://github.com/antonio-castellon/ldap#readme" | ||
"homepage": "https://github.com/antonio-castellon/module-ldap#readme" | ||
} |
# ldap | ||
LDAP generic interface module that filter and returns the available roles depending of previous definition file | ||
it's depending of the environment variable named: SERVER_ENVIRONMENT, | ||
in case of value equals to "local", it will use the mockup configuration from the setup file. |
// | ||
// test module | ||
// | ||
const setup = require('./ldap.config.js'); | ||
const setup = require('./config.ldap.js'); | ||
const ldap = require('./ldap.js')(setup); | ||
@@ -6,0 +6,0 @@ |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5888
6