node-activedirectory icon indicating copy to clipboard operation
node-activedirectory copied to clipboard

ERR_SSL_UNSAFE_LEGACY_RENEGOTIATION_DISABLED

Open mck-rahul-sadaphal opened this issue 2 years ago • 0 comments

While Fetching the ldap url to get the list of users by group name, i am getting above error

const ActiveDirectory = require('activedirectory'); const bluebird = require('bluebird'); const fs = require('fs'); const path = require('path');

const config = { url: "ldaps://abc.com", baseDN: "dc=ads,dc=com", username: "usr, password: "12345" } const cerPath = path.join(__dirname, 'cert.cer') console.log("cerPath => ", cerPath) tlsOptions = { ca: fs.readFileSync(cerPath), // rejectUnauthorized: false }; config.tlsOptions = tlsOptions;

const ads = bluebird.promisifyAll(new ActiveDirectory(config));

async function test() { try { let newlist = await ads.getUsersForGroupAsync("12345678"); console.log(newlist) } catch (error) { console.log(error) } }

test()

mck-rahul-sadaphal avatar Jun 22 '23 02:06 mck-rahul-sadaphal