#2332 config-mod :: --homedirectory new value not being honored
Closed: Fixed None Opened 12 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=785756 (Red Hat Enterprise Linux 6)

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@TESTRELM.COM:

# 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@TESTRELM.COM
  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:

Petr, please try this one.

Metadata Update from @mkosek:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/02

7 years ago

Login to comment on this ticket.

Metadata