refactor(core): Move Logger to core (no-changelog) (#12310)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-12-23 13:46:13 +01:00
committed by GitHub
parent b4c77f27b6
commit 471d7b9420
142 changed files with 328 additions and 302 deletions

View File

@@ -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,