Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the FQDN from group names for ext auth. #12752

Merged
merged 1 commit into from
Nov 21, 2016

Conversation

jvlcek
Copy link
Member

@jvlcek jvlcek commented Nov 18, 2016

A new version of SSSD, 1-14, was introduced in RHEL 7.3. A change in this version of
SSSD is to store fully qualified group names in the SSSD cache.

This PR will remove the domain portion of the fully qualified group names.

Steps for Testing/QA [Optional]

One way to test this is to configure an appliance with External Auth/SSSD/LDAP
and attempt to add a group under:

Configuration/Access Control/Groups/Configuration (pull down)/Add a new Group

check: (Look up External Authentication Groups)

Enter a valid user in: User to Look Up

click the Retrieve button

The dropdown: LDAP Groups for User should be populated with group names that do not include the fully qualified domain.

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

@jvlcek
Copy link
Member Author

jvlcek commented Nov 18, 2016

This change represents a team effort with much input from @abellotti and @amavinag. I appreciate the help! JoeV

@jvlcek
Copy link
Member Author

jvlcek commented Nov 18, 2016

@abellotti Please review

@jvlcek
Copy link
Member Author

jvlcek commented Nov 18, 2016

@miq-bot add_label blocker bug darga/yes

@jvlcek
Copy link
Member Author

jvlcek commented Nov 18, 2016

@miq-bot add_label euwe/yes

@jvlcek
Copy link
Member Author

jvlcek commented Nov 18, 2016

@miq-bot remove_label darga/yes

@miq-bot
Copy link
Member

miq-bot commented Nov 18, 2016

@jvlcek Cannot apply the following label because they are not recognized: blocker bug darga/yes

@abellotti
Copy link
Member

👍 LGTM!!

Could you take care of the Rubocop warning above. Thanks.

@miq-bot
Copy link
Member

miq-bot commented Nov 18, 2016

Checked commit jvlcek@e5fe788 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
4 files checked, 0 offenses detected
Everything looks good. 👍

@@ -124,7 +128,7 @@ def self.get_httpd_groups_by_user(user)
rescue => err
raise _("Unable to get groups for user %{user_name} - %{error}") % {:user_name => username, :error => err}
end
user_groups.first
strip_group_domains(user_groups.first)
Copy link
Member

@chessbyte chessbyte Nov 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jvlcek Will user_groups.first return an object on which collect can be called?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chessbyte Yes user_groups.first returns an array with a single element which itself is an array. I have tested this change on a live appliance.

@gtanzillo
Copy link
Member

👍

@gtanzillo gtanzillo added this to the Sprint 50 Ending Dec 5, 2016 milestone Nov 21, 2016
@gtanzillo gtanzillo merged commit 2f64834 into ManageIQ:master Nov 21, 2016
chessbyte pushed a commit that referenced this pull request Nov 21, 2016
Remove the FQDN from group names for ext auth.
(cherry picked from commit 2f64834)

https://bugzilla.redhat.com/show_bug.cgi?id=1394425
@chessbyte
Copy link
Member

Euwe Backport details:

$ git log -1
commit 0323f78f862bda2745bd1d443c99b173a7b90568
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Mon Nov 21 10:00:27 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

@chessbyte
Copy link
Member

@simaishi Please make Euwe BZ for https://bugzilla.redhat.com/show_bug.cgi?id=1394425

@simaishi
Copy link
Contributor

@chrispy1
Copy link

@miq-bot add_label darga/yes

@chessbyte
Copy link
Member

chessbyte pushed a commit that referenced this pull request Nov 22, 2016
Remove the FQDN from group names for ext auth.
(cherry picked from commit 2f64834)

https://bugzilla.redhat.com/show_bug.cgi?id=1397516
@chessbyte
Copy link
Member

Darga Backport details:

$ git log -1
commit 3b30cbfe58dd4ac2648864561c7b9065144e467e
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Mon Nov 21 10:00:27 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=1397516

@jvlcek jvlcek deleted the bz1394425_domain branch July 6, 2017 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants