1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-22 03:03:22 +00:00

allow settings for user and groups path on ad

This commit is contained in:
Kyle Spearrin
2018-05-14 08:46:57 -04:00
parent af5349c4cb
commit 79b76687a0
2 changed files with 18 additions and 12 deletions

View File

@@ -80,13 +80,18 @@ export class SettingsComponent implements OnInit, OnDestroy {
this.sync.creationDateAttribute = 'whenCreated';
this.sync.revisionDateAttribute = 'whenChanged';
this.sync.emailPrefixAttribute = 'sAMAccountName';
this.sync.groupPath = 'CN=Users';
this.sync.userPath = 'CN=Users';
this.sync.memberAttribute = 'member';
this.sync.userObjectClass = 'person';
this.sync.groupObjectClass = 'group';
this.sync.userEmailAttribute = 'mail';
this.sync.groupNameAttribute = 'name';
if (this.sync.groupPath == null) {
this.sync.groupPath = 'CN=Users';
}
if (this.sync.userPath == null) {
this.sync.userPath = 'CN=Users';
}
}
if (this.sync.interval != null) {