GH-17 invalid exop mountpoints crash server
This commit is contained in:
parent
be3d5fa7fa
commit
a515652ac7
|
@ -733,7 +733,7 @@ Server.prototype._getHandlerChain = function(req) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
backend: routes.backend,
|
backend: routes.backend,
|
||||||
handlers: route[op] || [defaultExopHandler]
|
handlers: route[op] || [noExOpHandler]
|
||||||
};
|
};
|
||||||
} else if (req.protocolOp === Protocol.LDAP_REQ_UNBIND) {
|
} else if (req.protocolOp === Protocol.LDAP_REQ_UNBIND) {
|
||||||
function getUnbindChain() {
|
function getUnbindChain() {
|
||||||
|
|
|
@ -229,6 +229,14 @@ test('exop invalid', function(t) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
test('bogus exop (GH-17)', function(t) {
|
||||||
|
client.exop('cn=root', function(err, value) {
|
||||||
|
t.ok(err);
|
||||||
|
t.end();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
test('modify success', function(t) {
|
test('modify success', function(t) {
|
||||||
var change = new Change({
|
var change = new Change({
|
||||||
type: 'Replace',
|
type: 'Replace',
|
||||||
|
|
Loading…
Reference in New Issue