Browse Source

new ad ldap datasource with ldapts

pull/7620/head
Hervé de CHAVIGNY 4 years ago
parent
commit
cddcc20402
  1. 4
      packages/server/src/integrations/adldap.ts

4
packages/server/src/integrations/adldap.ts

@ -157,7 +157,7 @@ module AdLdapModule {
console.log("Client ldap Non connecté") console.log("Client ldap Non connecté")
} }
try { try {
await this.client.bind(this.config.bindDN, this.config.secret); await this.client.bind(this.config.bindDN, this.config.secret)
const { searchEntries, searchReferences } = await this.client.search(this.config.baseDN, { const { searchEntries, searchReferences } = await this.client.search(this.config.baseDN, {
scope: 'sub', scope: 'sub',
@ -166,7 +166,7 @@ module AdLdapModule {
} catch (ex) { } catch (ex) {
throw ex; throw ex;
} finally { } finally {
await this.client.unbind(); await this.client.unbind()
} }
/*const response = await this.client.queryAttributes({ /*const response = await this.client.queryAttributes({
attributes: [`${query.bucket}`], attributes: [`${query.bucket}`],

Loading…
Cancel
Save