Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

GH-17 invalid exop mountpoints crash server

  • Loading branch information...
commit a515652ac7bd1877672bf7e8e296d3dc501b9c2d 1 parent be3d5fa
@mcavage authored
Showing with 9 additions and 1 deletion.
  1. +1 −1  lib/server.js
  2. +8 −0 tst/client.test.js
View
2  lib/server.js
@@ -733,7 +733,7 @@ Server.prototype._getHandlerChain = function(req) {
return {
backend: routes.backend,
- handlers: route[op] || [defaultExopHandler]
+ handlers: route[op] || [noExOpHandler]
};
} else if (req.protocolOp === Protocol.LDAP_REQ_UNBIND) {
function getUnbindChain() {
View
8 tst/client.test.js
@@ -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) {
var change = new Change({
type: 'Replace',
Please sign in to comment.
Something went wrong with that request. Please try again.