Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1137015 - [RFE] User Principal Name as a template expansion for homedir mappings
[RFE] User Principal Name as a template expansion for homedir mappings
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd (Show other bugs)
7.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jakub Hrozek
Kaushik Banerjee
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-03 16:25 EDT by Jakub Hrozek
Modified: 2015-03-05 05:33 EST (History)
7 users (show)

See Also:
Fixed In Version: sssd-1.12.2-1.el7
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-05 05:33:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0441 normal SHIPPED_LIVE sssd bug fix and enhancement update 2015-03-05 10:05:27 EST

  None (edit)
Description Jakub Hrozek 2014-09-03 16:25:02 EDT
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/2340

When using Enterprise Principal Names there's some situations where additional home directory mappings became important.

As example if we have two different UPNs in the same domain under the same username we have a conflict in the actual default mapping of home directories.

So a new variable with the relative domain should be enabled to map home directories, as example:

john@example.com           -> /home/example.com/john [pattern: /home/%principalName/%username
john@sales.example.com  -> /home/sales.example.com/john
Comment 1 Jakub Hrozek 2014-10-12 12:53:43 EDT
Pushed upstream:
    master: adf9c23d663c308cfeeaa5ad0a33c399c85b27ec
Comment 3 Kaushik Banerjee 2015-01-07 01:10:24 EST
Verified with sssd-1.12.2-39.el7

Report from beaker automation run:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: upn_override_homedir_01: BZ1137015 override_homedir=/home/%P/%u in [nss]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'getent passwd testuser01-${JOBID}@$AD_DOMAIN1 | grep "/home/testuser01-${JOBID}@$AD_SERVER1_REALM/testuser01-${JOBID}"' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 9s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: upn_override_homedir_01: BZ1137015 override_homedir=/home/%P/%u in [nss]

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: upn_override_homedir_02: override_homedir=/home/%P/%u in [domain/DOMAIN]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'getent passwd testuser01-${JOBID}@$AD_DOMAIN1 | grep "/home/testuser01-${JOBID}@$AD_SERVER1_REALM/testuser01-${JOBID}"' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 9s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: upn_override_homedir_02: override_homedir=/home/%P/%u in [domain/DOMAIN]

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: upn_override_homedir_03: override_homedir in both [nss] and [domain/DOMAIN]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'getent passwd testuser01-${JOBID}@$AD_DOMAIN1 | grep "/home/testuser01-${JOBID}/testuser01-${JOBID}@$AD_SERVER1_REALM"' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 10s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   PASS   ] :: RESULT: upn_override_homedir_03: override_homedir in both [nss] and [domain/DOMAIN]
Comment 5 errata-xmlrpc 2015-03-05 05:33:41 EST
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, 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://rhn.redhat.com/errata/RHBA-2015-0441.html

Note You need to log in before you can comment on or make changes to this bug.