New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ldapauth-fork

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldapauth-fork - npm Package Compare versions

Comparing version 2.2.17 to 2.2.18

4

CHANGES.md
# node-ldapauth-fork Changelog
## 2.2.18
- [issue #8] Fix options to actually work as documented
## 2.2.17

@@ -4,0 +8,0 @@

12

lib/ldapauth.js

@@ -93,3 +93,3 @@ /**

var clientOpts = {
this.clientOpts = {
url: opts.url,

@@ -107,8 +107,8 @@ connectTimeout: opts.connectTimeout,

if (opts.log4js && opts.verbose) {
clientOpts.log4js = opts.log4js;
this.clientOpts.log4js = opts.log4js;
}
this._adminClient = ldap.createClient(clientOpts);
this._adminClient = ldap.createClient(this.clientOpts);
this._adminBound = false;
this._userClient = ldap.createClient(clientOpts);
this._userClient = ldap.createClient(this.clientOpts);

@@ -149,3 +149,3 @@ if (opts.cache) {

// Anonymous binding
if (typeof this.opts.adminDn === 'undefined' || this.opts.adminDn === null) {
if (typeof this.clientOpts.bindDn === 'undefined' || this.clientOpts.bindDn === null) {
return callback();

@@ -157,3 +157,3 @@ }

var self = this;
this._adminClient.bind(this.opts.adminDn, this.opts.adminPassword,
this._adminClient.bind(this.clientOpts.bindDn, this.clientOpts.bindCredentials,
function (err) {

@@ -160,0 +160,0 @@ if (err) {

{
"name": "ldapauth-fork",
"version": "2.2.17",
"version": "2.2.18",
"main": "./lib/ldapauth.js",

@@ -5,0 +5,0 @@ "description": "Authenticate against an LDAP server",

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