mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Add LDAP support (#3835)
This commit is contained in:
@@ -40,6 +40,7 @@ import {
|
||||
IAbstractEventMessage,
|
||||
} from 'n8n-workflow';
|
||||
import { FAKE_DOOR_FEATURES } from './constants';
|
||||
import { SignInType } from './constants';
|
||||
import { BulkCommand, Undoable } from '@/models/history';
|
||||
|
||||
export * from 'n8n-design-system/types';
|
||||
@@ -642,6 +643,7 @@ export interface IUserResponse {
|
||||
};
|
||||
personalizationAnswers?: IPersonalizationSurveyVersions | null;
|
||||
isPending: boolean;
|
||||
signInType?: SignInType;
|
||||
}
|
||||
|
||||
export interface IUser extends IUserResponse {
|
||||
@@ -808,6 +810,10 @@ export interface IN8nUISettings {
|
||||
enabled: boolean;
|
||||
};
|
||||
};
|
||||
ldap: {
|
||||
loginLabel: string;
|
||||
loginEnabled: boolean;
|
||||
};
|
||||
onboardingCallPromptEnabled: boolean;
|
||||
allowedModules: {
|
||||
builtIn?: string[];
|
||||
@@ -1224,6 +1230,10 @@ export interface ISettingsState {
|
||||
enabled: boolean;
|
||||
};
|
||||
};
|
||||
ldap: {
|
||||
loginLabel: string;
|
||||
loginEnabled: boolean;
|
||||
};
|
||||
onboardingCallPromptEnabled: boolean;
|
||||
saveDataErrorExecution: string;
|
||||
saveDataSuccessExecution: string;
|
||||
@@ -1385,6 +1395,50 @@ export type SchemaType =
|
||||
| 'function'
|
||||
| 'null'
|
||||
| 'undefined';
|
||||
|
||||
export interface ILdapSyncData {
|
||||
id: number;
|
||||
startedAt: string;
|
||||
endedAt: string;
|
||||
created: number;
|
||||
updated: number;
|
||||
disabled: number;
|
||||
scanned: number;
|
||||
status: string;
|
||||
error: string;
|
||||
runMode: string;
|
||||
}
|
||||
|
||||
export interface ILdapSyncTable {
|
||||
status: string;
|
||||
endedAt: string;
|
||||
runTime: string;
|
||||
runMode: string;
|
||||
details: string;
|
||||
}
|
||||
|
||||
export interface ILdapConfig {
|
||||
loginEnabled: boolean;
|
||||
loginLabel: string;
|
||||
connectionUrl: string;
|
||||
allowUnauthorizedCerts: boolean;
|
||||
connectionSecurity: string;
|
||||
connectionPort: number;
|
||||
baseDn: string;
|
||||
bindingAdminDn: string;
|
||||
bindingAdminPassword: string;
|
||||
firstNameAttribute: string;
|
||||
lastNameAttribute: string;
|
||||
emailAttribute: string;
|
||||
loginIdAttribute: string;
|
||||
ldapIdAttribute: string;
|
||||
userFilter: string;
|
||||
synchronizationEnabled: boolean;
|
||||
synchronizationInterval: number; // minutes
|
||||
searchPageSize: number;
|
||||
searchTimeout: number;
|
||||
}
|
||||
|
||||
export type Schema = { type: SchemaType; key?: string; value: string | Schema[]; path: string };
|
||||
|
||||
export type UsageState = {
|
||||
|
||||
Reference in New Issue
Block a user