This repository was archived by the owner on May 14, 2024. It is now read-only.

Description
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

TLS 1.3 only test will fail: ECONNRESET

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