Socket
Socket
Sign inDemoInstall

ldapjs

Package Overview
Dependencies
Maintainers
6
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldapjs - npm Package Compare versions

Comparing version 3.0.6 to 3.0.7

2

lib/server.js

@@ -857,3 +857,2 @@ // Copyright 2011 Mark Cavage, Inc. All rights reserved.

// Otherwise, match via DN rules
assert.ok(req.dn)
const keys = this._sortedRouteKeys()

@@ -863,2 +862,3 @@ let fallbackHandler = [noSuffixHandler]

const testDN = (typeof (req.dn) === 'string') ? DN.fromString(req.dn) : req.dn
assert.ok(testDN)

@@ -865,0 +865,0 @@ for (let i = 0; i < keys.length; i++) {

@@ -6,3 +6,3 @@ {

"description": "LDAP client and server APIs",
"version": "3.0.6",
"version": "3.0.7",
"license": "MIT",

@@ -9,0 +9,0 @@ "repository": {

@@ -260,2 +260,23 @@ 'use strict'

tap.test('does not crash on empty DN values', function (t) {
const server = ldap.createServer({
connectionRouter: function (c) {
server.newConnection(c)
server.emit('testconnection', c)
}
})
server.listen(t.context.sock, function () {
const client = ldap.createClient({ socketPath: t.context.sock })
server.once('testconnection', () => {
client.bind('', 'pw', function (err) {
t.ok(err, 'blank bind dn throws error')
client.unbind(function () {
server.close(() => t.end())
})
})
})
})
})
tap.test('bind/unbind identity user', function (t) {

@@ -262,0 +283,0 @@ const server = ldap.createServer({

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