From 4a84bf82283fb63edd8634faf7bc51c06a300691 Mon Sep 17 00:00:00 2001 From: Krzysztof Kaczor Date: Tue, 29 Nov 2016 23:05:41 +0100 Subject: [PATCH] Exposed ldapjs and added starttls function --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1f15bac..020b75a 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,7 @@ function Client(options) { this.client = ldap.createClient(options); } +Client.LdapJs = ldap function promisify(fn) { return function () { @@ -25,7 +26,7 @@ function promisify(fn) { } -['bind', 'add', 'compare', 'del', 'exop', 'modify', 'modifyDN', 'unbind'].forEach(function (fn) { +['bind', 'add', 'compare', 'del', 'exop', 'modify', 'modifyDN', 'unbind', 'starttls'].forEach(function (fn) { Client.prototype[fn] = promisify(fn); });