#5406 ipa-client-install should not use hardcoded admin principal
Closed: fixed Opened 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

Per triage on Dec 6. And bz https://bugzilla.redhat.com/show_bug.cgi?id=1399606

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

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

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)

FreeIPA 4.5.1 has been released, moving to FreeIPA 4.5.2 milestone

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

master:

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

ipa-4-5:

  • 7bef8c7ff16c95a43312a3d162ff354625ecd198 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)

master:

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

ipa-4-6:

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

ipa-4-5:

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