Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizon: You are not authorized for any projects or domains. #35

Closed
AJNOURI opened this issue Nov 12, 2016 · 2 comments
Closed

Horizon: You are not authorized for any projects or domains. #35

AJNOURI opened this issue Nov 12, 2016 · 2 comments

Comments

@AJNOURI
Copy link
Owner

AJNOURI commented Nov 12, 2016

Though the user is created:

openstack user create --email "user3@domain1" user3 --domain domain1 --password-prompt

User Password:
Repeat User Password:
+---------------------+----------------------------------+
| Field | Value |
+---------------------+----------------------------------+
| domain_id | b27c4d5ab21240a8979397f107515b1c |
| email | user3@domain1 |
| enabled | True |
| id | 1c3f7243130d44fcb42c8ed2901990c1 |
| name | user3 |
| password_expires_at | None |
+---------------------+----------------------------------+

selection_516

@AJNOURI
Copy link
Owner Author

AJNOURI commented Nov 12, 2016

Looking at the existing roles and projects (in the appropriate domain)

openstack role list

+----------------------------------+---------------+
| ID | Name |
+----------------------------------+---------------+
| 16a9f7d9e01941c08fc52a486a431057 | ResellerAdmin |
| 47db593671d74890b62b0f39f2890fa0 | SwiftOperator |
| 822f0dd4c7fd4cc480507a1f9bd61281 | admin |
| 9fe2ff9ee4384b1894a90878d3e92bab | member |
+----------------------------------+---------------+

openstack project list --domain domain1

+----------------------------------+------------+
| ID | Name |
+----------------------------------+------------+
| d9fb488a66d540058c7cda0bb726fb91 | d1project1 |
+----------------------------------+------------+

openstack role list --domain domain1
openstack role list

+----------------------------------+---------------+
| ID | Name |
+----------------------------------+---------------+
| 16a9f7d9e01941c08fc52a486a431057 | ResellerAdmin |
| 47db593671d74890b62b0f39f2890fa0 | SwiftOperator |
| 822f0dd4c7fd4cc480507a1f9bd61281 | admin |
| 9fe2ff9ee4384b1894a90878d3e92bab | member |
+----------------------------------+---------------+

Note that roles appear only within the default domain "default" because they are unique globally.

So assigned the default role "member" and a project to the created user
openstack role add --project d1project1 --user user3 --user-domain domain1 _member_

Now successfully logged in to Horizon dashboard with the user:

selection_517

@AJNOURI AJNOURI closed this as completed Nov 12, 2016
@AJNOURI
Copy link
Owner Author

AJNOURI commented Mar 28, 2017

Another alternative issue:
The user doesn't belong to the project/domain

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

No branches or pull requests

1 participant