[autobackport: sssd-2-9] SSSD on IPA should fail with short names#8302
Conversation
There was a problem hiding this comment.
Code Review
This pull request backports a change to make SSSD fail to start on an IPA server if full_name_format is configured for short names. The changes in the C source files are correct and implement the intended behavior effectively. A new test is also added to verify this behavior.
My main concern is with the new test file src/tests/system/tests/test_ipa.py. It appears to have been added as a result of a merge conflict resolution and contains a large number of tests unrelated to this change. This introduces a risk of test failures on this branch if those tests rely on features not present here. I've added a comment with a suggestion to only include the relevant test.
f9092c9 to
028497c
Compare
|
@sumit-bose , @madhuriupadhye, the test_ipa.py was not present in 2-9 branch. Please check the update. Other commits fit well. |
Only branches where the file exists, so not in |
I understand that, but are we fine to create it like this or do you prefer something else? |
As I understand it, we won't backport the test code. |
Hi, I'm confused, most of the backports are test code so far? bye, |
Yes, but only backport to branches where the test files exist. |
Hi, ok, so how to move forward? Just backport the feature and do not test it? Or break the rule and create the file in the backport or move the test to a different file which exists in the 2-9 branch? bye, |
Skip the test - backport only the functional code changes. |
|
OK, removing test now... |
028497c to
180c4bd
Compare
sumit-bose
left a comment
There was a problem hiding this comment.
Hi,
pity we lost the test, nevertheless, ACK.
bye,
Sumit
SSSD in server mode on IPA server is not allowed to use short names. Reviewed-by: Madhuri Upadhye <mupadhye@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit 1b71104)
Reviewed-by: Madhuri Upadhye <mupadhye@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit 4816096)
This format is not used anywhere except in unnecessary check. This update removes it. Reviewed-by: Madhuri Upadhye <mupadhye@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit 09f574f)
|
The pull request was accepted by @sumit-bose with the following PR CI status: 🟢 CodeQL (success) There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging. |
180c4bd to
6f4782a
Compare
This is an automatic backport of PR#8261 SSSD on IPA should fail with short names to branch sssd-2-9, created by @thalman.
Caution
@thalman The patches did not apply cleanly. It is necessary to resolve conflicts before merging this pull request. Commits that introduced conflict are marked with
CONFLICT!.You can push changes to this pull request
Original commits
1b71104 - IPA: Fail with short names
4816096 - IPA: remove re-declaration of
ipa_trusted_subdom_init09f574f - IPA: remove CONFDB_DEFAULT_FULL_NAME_FORMAT_INTERNAL
8360424 - tests: SSSD must refuse to start on IPA with short names
Backported commits
ipa_trusted_subdom_initConflicting Files Information (check for deleted and re-added files)
Original Pull Request Body
SSSD should refuse to start when SSSD is in server mode and
full_name_formatis set to%1s$.