Skip to content

LDAP users with similar permissions do not see each other's networks #3364

Closed

Description

@PPisz
ISSUE TYPE
  • Bug Report
  • Improvement Request
COMPONENT NAME
LDAP, Network, UI
CLOUDSTACK VERSION
4.12
CONFIGURATION
Advanced networking with network service offering
OS / ENVIRONMENT

CentOS 7

SUMMARY
In one domain (eg. ROOT):
Admin create network offering
LDAP root admin user create network with network offering
Another LDAP root admin user not see this network
STEPS TO REPRODUCE
Create two LDAP users with root admin permissions and create networks.
EXPECTED RESULTS
All users in one domain with root admin privileges have the same capabilities (in this case, they can create a VM with a network created by another user).
ACTUAL RESULTS
LDAP user with root admin privileges can not see the networks created by the standard admin user (on the same domain). If such a user (ldap) with root admin privileges creates a new network, it is not visible to other users in UI
I consider this to be an error which makes work with users with root admin privileges very difficult

Activity

  1. andrijapanicsb commented on May 30, 2019

    @andrijapanicsb
    Contributor

    Heard a similar thing from another user.
    "LDAP-authenticated" ADMIN vs. "local-authenticated" ADMIN - can't see each other's networks.

  2. PaulAngus commented on Jun 5, 2019

    @PaulAngus
    Member

    Are these the same root admin account or two accounts which both have root admin privileges?

  3. PPisz commented on Jun 5, 2019

    @PPisz
    Author

    Two accounts with root admin privileges:

    ppisz | Root Admin | Admin | ROOT | enabled
    tome | Root Admin | Admin | ROOT | enabled

  4. PaulAngus commented on Jun 5, 2019

    @PaulAngus
    Member

    Is the other network visible through the API (when you use listall=true) ?
    and can the 'Real' root admin account see them?

  5. PPisz commented on Jun 7, 2019

    @PPisz
    Author

    LDAP root admin sees all networks through the API (not in UI).
    Real admin see all networks in UI.

  6. added this to the 4.13.0.0 milestone on Jun 20, 2019
  7. modified the milestones: 4.13.0.0, 4.13.1.0 on Jul 4, 2019
  8. DaanHoogland commented on Jan 16, 2020

    @DaanHoogland
    Contributor

    as the real admin is the one and there an be only one, i would expect this behaviour. No idea if this is true but i wouldn't expect a second 'local' root user to see all networks in the UI either. (#testingneeded)

  9. andrijapanicsb commented on Jan 16, 2020

    @andrijapanicsb
    Contributor

    root admin is a root admin, irrelevant how he was authenticated (IMO) - so both root admins should see everything...

  10. DaanHoogland commented on Jan 16, 2020

    @DaanHoogland
    Contributor

    should, maybe, not going into that. works that way is my question, i.e. is this behaviour ldap specific? sounds a bit weird knowing the implementation but worth finding out.

  11. PPisz commented on Jan 17, 2020

    @PPisz
    Author

    This is the specifics of CloudStack UI, not ldap. We tested it on an external CloudStack-UI and everything works as expected (via API). Unfortunately, CloudStack-UI is intended for ordinary users, not for administrators. Primate is not ready for production use. Please fix this error :-)

  12. DaanHoogland commented on Jan 17, 2020

    @DaanHoogland
    Contributor

    the js isAdmin() only returns true for admin never for another root-admin. please amend if you feel this should change @PPisz .

  13. 7 remaining items

  14. yadvr commented on Apr 22, 2021

    @yadvr
    Member

    cc @svenvogel @utchoang can you test in the new UI?

  15. yadvr commented on Apr 23, 2021

    @yadvr
    Member

    @PPisz I reviewed the ticket again, per your comment there are two accounts:

    Two accounts with root admin privileges:
    
    ppisz | Root Admin | Admin | ROOT | enabled
    tome | Root Admin | Admin | ROOT | enabled
    

    Since resources are owned by account, they are treated different entities/owners even if they may have the same user (physical person) who has LDAP access to both accounts. If my understanding is correct, this is by design and not a CloudStack bug.

  16. yadvr commented on Apr 23, 2021

    @yadvr
    Member

    @PPisz pl check and close the ticket, or help explain for further investigation. Thanks.

  17. PPisz commented on Apr 26, 2021

    @PPisz
    Author

    I checked it in 4.15 on Primate, no change.
    I understand that it was designed this way, I am closing the ticket.

  18. yadvr commented on May 2, 2021

    @yadvr
    Member

    Thanks @PPisz I need one case to be checked which on behaviour when there are multiple root admins. I'm temporarily opening the ticket. Will close of it turns out to be a non issue.

  19. reopened this on May 2, 2021
  20. Spaceman1984 commented on May 4, 2021

    @Spaceman1984
    Contributor

    Thanks @PPisz I need one case to be checked which on behaviour when there are multiple root admins. I'm temporarily opening the ticket. Will close of it turns out to be a non issue.

    @rhtyd are you testing the case or should I go ahead?

  21. yadvr commented on May 4, 2021

    @yadvr
    Member

    @Spaceman1984 pl test by creating two root admin accounts and compare the UI vs legacy UI.

  22. Spaceman1984 commented on May 6, 2021

    @Spaceman1984
    Contributor

    I tested with multiple root admin accounts, not an issue in 4.14 or 4.15.

    I didn't test 4.12. and I didn't specifically test with an LDAP admin user.

  23. yadvr commented on May 6, 2021

    @yadvr
    Member

    Thanks Darrin, closing on your remark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions