summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorGabe <redhatrises@gmail.com>2015-09-21 06:55:17 -0600
committerJan Cholasta <jcholast@redhat.com>2015-09-22 08:00:16 +0200
commit65e958fda4aee2e08cd1f7043369710b839476c3 (patch)
tree5015577bfbe5a14033bb84559ec92cd63e3c0e74 /ipaserver
parenta94f3e5be88aec378e62f8696ca928635e0569a5 (diff)
downloadfreeipa-65e958fda4aee2e08cd1f7043369710b839476c3.tar.gz
freeipa-65e958fda4aee2e08cd1f7043369710b839476c3.tar.xz
freeipa-65e958fda4aee2e08cd1f7043369710b839476c3.zip
Standardize minvalue for ipasearchrecordlimit and ipasesarchsizelimit for unlimited minvalue
https://fedorahosted.org/freeipa/ticket/4023 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/plugins/ldap2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index abeb522f7..ca11efd5e 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -183,8 +183,8 @@ class ldap2(CrudBackend, LDAPClient):
"""Get configured global limits, caching them for more calls"""
if not _lims:
config = self.get_ipa_config()
- _lims['time'] = config.get('ipasearchtimelimit', [None])[0]
- _lims['size'] = config.get('ipasearchrecordslimit', [None])[0]
+ _lims['time'] = int(config.get('ipasearchtimelimit', [None])[0])
+ _lims['size'] = int(config.get('ipasearchrecordslimit', [None])[0])
return _lims
_lims = {}