Bug 1390723

Summary: External Authentication configuration fails after setting hostname in appliance console
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED CURRENTRELEASE QA Contact: amogh <amavinag>
Severity: medium Docs Contact:
Priority: high    
Version: 5.6.0CC: abellott, amavinag, cpelland, jhardy, ncarboni, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: auth::externalauth
Fixed In Version: 5.7.0.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1360928 Environment:
Last Closed: 2017-01-11 20:25:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1360928    
Bug Blocks:    

Comment 2 Joe Vlcek 2016-11-03 18:35:55 UTC
Euwe Backport details:

$ git log -1
commit 693e9b8d21abf2625662e54aeba1a03923865df2
Author: Nick Carboni <ncarboni>
Date:   Mon Oct 31 17:21:13 2016 -0400

    Merge pull request #12171 from jvlcek/bz1360928_ext_auth_hostname

    Set hostname on both IPv6 and IPv4 loopback addrs
    (cherry picked from commit d00ab3e15116132e5b951ab466ef0963f2de2909)

    https://bugzilla.redhat.com/show_bug.cgi?id=1360928

Comment 3 amogh 2016-11-04 16:06:26 UTC
Verified this issue in 5.7.0.9-beta2.1.20161101182054_eb0afaa.

hostname is set correctly and external_auth configuration for IPA works fine after setting hostname in appliance_console.

Configure External Authentication (httpd)


IPA Server Parameters:

Enter the IPA Server Hostname: qetest.domain.com
Enter the IPA Server Domain: |qetest.domain.com| 
Enter the IPA Server Realm: |QETEST.DOMAIN.COM| 
Enter the IPA Server Principal: |admin| 
Enter the IPA Server Principal Password: ********

External Authentication (httpd) Configuration:
IPA Server Details:
  Hostname:       qetest.domain.com
  Domain:         qetest.domain.com
  Realm:          QETEST.DOMAIN.COM
  Naming Context: dc=qetest,dc=domain,dc=com
  Principal:      admin

Proceed? (Y/N): y
Checking connectivity to qetest.domain.com ... Succeeded.

Configuring IPA (may take a minute) ...
Configuring the IPA Client ...
Configuring pam ...
Configuring sssd ...
Configuring IPA HTTP Service and Keytab ...
Configuring httpd ...
Configuring SELinux ...

Restarting sssd and httpd ...
Configuring sssd to start upon reboots ...

External Authentication configured successfully.

Press any key to continue.