Bug 1397105

Summary: when ext_auth configured with ldaps through sssd, groups retrieved as "groupname@domain.com"
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED CURRENTRELEASE QA Contact: amogh <amavinag>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: abellott, amavinag, cpelland, dajohnso, jhardy, jvlcek, mpusater, obarenbo
Target Milestone: GAKeywords: Regression, TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: external_auth
Fixed In Version: 5.7.0.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1394425 Environment:
Last Closed: 2017-01-11 20:12:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1394425    
Bug Blocks:    
Attachments:
Description Flags
ldaps_groupname_NO_FQDN none

Comment 2 Joe Vlcek 2016-11-21 16:45:55 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/0323f78f862bda2745bd1d443c99b173a7b90568

commit 0323f78f862bda2745bd1d443c99b173a7b90568
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Mon Nov 21 10:00:27 2016 -0500
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Mon Nov 21 10:21:16 2016 -0500

    Merge pull request #12752 from jvlcek/bz1394425_domain
    
    Remove the FQDN from group names for ext auth.
    (cherry picked from commit 2f648343d0062cc8c2b35c2c56a0451d2670fb82)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1394425

 app/models/authenticator/httpd.rb       | 2 +-
 app/models/miq_group.rb                 | 6 +++++-
 spec/models/authenticator/httpd_spec.rb | 2 +-
 spec/models/miq_group_spec.rb           | 9 +++++++++
 4 files changed, 16 insertions(+), 3 deletions(-)

Comment 3 Joe Vlcek 2016-11-21 16:45:55 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/0323f78f862bda2745bd1d443c99b173a7b90568

commit 0323f78f862bda2745bd1d443c99b173a7b90568
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Mon Nov 21 10:00:27 2016 -0500
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Mon Nov 21 10:21:16 2016 -0500

    Merge pull request #12752 from jvlcek/bz1394425_domain
    
    Remove the FQDN from group names for ext auth.
    (cherry picked from commit 2f648343d0062cc8c2b35c2c56a0451d2670fb82)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1394425

 app/models/authenticator/httpd.rb       | 2 +-
 app/models/miq_group.rb                 | 6 +++++-
 spec/models/authenticator/httpd_spec.rb | 2 +-
 spec/models/miq_group_spec.rb           | 9 +++++++++
 4 files changed, 16 insertions(+), 3 deletions(-)

Comment 4 amogh 2016-11-29 17:36:22 UTC
verified this BZ in 5.7.0.12-rc2.20161123111642_a4a65ce.

FQDN is removed from group name and groups are retrieved as expected in CFME.
screenshot attached.

Comment 6 amogh 2016-11-29 17:38:47 UTC
Created attachment 1225930 [details]
ldaps_groupname_NO_FQDN