You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a bug in the way we assign ranges for domain when we algorithmically perform id mapping.
In sss_idmap_calculate_range() we compute the upper limit for ids max as being 'min + range' which means that actual range of ids is:
max - min + 1 = min + range - min + 1 = range + 1
And this differs from range by 1.
We should be even be able to see some mapping issue with secondary ranges. The last POSIX ID from a range and the first POSIX ID from the next range should return the same SID/RID.
In the IPA code there is 'range.max = r->base_id + r->id_range_size -1;' We should amend code to the same.
Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/2922
There seems to be a bug in the way we assign ranges for domain when we algorithmically perform id mapping.
In sss_idmap_calculate_range() we compute the upper limit for ids max as being 'min + range' which means that actual range of ids is:
And this differs from range by 1.
We should be even be able to see some mapping issue with secondary ranges. The last POSIX ID from a range and the first POSIX ID from the next range should return the same SID/RID.
In the IPA code there is 'range.max = r->base_id + r->id_range_size -1;' We should amend code to the same.
Comments
Comment from lslebodn at 2016-01-13 18:34:31
If there's seems to be a bug could you write unit test which will fail? TDD way.
Comment from jhrozek at 2016-01-14 16:36:42
Fields changed
rhbz: => [https://bugzilla.redhat.com/show_bug.cgi?id=1298629 1298629]
Comment from jhrozek at 2016-01-14 16:48:40
Fields changed
milestone: NEEDS_TRIAGE => SSSD 1.13.4
priority: major => critical
Comment from lslebodn at 2016-01-20 18:18:26
master:
sssd-1-13:
Comment from lslebodn at 2016-01-20 18:22:31
There is a missing unit test for this bug.
We needn't open new bug and it can be tracked here.
Comment from lslebodn at 2016-02-03 17:19:11
Man page change:
master:
sssd-1-13:
Comment from preichl at 2016-02-04 10:59:20
Fields changed
owner: somebody => preichl
status: new => assigned
Comment from preichl at 2016-02-10 15:07:24
Fields changed
patch: 0 => 1
Comment from lslebodn at 2016-02-15 10:13:21
Unit test
master:
sssd-1-13:
resolution: => fixed
status: assigned => closed
Comment from preichl at 2017-02-24 14:44:11
Metadata Update from @preichl:
The text was updated successfully, but these errors were encountered: