diff --git a/src/app/tabs/settings.component.html b/src/app/tabs/settings.component.html index 33387d44..883f257b 100644 --- a/src/app/tabs/settings.component.html +++ b/src/app/tabs/settings.component.html @@ -197,17 +197,17 @@ {{'ex' | i18n}} exclude:joe@company.com | profile.firstName eq "John" {{'ex' | i18n}} exclude:joe@company.com | orgName=Engineering +
+ + + {{'ex' | i18n}} CN=Users +
{{'ex' | i18n}} inetOrgPerson
-
- - - {{'ex' | i18n}} CN=Users -
@@ -231,17 +231,18 @@ {{'ex' | i18n}} include:Sales,IT | type eq "APP_GROUP" {{'ex' | i18n}} include:Sales,IT
+
+ + + {{'ex' | i18n}} CN=Groups + {{'ex' | i18n}} CN=Users +
{{'ex' | i18n}} groupOfUniqueNames
-
- - - {{'ex' | i18n}} CN=Groups -
diff --git a/src/app/tabs/settings.component.ts b/src/app/tabs/settings.component.ts index f1a90fe4..eacbaecd 100644 --- a/src/app/tabs/settings.component.ts +++ b/src/app/tabs/settings.component.ts @@ -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) {