From 2d97b77bbfcaafb0f79b0428153e1b546de7c9e4 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sun, 18 Oct 2020 23:04:01 -0500 Subject: [PATCH] Fix user bind error constructor --- app/ldap/controllers/LDAPController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ldap/controllers/LDAPController.js b/app/ldap/controllers/LDAPController.js index 43897de..32f2c85 100644 --- a/app/ldap/controllers/LDAPController.js +++ b/app/ldap/controllers/LDAPController.js @@ -50,7 +50,7 @@ class LDAPController extends Injectable { const item = await this.get_resource_from_dn(req.dn) if ( !item ) { this.output.debug(`Bind failure: ${req.dn} not found`) - return next(new LDAP.NoSuchObject()) + return next(new LDAP.NoSuchObjectError()) } // If the object is can-able, make sure it can bind