文件操作 - ldap.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/types/ldap.ts
编辑文件内容
interface LdapMapping { cfgAttrValue: string; ldapValue: string; } export interface LdapError { title: string; body: string; } export interface SyncInfo { enabled: boolean; schedule: string; nextSync: string; prevSync?: SyncResult; } export interface LdapUserSyncInfo { nextSync?: string; prevSync?: string; status?: string; } export interface SyncResult { started: string; elapsed: string; UpdatedUserIds: number[]; MissingUserIds: number[]; FailedUsers?: FailedUser[]; } export interface FailedUser { Login: string; Error: string; } export interface LdapRole { orgId: number; orgName: string; orgRole: string; groupDN: string; } export interface LdapTeam { orgName: string; teamName: string; groupDN: string; } export interface LdapUserInfo { name: LdapMapping; surname: LdapMapping; email: LdapMapping; login: LdapMapping; } export interface LdapPermissions { isGrafanaAdmin: boolean; isDisabled: boolean; } export interface LdapUser { info: LdapUserInfo; permissions: LdapPermissions; roles: LdapRole[]; teams: LdapTeam[]; } export interface LdapServerInfo { available: boolean; host: string; port: number; error: string; } export type LdapConnectionInfo = LdapServerInfo[]; export interface LdapState { connectionInfo: LdapConnectionInfo; user?: LdapUser | null; syncInfo?: SyncInfo | null; connectionError?: LdapError | null; userError?: LdapError | null; ldapError?: LdapError | null; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件