mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Move Logger to core (no-changelog) (#12310)
This commit is contained in:
committed by
GitHub
parent
b4c77f27b6
commit
471d7b9420
@@ -103,7 +103,7 @@ export class Ldap implements INodeType {
|
||||
credential: ICredentialsDecrypted,
|
||||
): Promise<INodeCredentialTestResult> {
|
||||
const credentials = credential.data as ICredentialDataDecryptedObject;
|
||||
const client = await createLdapClient(credentials);
|
||||
const client = await createLdapClient(this, credentials);
|
||||
try {
|
||||
await client.bind(credentials.bindDN as string, credentials.bindPassword as string);
|
||||
} catch (error) {
|
||||
@@ -123,7 +123,7 @@ export class Ldap implements INodeType {
|
||||
loadOptions: {
|
||||
async getAttributes(this: ILoadOptionsFunctions) {
|
||||
const credentials = await this.getCredentials('ldap');
|
||||
const client = await createLdapClient(credentials);
|
||||
const client = await createLdapClient(this, credentials);
|
||||
|
||||
try {
|
||||
await client.bind(credentials.bindDN as string, credentials.bindPassword as string);
|
||||
@@ -153,7 +153,7 @@ export class Ldap implements INodeType {
|
||||
|
||||
async getObjectClasses(this: ILoadOptionsFunctions) {
|
||||
const credentials = await this.getCredentials('ldap');
|
||||
const client = await createLdapClient(credentials);
|
||||
const client = await createLdapClient(this, credentials);
|
||||
try {
|
||||
await client.bind(credentials.bindDN as string, credentials.bindPassword as string);
|
||||
} catch (error) {
|
||||
@@ -196,7 +196,7 @@ export class Ldap implements INodeType {
|
||||
|
||||
async getAttributesForDn(this: ILoadOptionsFunctions) {
|
||||
const credentials = await this.getCredentials('ldap');
|
||||
const client = await createLdapClient(credentials);
|
||||
const client = await createLdapClient(this, credentials);
|
||||
|
||||
try {
|
||||
await client.bind(credentials.bindDN as string, credentials.bindPassword as string);
|
||||
@@ -242,6 +242,7 @@ export class Ldap implements INodeType {
|
||||
|
||||
const credentials = await this.getCredentials('ldap');
|
||||
const client = await createLdapClient(
|
||||
this,
|
||||
credentials,
|
||||
nodeDebug,
|
||||
this.getNode().type,
|
||||
|
||||
Reference in New Issue
Block a user