#5406 ipa-client-install should not use hardcoded admin principal
Closed: fixed 6 years ago Opened 8 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1274488

Description of problem:
When running ipa-client-install, the ipaclient-install.log shows:
    getent passwd admin
The 'admin' username is hard-coded, so this check will fail if the admin
account has been renamed.

This check should use the username that was entered earlier in the install
process at the prompt:
    User authorized to enroll computers:
as this user is guaranteed to exist.


Version-Release number of selected component (if applicable):
ipa-client-2.1.3-7.el5


How reproducible:
Always


Steps to Reproduce:
1. Perform installation with 'ipa-client-install'
2. Review log in /var/log/ipaclient-install.log


Actual results:
Observe lines in log:
    DEBUG args=getent passwd admin
    DEBUG stdout=
    DEBUG stderr=


Expected results:
Username 'admin' should show the username that was input at the prompt earlier
in the process.

similar issue is in ipa-client-automount and in #5060

Metadata Update from @pvoborni:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

7 years ago

This could be easy fix with relatively higher value.

Metadata Update from @pvoborni:
- Issue close_status updated to: None
- Issue set to the milestone: FreeIPA 4.5.1 (was: FreeIPA 4.5 backlog)
- Issue tagged with: bug, easyfix

6 years ago

Renamed the ticket to better reflect the actual problem.

Metadata Update from @mbasti:
- Issue set to the milestone: FreeIPA 4.5.2 (was: FreeIPA 4.5.1)

6 years ago

FreeIPA 4.5.1 has been released, moving to FreeIPA 4.5.2 milestone

Metadata Update from @tdudlak:
- Issue assigned to tdudlak (was: someone)

6 years ago

master:

  • eae8714 client.py: Replace hardcoded 'admin' with options.principal

ipa-4-5:

  • 7bef8c7 client.py: Replace hardcoded 'admin' with options.principal

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

master:

  • 0128b3f Test for ipa-client-install should not use hardcoded admin principal

ipa-4-6:

  • 9b34098 Test for ipa-client-install should not use hardcoded admin principal

ipa-4-5:

  • dc66227 Test for ipa-client-install should not use hardcoded admin principal

Login to comment on this ticket.

Metadata