Bug 1964121

Summary: RFE: Make override_homedir recognize the %h template which is replaced by the original home directory in lower case
Product: Red Hat Enterprise Linux 9 Reporter: Nate <nlager>
Component: sssdAssignee: Alejandro López <allopez>
Status: CLOSED ERRATA QA Contact: Jakub Vavra <jvavra>
Severity: unspecified Docs Contact:
Priority: high    
Version: 9.0CC: aboscatt, atikhono, grajaiya, jhrozek, lslebodn, mzidek, pasik, pbrezina, sbose, tscherf
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.8.1-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:19:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nate 2021-05-24 18:47:22 UTC
sssd currently has an option that will allow the administrator to convert back-end directory usernames to lowercase, in order to better integrate with the case-sensitive nature of the Linux environment. 

There is currently no option to do the same thing for a users defined home directory.  In the case of an active directory back-end, it is not uncommon for user information to be populated in mixed case, this may include the home directory.  Other identity providers that enable AD identity sources account for this by allowing configuration options that convert both usernames and home directories to all lowercase. 

Adding a feature to sssd that will convert home directories to lowercase would help round out that compatibility.

Comment 3 Sumit Bose 2021-05-25 05:14:30 UTC
Hi,

please also see the discussion in https://lists.fedoraproject.org/archives/list/sssd-users@lists.fedorahosted.org/thread/4644MVNNSL7GLX6W3NG2AJILPDKXL6OM/#4644MVNNSL7GLX6W3NG2AJILPDKXL6OM . Imo the most straight forward solution would be to add a new template for the 'override_homedir' option.

bye,
Sumit

Comment 4 Alejandro López 2022-06-10 09:25:29 UTC
I'm implementing the template '%h' for 'override_homedir' providing the lower-case version of the original homedir.

Comment 5 Alexey Tikhonov 2022-06-10 14:47:08 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6211

Comment 6 Alexey Tikhonov 2022-06-28 14:14:27 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6211

* `master`
    * 9cddeb8ba30229aa59b891caa5c601403c02bd32 - Config: Add the %h template for the 'override_homedir' option

Comment 15 errata-xmlrpc 2023-05-09 08:19:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sssd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2514