Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cepharum/ldap-bridge

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cepharum/ldap-bridge - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"name": "@cepharum/ldap-bridge",
"version": "0.1.3",
"version": "0.1.4",
"description": "remotely backed LDAP authentication",

@@ -5,0 +5,0 @@ "main": "server/index.js",

@@ -88,3 +88,3 @@ /**

key: options.key,
cert: options.cert,
certificate: options.cert,
} );

@@ -439,7 +439,17 @@

if ( !peers || !peers.length ) {
debug( "empty list of accepted peers -> accepting all" );
return Promise.resolve( true );
}
return DNS.reverse( req.connection.remoteAddress )
.then( ( [name] ) => name && peers.some( peer => peer === name ) );
const ip = req.connection.remoteAddress;
return DNS.reverse( ip )
.then( ( [name] ) => {
const isListed = name && peers.some( peer => peer === name );
debug( `peer ${ip} is ${name} which is ${isListed ? "" : "not "}listed -> ${isListed ? "accept" : "reject"}` );
return isListed;
} );
}

@@ -446,0 +456,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc