From 3ca7e6d98f53e4a955f411e936ceb376e18f9b63 Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Sun, 24 May 2015 19:56:16 -0500 Subject: [PATCH] Allow startTLS during client setup --- CHANGES.md | 1 + lib/client/client.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index ac3e01e..5745f1b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -29,6 +29,7 @@ - Removed `spaced()` and `rndSpaced` from DN API - Fix parent/child rules regarding empty DNs - #254 Allow simple client bind with empty credentials +- Add StartTLS support to client ## 0.7.1 diff --git a/lib/client/client.js b/lib/client/client.js index 405f8c4..721fa9e 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -1119,7 +1119,7 @@ Client.prototype.connect = function connect() { // socket before signalling successful connection. // This setup needs to bypass the request queue since all other activity is // blocked until the connection is considered fully established post-setup. - // Only allow bind/search for now. + // Only allow bind/search/starttls for now. var basicClient = { bind: function bindBypass(name, credentials, controls, callback) { return self.bind(name, credentials, controls, callback, true); @@ -1127,6 +1127,9 @@ Client.prototype.connect = function connect() { search: function searchBypass(base, options, controls, callback) { return self.search(base, options, controls, callback, true); }, + starttls: function starttlsBypass(options, controls, callback) { + return self.starttls(options, controls, callback, true); + }, unbind: self.unbind.bind(self) }; vasync.forEachPipeline({