RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 785756 - config-mod :: --homedirectory new value not being honored
Summary: config-mod :: --homedirectory new value not being honored
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-30 14:53 UTC by Jenny Severance
Modified: 2012-06-20 13:31 UTC (History)
1 user (show)

Fixed In Version: ipa-2.2.0-1.el6
Doc Type: Bug Fix
Doc Text:
Cause: IPA user plugin use a hard-coded default user home directory instead of using a configured default value. Consequence: When administrator changes the default user home directory in IPA config plugin from default value to custom value, it is not being honored when user is added. Fix: IPA user plugin was fixed to honor the configuration. Result: When new user is created without a custom home directory specified via special option, the default configured home directory is properly used.
Clone Of:
Environment:
Last Closed: 2012-06-20 13:31:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0819 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2012-06-19 20:34:17 UTC

Description Jenny Severance 2012-01-30 14:53:08 UTC
Description of problem:

If you change the default configuration for the home directory base, new users added are not getting the correct home directory path.

# kinit admin
Password for admin: 

# ipa config-mod --homedirectory=/mnt/home
  Maximum username length: 32
  Home directory base: /mnt/home
  Default shell: /bin/sh
  Default users group: ipausers
  Default e-mail domain: testrelm.com
  Search time limit: 2
  Search size limit: 100
  User search fields: uid,givenname,sn,telephonenumber,ou,title
  Group search fields: cn,description
  Enable migration mode: FALSE
  Certificate Subject base: O=TESTRELM.COM
  Password Expiration Notification (days): 4
  SELinux user map order: guest_u:s0$xguest_u:s0$user_u:s0-s0:c0.c1023$staff_u:s0-s0:c0.c1023$unconfined_u:s0-s0:c0.c1023
  Default SELinux user: guest_u:s0

# ipa user-add --first=Jenny --last=Galipeau jenny
------------------
Added user "jenny"
------------------
  User login: jenny
  First name: Jenny
  Last name: Galipeau
  Full name: Jenny Galipeau
  Display name: Jenny Galipeau
  Initials: JG
  Home directory: /home/jenny
  GECOS field: Jenny Galipeau
  Login shell: /bin/sh
  Kerberos principal: jenny
  UID: 809400167
  GID: 809400167
  Password: False
  Kerberos keys available: False

Test is already automated ...

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipaconfig_mod_homedirectory_default
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: this is to test for default behavior
:: [   PASS   ] :: set homedirectory=[SoyF6v2XoigTJTo1BA8DSP5E_up]
:: [   LOG    ] :: Creating User: ipa user-add "swnrwnWI" --first "swnrwnWI" --last  "swnrwnWI" 
:: [   FAIL   ] :: actual [/home/swnrwnWI], expect [SoyF6v2XoigTJTo1BA8DSP5E_up] 
:: [   PASS   ] :: set homedirectory=[/home] - back to default
:: [   PASS   ] :: Cleanup
:: [   LOG    ] :: Duration: 11s
:: [   LOG    ] :: Assertions: 3 good, 1 bad
:: [   FAIL   ] :: RESULT: ipaconfig_mod_homedirectory_default



Version-Release number of selected component (if applicable):
ipa-server-2.2.0-101.20120127T0607zgit6863b8f.el6.x86_64

How reproducible:


Steps to Reproduce:
1.  kinit admin
2.  ipa-config-mod --homedirectory=/mnt/home
3.  ipa user-add --first=firstname  --last=lastname  userid
  
Actual results:
  Home directory: /home/jenny

Expected results:
  Home directory: /mnt/home/jenny

Additional info:

Comment 1 Martin Kosek 2012-01-31 16:08:40 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2332

Comment 4 Jenny Severance 2012-04-18 12:12:11 UTC
verified:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipaconfig_mod_homedirectory_default
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: this is to test for default behavior
:: [   PASS   ] :: set homedirectory=[QsA/0ZV/0Q+3fhltQrqU-BFE3EHloP9hMVl9JhOLi6nAec8cTBuUdn1fkreWY45Bqyni5c2OVW/Zoeg+6Bror0/rsRUj5hV6RCBAnA7u2N/Y6dS.0ekhpHkkC/Fjdf3QJM]
:: [   LOG    ] :: Creating User: ipa user-add "GhsQbDDU" --first "GhsQbDDU" --last  "GhsQbDDU" 
:: [   PASS   ] :: found [QsA/0ZV/0Q+3fhltQrqU-BFE3EHloP9hMVl9JhOLi6nAec8cTBuUdn1fkreWY45Bqyni5c2OVW/Zoeg+6Bror0/rsRUj5hV6RCBAnA7u2N/Y6dS.0ekhpHkkC/Fjdf3QJM] in actual:[QsA/0ZV/0Q+3fhltQrqU-BFE3EHloP9hMVl9JhOLi6nAec8cTBuUdn1fkreWY45Bqyni5c2OVW/Zoeg+6Bror0/rsRUj5hV6RCBAnA7u2N/Y6dS.0ekhpHkkC/Fjdf3QJM/ghsqbddu]
:: [   PASS   ] :: set homedirectory=[/home] - back to default
:: [   PASS   ] :: Cleanup
:: [   LOG    ] :: Duration: 23s
:: [   LOG    ] :: Assertions: 4 good, 0 bad
:: [   PASS   ] :: RESULT: ipaconfig_mod_homedirectory_default


version :
ipa-server-2.2.0-9.el6.x86_64

Comment 5 Martin Kosek 2012-04-20 12:25:08 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: IPA user plugin use a hard-coded default user home directory instead of using a configured default value.
Consequence: When administrator changes the default user home directory in IPA config plugin from default value to custom value, it is not being honored when user is added.
Fix: IPA user plugin was fixed to honor the configuration.
Result: When new user is created without a custom home directory specified via special option, the default configured home directory is properly used.

Comment 7 errata-xmlrpc 2012-06-20 13:31:46 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2012-0819.html


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