Socket
Socket
Sign inDemoInstall

@acastellon/ldap

Package Overview
Dependencies
44
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

config.ldap.template.js

3

ldap.js

@@ -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 @@

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