question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SASL external with TLS client certs

See original GitHub issue

I added a similar request/question to ldapjs but thought I’d ask here as well, since this seems better maintained. I’ve read the issues and docs and am pretty sure this is not supported, but wanted to check anyway.

I need to use LDAP (as a client) over ldaps:// where the tlsOptions contain a key and cert for TLS client authentication. I.e. the LDAP server (the peer) will verify my LDAP client via TLS client authentication.

But I want this TLS client auth to be used with the “SASL EXTERNAL mechanism” (page 29 in https://docs.ldap.com/specs/rfc4422.txt). As far as I can understand, this is something I can currently achieve with ldapsearch by supplying the -Y EXTERNAL.

So with all that in mind, since ldapts already supports TLS using client cert/key, is it possible for it to use -Y EXTERNAL so that they are also used as the SASL mechanism “EXTERNAL”?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:44 (44 by maintainers)

github_iconTop GitHub Comments

4reactions
jgeurtscommented, Dec 14, 2020

Thank you for the additional info, I’m hoping it helps me wrap my head around sasl! It seems that ldapi (ldap over unix sockets) is somewhat related. I wasn’t planning on supporting that - do you know if it’s needed from your setup? I’ll try to get back to looking into this later this week or next.

btw, you shouldn’t need to @ mention me anymore. I think I resolved my notification issues

2reactions
wattrycommented, Dec 23, 2021

Just installed the package from npm and ran the app. Still working for my ldaps request

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Set up SASL client certificate authentication
Clients connected to MongooseIM may authenticate with their TLS certificates. This method uses the SASL EXTERNAL mechanism. Server-side prerequisites. Properly ...
Read more >
SASL external with TLS client certs · Issue #667 · ldapjs/node ...
I need to use LDAP (as a client) over ldaps:// where the tlsOptions contain a key and cert for TLS client authentication.
Read more >
SASL EXTERNAL TLS question
Command line SASL, EXTERNAL mech setup: 1. Configure client and server certs (I guess you already have). slapd.conf will contain TLS certificate directives ......
Read more >
Client Authentication Failure: "The SASL EXTERNAL bind ...
OUD - Client Authentication Failure: "The SASL EXTERNAL bind request could not be processed because the client did not present a certificate ......
Read more >
XEP-0257: Client Certificate Management for SASL EXTERNAL
To manage their certificates, this protocol describes a way for clients to store, query and remove certificates on their server. These ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found