-
Notifications
You must be signed in to change notification settings - Fork 247
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
subdomains: allow to inherit case_sensitive=Preserving #5251
Conversation
@sumit-bose bump |
Hi, about the winbind comments, they are coming from a time where the extdom plugin on the IPA servers was using winbind for the SID-to-name (and reverse) lookups. This was changed 7 years ago, see https://pagure.io/freeipa/issue/3637 for details. However, IPA servers on RHEL6 might still be affected. Would it be possible to check in Do you think it would be worth to ask IPA team if they can add a ipa-config option to switch bye, |
RHEL-6 servers should not be affected since it requires changes on both client and server side SSSD. So RHEL-6 servers will just reply with lowercased names (since the client will not be updated there) and that's what the client will use. Thanks for the clarification, I'll see what we can do about it. |
Hi, I think it is a bit different. On RHEL-6 there is no SSSD ipa-server mode since all lookups in AD where still done by winbind. And iirc this unconditional lower-casing was added becasue depending on the type of operation winbind might have returned an all-lowercase name or the original spelling and SSSD at this time got confused and considered those as different users and tried to add them twice. Hence the ad-hoc fix to unconditionally lower-case the names. I'm not sure if current winbind on RHEL-6 still acts in the same way or if a recent version of SSSD on an IPA client would still have an issue if a RHEL-6 IPA server would still return the name of the same user sometimes all lower-case and other times in the original spelling with maybe some upper-case characters. I hope that using a RHEL-8 IPA client with a RHEL-6 IPA server will be as rare as a proton decay, but who knows. bye, |
See updated patches. I added |
Rebased on top of master branch. |
@SSSD/developers can some of you review these patches? It would be good to include this in the next release. |
Hi, thanks for the rebase. I'm not sure I like the last patch. Why would you want to set Addtionally, without any flags set bye, |
For what it worth, IPA always lowcases user and group names when storing in LDAP, there is no way to avoid it. |
Do you suggest to add case_sensitive option in IPA similar to what we do with e.g. domain_resolution_order?
Given IPA lower case what it gets then why it needs to return the same result? If you don't agree with the patch then I suggest to enable this for AD only for now and see what we can do for IPA later (the customer behind this requests it for AD provider). |
Yes, this would be the long term idea. However, in the meantime I think it is ok to require to set
I think Alexander's comment was about IPA user and groups which are always lower case, AD users are not stored in LDAP.
See above. If I understand it correctly by setting bye, |
This option can be inherited since 41c497b
Resolves: SSSD#5250 :feature: `case_sensitive` option can be now inherited by subdomains
Resolves: SSSD#5250 :feature: `case_sensitive` can be now set separately for each subdomain in `[domain/parent/subdomain]` section :feature: `case_sensitive=Preserving` can now be set for trusted domains with AD provider
Resolves: SSSD#5250 :feature: `case_sensitive=Preserving` can now be set for trusted domains with IPA provider. However, the option needs to be set to `Preserving` on both client and the server for it to take effect.
Ok, please see new patch set. I dropped last two patches, updated man page and release notes. |
Hi, thanks, I tested with AD and IPA with trust and the patches are working as expected, CI failures are unrelated. ACK. bye, |
Pushed PR: #5251
|
The first patch is just man page update to reflect current state.
I think it makes sense to be able to show subdomain names in
their original casing. Patches 2-3 make it work for AD provider.
Patch 4 makes it work for IPA provider. There is apparantely a bug
in winbind, but there is no link the any bugzilla so I do not know
if it was already fixed. The commit is four years old. This patch
requires case_sensitive=Preserving to be set also on the server,
otherwise it does not work. It can be enabled without the server setting
but we need to make nss_cmd_getpwnam_ex (and other _ex commands) to
always return case preserving name. So before I continue the work
I'd like to ask @sumit-bose if we can do it like this.
Resolves:
#5250