diff --git a/.gitignore b/.gitignore
index 0b5c3fc19..fa0ac55ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,5 +27,17 @@ src/ui_ng/typings/
**/node_modules
**/ssl/
**/proxy.config.json
+
+src/ui_ng/src/**/*.js
+src/ui_ng/src/**/*.js.map
+src/ui_ng/src/**/*.json
+
**/npm*.log
+src/ui_ng/aot/**/*.js
+src/ui_ng/aot/**/*.js.map
+src/ui_ng/aot/**/*.json
+
+**/*ngsummary.json
+**/*ngfactory.ts
+**/aot
diff --git a/src/ui_ng/src/app/config/auth/config-auth.component.html b/src/ui_ng/src/app/config/auth/config-auth.component.html
index 8a9d81a36..1a7b135a3 100644
--- a/src/ui_ng/src/app/config/auth/config-auth.component.html
+++ b/src/ui_ng/src/app/config/auth/config-auth.component.html
@@ -29,10 +29,9 @@
-
-
- {{'CONFIG.LDAP.SEARCH_PWD' | translate}}
-
+ {{'CONFIG.LDAP.SEARCH_PWD' | translate}}
+
diff --git a/src/ui_ng/src/app/config/config.component.ts b/src/ui_ng/src/app/config/config.component.ts
index 091adfa30..c9e77853e 100644
--- a/src/ui_ng/src/app/config/config.component.ts
+++ b/src/ui_ng/src/app/config/config.component.ts
@@ -315,6 +315,9 @@ export class ConfigurationComponent implements OnInit, OnDestroy {
delete ldapSettings['ldap_search_password'];
}
+ //Fix: Confirm ldap scope is number
+ ldapSettings['ldap_scope'] = +ldapSettings['ldap_scope'];
+
this.testingLDAPOnGoing = true;
this.configService.testLDAPServer(ldapSettings)
.then(respone => {
@@ -402,6 +405,11 @@ export class ConfigurationComponent implements OnInit, OnDestroy {
if (typeof field.value === "boolean") {
changes[prop] = changes[prop] ? "1" : "0";
}
+
+ //Trim string value
+ if(typeof field.value === "string") {
+ changes[prop] = (''+changes[prop]).trim();
+ }
}
}
}