[Freeipa-devel] [PATCH] Add fail-safe defaults to time and size limits in ldap2 searches.

Pavel Zuna pzuna at redhat.com
Wed Oct 20 14:50:27 UTC 2010


On 10/14/2010 03:30 PM, Rob Crittenden wrote:
> Pavel Zuna wrote:
>> There was no default value set even though we were using config.get and
>> it was throwing exceptions if someone deleted one of the related config
>> values.
>>
>> Pavel
>
> Is this needed since get_ipa_config() will always return something for
> time and search limits?
>
> rob

Yes, because get_ipa_config will return defaults for time and search limits only 
when the whole ipaConfig entry isn't found.

I reworked the patch, so that defaults are always returned by get_ipa_config, 
but I left changes from the previous version, because it doesn't hurt anything 
and is a (very little) bit safer.

New version attached.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pzuna-freeipa-0033-2-limitdefaults.patch
Type: application/mbox
Size: 2387 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101020/4eabcd44/attachment.mbox>


More information about the Freeipa-devel mailing list