Bug 1015102

Summary: authconfig should respect return value of ipa-client install
Product: Red Hat Enterprise Linux 7 Reporter: David Spurek <dspurek>
Component: authconfigAssignee: Tomas Mraz <tmraz>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: dspurek, ebenes
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: authconfig-6.2.8-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:16:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Spurek 2013-10-03 12:59:09 UTC
Description of problem:
authconfig should respect return value of ipa-client install.

[test] authconfig --enableipav2 --ipav2domain=ipa.baseos.qe --ipav2server=sec-ipa1.ipa.baseos.qe --ipav2realm=IPA.BASEOS.QE --ipav2join=admin --update
[/usr/sbin/ipa-client-install --domain=ipa.baseos.qe --server=sec-ipa1.ipa.baseos.qe --realm=IPA.BASEOS.QE --principal=admin  ]
WARNING: ntpd time&date synchronization service will not be configured as
conflicting service (chronyd) is enabled
Use --force-ntpd option to disable it and force configuration of ntpd

Autodiscovery of servers for failover cannot work with this configuration.
If you proceed with the installation, services will be configured to always access the discovered server for all operations and will not fail over to other servers in case of failure.
Proceed with fixed values and no DNS discovery? [no]: yes
Hostname: ibm-x3650m4-01-vm-02.lab.eng.bos.redhat.com
Realm: IPA.BASEOS.QE
DNS Domain: ipa.baseos.qe
IPA Server: sec-ipa1.ipa.baseos.qe
BaseDN: dc=ipa,dc=baseos,dc=qe

Continue to configure the system with these values? [no]: yes
Synchronizing time with KDC...
Password for admin.QE: 
Kerberos authentication failed
kinit: Password incorrect while getting initial credentials

Please make sure the following ports are opened in the firewall settings:
     TCP: 80, 88, 389
     UDP: 88 (at least one of TCP/UDP ports 88 has to be open)
Also note that following ports are necessary for ipa-client working properly after enrollment:
     TCP: 464
     UDP: 464, 123 (if NTP enabled)
Installation failed. Rolling back changes.
IPA client is not configured on this system.
authconfig: IPAv2 domain join was not succesful. The ipa-client-install command failed.
Job for sssd.service failed. See 'systemctl status sssd.service' and 'journalctl -xn' for details.
[test]echo $?
0

return value of ipa-client-install:
[test]/usr/sbin/ipa-client-install --domain=ipa.baseos.qe --server=sec-ipa1.ipa.baseos.qe --realm=IPA.BASEOS.QE --principal=admin
WARNING: ntpd time&date synchronization service will not be configured as
conflicting service (chronyd) is enabled
Use --force-ntpd option to disable it and force configuration of ntpd

Autodiscovery of servers for failover cannot work with this configuration.
If you proceed with the installation, services will be configured to always access the discovered server for all operations and will not fail over to other servers in case of failure.
Proceed with fixed values and no DNS discovery? [no]: yes
Hostname: ibm-x3650m4-01-vm-02.lab.eng.bos.redhat.com
Realm: IPA.BASEOS.QE
DNS Domain: ipa.baseos.qe
IPA Server: sec-ipa1.ipa.baseos.qe
BaseDN: dc=ipa,dc=baseos,dc=qe

Continue to configure the system with these values? [no]: yes
Synchronizing time with KDC...
Password for admin.QE: 
Kerberos authentication failed
kinit: Password incorrect while getting initial credentials

Please make sure the following ports are opened in the firewall settings:
     TCP: 80, 88, 389
     UDP: 88 (at least one of TCP/UDP ports 88 has to be open)
Also note that following ports are necessary for ipa-client working properly after enrollment:
     TCP: 464
     UDP: 464, 123 (if NTP enabled)
Installation failed. Rolling back changes.
IPA client is not configured on this system.
[test]echo $?
1

Version-Release number of selected component (if applicable):
authconfig-6.2.7-1.el7

How reproducible:
always

Steps to Reproduce:
1. unsuccessfull 'authconfig --enableipav2 --ipav2domain=ipa.baseos.qe --ipav2server=sec-ipa1.ipa.baseos.qe --ipav2realm=IPA.BASEOS.QE --ipav2join=admin --update'
2.echo $?
3.

Actual results:
return value is 0

Expected results:
return value is != 0

Additional info:

Comment 1 David Spurek 2013-10-03 13:01:28 UTC
IPADOMAINJOINED parameter in /etc/sysconfig/authconfig should be set to yes|no according to return value of ipa-client-install. Now is always se to no even if machine is successfully joined to the domain

Comment 4 Ludek Smid 2014-06-13 11:16:55 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.