#8774 Improve error reporting of ipa-range-check plugin
Opened by cheimes. Modified

Issue

The new subordinate id feature introduces a new ID range that is close to MAX_UINT32 value. XML-RPC tests for idrange pushed the value of the test ranges beyond the threshold of 2**32. This caused tests to fail with a generic error message ldap.INVALID_DN_SYNTAX: {'msgtype': 105, 'msgid': 13, 'result': 34, 'desc': 'Invalid DN syntax', 'ctrls': [], 'info': 'Range Check error'}

Steps to Reproduce

1) Create range with valyes beyond uint32_t max value

Actual behavior

Plugin fails with generic catch-all error message Range Check error.

Expected behavior

  • ipa-range-check slapi plugin should return more information. The error message should contain a hint that slapi_entry_to_range_info failed with ERANGE.
  • idrange Python plugin should perform more checks, e.g. baseid+range size must be smaller than MAX_UINT32.

Metadata