|
|
@ -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}`], |
|
|
|