Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID mapping - bug in computing max id for slice range #3963

Closed
sssd-bot opened this issue May 2, 2020 · 0 comments
Closed

ID mapping - bug in computing max id for slice range #3963

sssd-bot opened this issue May 2, 2020 · 0 comments
Labels
Bugzilla Closed: Fixed Issue was closed as fixed.

Comments

@sssd-bot
Copy link

sssd-bot commented May 2, 2020

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:

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.

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:

  • Issue assigned to preichl
  • Issue set to the milestone: SSSD 1.13.4
@sssd-bot sssd-bot added Bugzilla Closed: Fixed Issue was closed as fixed. labels May 2, 2020
@sssd-bot sssd-bot closed this as completed May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugzilla Closed: Fixed Issue was closed as fixed.
Projects
None yet
Development

No branches or pull requests

1 participant