Project

General

Profile

Actions

Bug #6150

open

Users need locations added even if "All users" is ticked

Added by Scott Wade almost 10 years ago. Updated almost 4 years ago.

Status:
Ready For Testing
Priority:
Normal
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I am using locations, but not organizations. I have several locations defined. I have "All users" ticked on the Users sub-tab within each location.

I am using authentication with LDAP backends. For my LDAP sources, I have "Automatically create accounts in Foreman" ticked. My accounts are filtered with an LDAP filter, and automatic account creation works fine. My Anonymous role (which applies to these users) has the "view_locations" permission granted.

However, when a user logs in, they are not able to view any locations under the Administer -> Locations menu. And the "Any Context" menu in the top left does not list any locations in its dropdown.

Using an admin user (or a user who can edit other users), I can add locations manually to a specific user. If this user re-logs in, then they are able to view locations as expected.

It seems like the "All users" being specified on the Users sub-tab of the Location is not taking effect. Or I'm not understanding its intended purpose.

Dominic and I discussed this on IRC some. I can provide any information that might help. This is a new Foreman setup that we're just getting underway.


Related issues 5 (2 open3 closed)

Related to Foreman - Feature #6094: Ability to add usergroups to organizationsNew06/06/2014Actions
Related to Foreman - Tracker #10022: Taxonomies related issuesNew04/05/2015

Actions
Related to Foreman - Feature #16624: Make auth sources taxableClosedDaniel Lobato Garcia09/20/2016Actions
Has duplicate Foreman - Bug #14499: Assigning organization and location by enabling "All Users" checkbox doesn't work as expectedDuplicate04/06/2016Actions
Has duplicate Foreman - Bug #24893: Adding all users to Taxonomy does not workDuplicateActions
Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Category set to Organizations and Locations
Actions #2

Updated by Dominic Cleal over 9 years ago

  • Related to Feature #6094: Ability to add usergroups to organizations added
Actions #3

Updated by Dominic Cleal almost 8 years ago

  • Has duplicate Bug #14499: Assigning organization and location by enabling "All Users" checkbox doesn't work as expected added
Actions #4

Updated by Marek Hulán almost 8 years ago

Actions #5

Updated by Ohad Levy almost 8 years ago

  • Bugzilla link set to 1321543
Actions #6

Updated by Kavita Gaikwad over 7 years ago

  • Assignee set to Kavita Gaikwad
  • Target version set to 1.15.6
Actions #7

Updated by Kavita Gaikwad over 7 years ago

After debugging the issue, found few things as below.

1. Not only users tab but all sub-tabs under location/organization are having similar behaviour.

2. Whenever user selects check-box "All users", non-selected users remains in select panel not moved to selected panel. After saving the taxonomy, those changes are not taking effect.

3. Lets say "All users" option checked under location and we try to create new user. Location is neither showing on the UI i.e user creation form nor assigned to user after save.
But if you see under edit location page, new user is listed under "selected" panel on users sub tab.

Please could anyone provide more details on above points. Exactly, What should be the behaviour of "All select" check-box on each sub-tab under taxonomy.

Actions #8

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4111 added
Actions #9

Updated by Kavita Gaikwad over 7 years ago

  • Target version changed from 1.15.6 to 1.15.4
Actions #10

Updated by Marek Hulán over 6 years ago

The original issue reported here was already fixed by #16624 in Foreman 1.14. By assigning taxonomy to to LDAP auth source, all users auto-created from this auth source will be configured to be assigned into auth source's locations. The PR fixes the usability issue so that using ignore checkbox would be less confusing as it would in reality add real associations between the resources and a given taxonomy.

Actions #11

Updated by Marek Hulán over 6 years ago

Actions #12

Updated by Kavita Gaikwad over 6 years ago

  • Target version changed from 1.15.4 to 1.17.0
Actions #13

Updated by Kavita Gaikwad over 6 years ago

  • Target version changed from 1.17.0 to 216
Actions #14

Updated by Kavita Gaikwad over 6 years ago

  • Target version changed from 216 to 220
Actions #15

Updated by Ondřej Pražák over 5 years ago

  • Has duplicate Bug #24893: Adding all users to Taxonomy does not work added
Actions

Also available in: Atom PDF