Comparing version 3.0.6 to 3.0.7
@@ -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({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
334286
7417