User Groups Being Cleared When User Logs In


When I log in with an Active Directory account that has been previously placed into a Foreman user group all users in that group are removed from the group.

Expected outcome:

User logs in as expected.

Foreman and Proxy versions:

Foreman 1.22.0, all proxies same version except for one tftp proxy on 1.20.2.

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

We have users authenticating with AD, and then we assign those accounts to user groups in foreman. One group in particular is experiencing this issue, none of the others have seen it yet. If you go in and reassign the users to the group they persist until another one logs in.

This started happening after we updated to 1.22.0. The upgrade itself went smoothly and gave no errors.

We’ve enabled to debug logging but haven’t been able to locate any particular log that seemed to contain useful data. We are able to reproduce the issue so we can gather relevant logs as needed, we just aren’t sure where to start.

This sounds like Bug #27402: The Foreman "forgets" group members after update to 1.22.0 - Foreman - @ezr-ondrej has been trying to reproduce this but has not been successful so far.

We’re going to gather some data and update that bug, see if we can help. Thanks for the pointer.