Allow startTLS during client setup

This commit is contained in:
Patrick Mooney 2015-05-24 19:56:16 -05:00
parent 821569c2c4
commit 3ca7e6d98f
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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({