mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(Ldap Node): Add LDAP node (#4783)
This commit is contained in:
91
packages/nodes-base/credentials/Ldap.credentials.ts
Normal file
91
packages/nodes-base/credentials/Ldap.credentials.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/* eslint-disable n8n-nodes-base/cred-class-name-unsuffixed,n8n-nodes-base/cred-class-field-name-unsuffixed,n8n-nodes-base/cred-class-field-display-name-missing-api */
|
||||
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class Ldap implements ICredentialType {
|
||||
name = 'ldap';
|
||||
|
||||
displayName = 'LDAP';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'LDAP Server Address',
|
||||
name: 'hostname',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'IP or domain of the LDAP server',
|
||||
},
|
||||
{
|
||||
displayName: 'LDAP Server Port',
|
||||
name: 'port',
|
||||
type: 'string',
|
||||
default: '389',
|
||||
description: 'Port used to connect to the LDAP server',
|
||||
},
|
||||
{
|
||||
displayName: 'Binding DN',
|
||||
name: 'bindDN',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Distinguished Name of the user to connect as',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Binding Password',
|
||||
name: 'bindPassword',
|
||||
type: 'string',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
default: '',
|
||||
description: 'Password of the user provided in the Binding DN field above',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Connection Security',
|
||||
name: 'connectionSecurity',
|
||||
type: 'options',
|
||||
default: 'none',
|
||||
options: [
|
||||
{
|
||||
name: 'None',
|
||||
value: 'none',
|
||||
},
|
||||
{
|
||||
name: 'TLS',
|
||||
value: 'tls',
|
||||
},
|
||||
{
|
||||
name: 'STARTTLS',
|
||||
value: 'startTls',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Ignore SSL/TLS Issues',
|
||||
name: 'allowUnauthorizedCerts',
|
||||
type: 'boolean',
|
||||
description: 'Whether to connect even if SSL/TLS certificate validation is not possible',
|
||||
default: false,
|
||||
displayOptions: {
|
||||
hide: {
|
||||
connectionSecurity: ['none'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'CA Certificate',
|
||||
name: 'caCertificate',
|
||||
typeOptions: {
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
displayOptions: {
|
||||
hide: {
|
||||
connectionSecurity: ['none'],
|
||||
},
|
||||
},
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user