mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-17 16:53:25 +00:00
models for entries
This commit is contained in:
6
src/models/entry.ts
Normal file
6
src/models/entry.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export abstract class Entry {
|
||||||
|
referenceId: string;
|
||||||
|
externalId: string;
|
||||||
|
creationDate: Date;
|
||||||
|
revisonDate: Date;
|
||||||
|
}
|
||||||
7
src/models/groupEntry.ts
Normal file
7
src/models/groupEntry.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { Entry } from './entry';
|
||||||
|
|
||||||
|
export class GroupEntry extends Entry {
|
||||||
|
name: string;
|
||||||
|
userMemberExternalIds = new Set<string>();
|
||||||
|
groupMemberReferenceIds = new Set<string>();
|
||||||
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
import { DirectoryType } from '../enums/directoryType';
|
import { DirectoryType } from '../enums/directoryType';
|
||||||
|
|
||||||
export class LdapConfiguration {
|
export class LdapConfiguration {
|
||||||
ssl: boolean = false;
|
ssl = false;
|
||||||
hostname: string;
|
hostname: string;
|
||||||
port: number = 389;
|
port = 389;
|
||||||
domain: string;
|
domain: string;
|
||||||
rootPath: string;
|
rootPath: string;
|
||||||
currentUser: boolean = false;
|
currentUser = false;
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
ad: boolean = true;
|
ad = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
export class SyncConfiguration {
|
export class SyncConfiguration {
|
||||||
users: boolean = false;
|
users = false;
|
||||||
groups: boolean = false;
|
groups = false;
|
||||||
interval: number = 5;
|
interval = 5;
|
||||||
userFilter: string;
|
userFilter: string;
|
||||||
groupFilter: string;
|
groupFilter: string;
|
||||||
removeDisabled: boolean = false;
|
removeDisabled = false;
|
||||||
// Ldap properties
|
// Ldap properties
|
||||||
groupObjectClass: string;
|
groupObjectClass: string;
|
||||||
userObjectClass: string;
|
userObjectClass: string;
|
||||||
@@ -13,7 +13,7 @@ export class SyncConfiguration {
|
|||||||
groupNameAttribute: string;
|
groupNameAttribute: string;
|
||||||
userEmailAttribute: string;
|
userEmailAttribute: string;
|
||||||
memberAttribute: string;
|
memberAttribute: string;
|
||||||
useEmailPrefixSuffix: boolean = false;
|
useEmailPrefixSuffix = false;
|
||||||
emailPrefixAttribute: string;
|
emailPrefixAttribute: string;
|
||||||
emailSuffix: string;
|
emailSuffix: string;
|
||||||
creationDateAttribute: string;
|
creationDateAttribute: string;
|
||||||
|
|||||||
7
src/models/userEntry.ts
Normal file
7
src/models/userEntry.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { Entry } from './entry';
|
||||||
|
|
||||||
|
export class UserEntry extends Entry {
|
||||||
|
email: string;
|
||||||
|
disabled = false;
|
||||||
|
deleted = false;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user