ldapjs / node-ldapjs

LDAP Client and Server API for node.js
http://ldapjs.org
MIT License
1.61k stars 442 forks source link

TLS 1.3 not supported #976

Open jelhub opened 5 months ago

jelhub commented 5 months ago

Testing Active Directory

const ldap = require('ldapjs')

const client = ldap.createClient({
  url: ['ldaps://ad.test.com:636'],
  connectTimeout: 5000,
  tlsOptions: {
    rejectUnauthorized: false
  }
})

client.bind('CN=Administrator,CN=Users,DC=test,DC=com', 'password', (err, res) => {
  if (err) {
    console.log('bind error: ' + err.message)
    return
  }
  console.log('OK')
})

Domain controller only allowing TLS 1.3

image

TLS 1.3 only test will fail: ECONNRESET

image

TLS 1.2 appears to be the most advanced TLS version supported:

image