From 5dfa4fb62979ab9d4eba3c33a29397fe10f7cbc3 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 4 Jul 2016 07:04:02 -0400 Subject: Adding page size option to LDAP (#3439) --- webapp/components/admin_console/ldap_settings.jsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'webapp/components') diff --git a/webapp/components/admin_console/ldap_settings.jsx b/webapp/components/admin_console/ldap_settings.jsx index d362f1020..53b3d23e6 100644 --- a/webapp/components/admin_console/ldap_settings.jsx +++ b/webapp/components/admin_console/ldap_settings.jsx @@ -38,6 +38,7 @@ export default class LdapSettings extends AdminSettings { syncIntervalMinutes: props.config.LdapSettings.SyncIntervalMinutes, skipCertificateVerification: props.config.LdapSettings.SkipCertificateVerification, queryTimeout: props.config.LdapSettings.QueryTimeout, + maxPageSize: props.config.LdapSettings.MaxPageSize, loginFieldName: props.config.LdapSettings.LoginFieldName }); } @@ -60,6 +61,7 @@ export default class LdapSettings extends AdminSettings { config.LdapSettings.SyncIntervalMinutes = this.parseIntNonZero(this.state.syncIntervalMinutes); config.LdapSettings.SkipCertificateVerification = this.state.skipCertificateVerification; config.LdapSettings.QueryTimeout = this.parseIntNonZero(this.state.queryTimeout); + config.LdapSettings.MaxPageSize = this.parseInt(this.state.maxPageSize); config.LdapSettings.LoginFieldName = this.state.loginFieldName; return config; @@ -386,6 +388,25 @@ export default class LdapSettings extends AdminSettings { onChange={this.handleChange} disabled={!this.state.enable} /> + + } + placeholder={Utils.localizeMessage('admin.ldap.maxPageSizeEx', 'Ex "2000"')} + helpText={ + + } + value={this.state.maxPageSize} + onChange={this.handleChange} + disabled={!this.state.enable} + />