1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-02 00:23:14 +00:00

conditional settings for ldap ad

This commit is contained in:
Kyle Spearrin
2018-04-27 22:35:32 -04:00
parent dea8e48895
commit 87039fa784
4 changed files with 74 additions and 61 deletions

View File

@@ -56,6 +56,14 @@ export class SettingsComponent implements OnInit {
}
async submit() {
if (this.ldap.ad) {
this.sync.creationDateAttribute = 'whenCreated';
this.sync.revisionDateAttribute = 'whenChanged';
this.sync.emailPrefixAttribute = 'sAMAccountName';
this.sync.groupPath = 'CN=Users';
this.sync.userPath = 'CN=Users';
}
await this.configurationService.saveDirectoryType(this.directory);
await this.configurationService.saveDirectory(DirectoryType.Ldap, this.ldap);
await this.configurationService.saveDirectory(DirectoryType.GSuite, this.gsuite);