#4023 Inconsistency between ipasearchrecordslimit and --sizelimit
Closed: Fixed None Opened 10 years ago by adelton.

# ipa config-mod --help

says among others

  --searchrecordslimit=INT
                        Maximum number of records to search (-1 is unlimited)

However, that same value -1 cannot be used with *-find:

# ipa host-find --raw --pkey-only --sizelimit=-1
ipa: ERROR: invalid 'sizelimit': must be at least 0

And indeed, 0 works and seems to override the ipasearchrecordslimit default. But then,

# ipa config-mod --searchrecordslimit=0

seems to make the search limit unlimited, just like -1.

I'd recommend either promoting 0 in both places (including {{{ipa host-find --help}}} which currently does not tell you how to disable the limit) or enabling --sizelimit-1 as valid value.


During processing of remaining tickets in 4.2 Backlog, this ticket was found as suitable to be fixed in the nearest bugfixing branch - which is 4.2.x.

FreeIPA 4.2.1 was released, moving to 4.2.x.

master:

  • 65e958f Standardize minvalue for ipasearchrecordlimit and ipasesarchsizelimit for unlimited minvalue

ipa-4-2:

  • 28d6ae0 Standardize minvalue for ipasearchrecordlimit and ipasesarchsizelimit for unlimited minvalue

Metadata Update from @adelton:
- Issue assigned to rga
- Issue set to the milestone: FreeIPA 4.2.2

7 years ago

Login to comment on this ticket.

Metadata