export interface ILdapState {
Enabled: boolean;
}
export interface ILdapUrl {
control: string;
cert: string;
crlCert: string;
}
export interface ILdap {
Controller: ILdapController;
LdapGroup: ILdapUserGroup[];
Certificate: ILdapCertificate;
Url?: ILdapUrl;
}
export interface ILdapController {
IPAddress: string;
Port: number;
Domain: string;
BindDN: string;
Folder: string;
}
export interface ILdapUserGroup {
Index?: number;
ID: number;
Name: string;
RoleID: string;
RoleLabel: string;
Folder: string;
LoginInterface: string[];
LoginRule: string[];
}
export interface ILdapCertificate {
VerificationEnabled: boolean;
VerificationLevel: string;
CrlVerification: boolean;
ServerCert: Certificate | null;
RootCert: Certificate | null;
IntermediateCert: Certificate[];
}
export interface Certificate {
Issuer: string;
SerialNumber: string;
Subject: string;
ValidNotAfter: string;
ValidNotBefore: string;
}