After enabling Active Directory (AD) as an external authentication source for Satellite Server cannot login to WebUI

Solution Unverified - Updated

Environment

Satellite 6.4

Issue

After enabling Active Directory (AD) as an external authentication source for Satellite Server cannot login to WebUI with the following error:

 "Oops, we're sorry but something went wrong stack level too deep"

Root Cause

This is expected error if you are trying to include same external usergroup in itself.

For more KB articles/solutions related to Red Hat Satellite 6.x Authentication Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Authentication Issues

Diagnostic Steps

During attempted login we can observe following trace looping in Satellite's production.log:

/usr/share/foreman/app/models/usergroup_member.rb:108:in `block in find_all_affected_users_for'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/usr/share/foreman/app/models/usergroup_member.rb:108:in `map'
SBR
Product(s)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.