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 - Removed `spaced()` and `rndSpaced` from DN API
- Fix parent/child rules regarding empty DNs - Fix parent/child rules regarding empty DNs
- #254 Allow simple client bind with empty credentials - #254 Allow simple client bind with empty credentials
- Add StartTLS support to client
## 0.7.1 ## 0.7.1

View File

@ -1119,7 +1119,7 @@ Client.prototype.connect = function connect() {
// socket before signalling successful connection. // socket before signalling successful connection.
// This setup needs to bypass the request queue since all other activity is // This setup needs to bypass the request queue since all other activity is
// blocked until the connection is considered fully established post-setup. // 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 = { var basicClient = {
bind: function bindBypass(name, credentials, controls, callback) { bind: function bindBypass(name, credentials, controls, callback) {
return self.bind(name, credentials, controls, callback, true); return self.bind(name, credentials, controls, callback, true);
@ -1127,6 +1127,9 @@ Client.prototype.connect = function connect() {
search: function searchBypass(base, options, controls, callback) { search: function searchBypass(base, options, controls, callback) {
return self.search(base, options, controls, callback, true); 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) unbind: self.unbind.bind(self)
}; };
vasync.forEachPipeline({ vasync.forEachPipeline({