Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Documentation shows false implementation #802

Closed
OrbiterToad opened this issue Apr 28, 2022 · 2 comments
Closed

Documentation shows false implementation #802

OrbiterToad opened this issue Apr 28, 2022 · 2 comments

Comments

@OrbiterToad
Copy link

Hello There i just got started with ldapjs and there doesn't seem to be a fine example of how to use starttls
https://github.com/ldapjs/node-ldapjs/blob/master/docs/client.md#starttls

Doc says usage is starttls(options, controls, callback)

But example says

const opts = {
  ca: [fs.readFileSync('mycacert.pem')]
};

client.starttls(opts, (err, res) => {
  assert.ifError(err);

  // Client communication now TLS protected
});

But doesnt seem to be an optional param:

Client.prototype.starttls = function starttls (options, controls, callback, _bypass) {
  //...
}

how do i properly create tls upgrade with the starttls method? or better how do i create/use the control?

@jsumners
Copy link
Member

The control is added by the starttls method:

const req = new ExtendedRequest({
requestName: '1.3.6.1.4.1.1466.20037',
requestValue: null,
controls: controls
})

@jsumners
Copy link
Member

👋

On February 22, 2023, we released version 3 of this library. As a result, we are closing this issue/pull request.

Please see issue #839 for more information, including how to proceed if you feel this closure is in error.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants