You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LDAP users with similar permissions do not see each other's networks #3364
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
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)
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.
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 :-)
@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.
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.
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?
Activity
andrijapanicsb commentedon May 30, 2019
Heard a similar thing from another user.
"LDAP-authenticated" ADMIN vs. "local-authenticated" ADMIN - can't see each other's networks.
PaulAngus commentedon Jun 5, 2019
Are these the same root admin account or two accounts which both have root admin privileges?
PPisz commentedon Jun 5, 2019
Two accounts with root admin privileges:
ppisz | Root Admin | Admin | ROOT | enabled
tome | Root Admin | Admin | ROOT | enabled
PaulAngus commentedon Jun 5, 2019
Is the other network visible through the API (when you use listall=true) ?
and can the 'Real' root admin account see them?
PPisz commentedon Jun 7, 2019
LDAP root admin sees all networks through the API (not in UI).
Real admin see all networks in UI.
DaanHoogland commentedon Jan 16, 2020
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)
andrijapanicsb commentedon Jan 16, 2020
root admin is a root admin, irrelevant how he was authenticated (IMO) - so both root admins should see everything...
DaanHoogland commentedon Jan 16, 2020
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.
PPisz commentedon Jan 17, 2020
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 :-)
DaanHoogland commentedon Jan 17, 2020
the js isAdmin() only returns true for admin never for another root-admin. please amend if you feel this should change @PPisz .
7 remaining items
yadvr commentedon Apr 22, 2021
cc @svenvogel @utchoang can you test in the new UI?
yadvr commentedon Apr 23, 2021
@PPisz I reviewed the ticket again, per your comment there are two accounts:
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.
yadvr commentedon Apr 23, 2021
@PPisz pl check and close the ticket, or help explain for further investigation. Thanks.
PPisz commentedon Apr 26, 2021
I checked it in 4.15 on Primate, no change.
I understand that it was designed this way, I am closing the ticket.
yadvr commentedon May 2, 2021
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.
Spaceman1984 commentedon May 4, 2021
@rhtyd are you testing the case or should I go ahead?
yadvr commentedon May 4, 2021
@Spaceman1984 pl test by creating two root admin accounts and compare the UI vs legacy UI.
Spaceman1984 commentedon May 6, 2021
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.
yadvr commentedon May 6, 2021
Thanks Darrin, closing on your remark