Replies: 11 comments 26 replies
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
We cannot comment on much with this amount of information. You can enable LDAP query logging to see if the plugin performs the queries you expect. Whether those queries are "correct", we don't know. One thing that stands out is |
Beta Was this translation helpful? Give feedback.
-
@spham here's what is happening. When you bring up the management UI for the very first time and log in, there is no vhost specified. I ran a trace and you can see it here: (rabbit@bakkenl-z01)2> redbug:start("rabbit_access_control:check_user_login/2").
{11,1}
% 16:27:15 <0.1280.0>(dead)
% rabbit_access_control:check_user_login(<<"guest">>, [{password,<<"guest">>}]) Note that there is no vhost to pass into the LDAP plugin to use in the Since your LDAP query depends on this, you'll always get a failure. Apparently this is a scenario that people don't run into because it's unusual to give a broad number of user accounts access to the Management UI. I'm pretty sure you can work around this by using the internal auth backend as a "backup". For any user who must have access to the management UI, add them to RabbitMQ's internal database. You don't need to give them a password, just the correct vhost permissions and tags. Let's say
(Note: the HTTP API can also be used for the above) Then, you'll still see the same LDAP "not found" but the internal DB should be used as a backup for looking up tags (https://www.rabbitmq.com/access-control.html#combined-backends) You won't have to do this for all of your vhosts because as soon as the user logs in and chooses a different vhost they'll use that vhost for auth. Let me know if the above works, and I'll ask the team if we should consider this a bug or not. I think to fix it we'd have to add a vhost selector to the login screen. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have two vhosts set up locally, I set up Active Directory LDS on my Windows 10 laptop. I have the following two groups:
And the following users, which are members of the respective groups above:
I have attached my two RabbitMQ config files: Enabled plugins:
Test procedure:
I did not test AMQP operations but I'm pretty sure they'll be correctly limited. I also did not enable the caching plugin but you should do that. Note: Due to how my LDAP environment works I had to configure the following settings:
My Please see if the above configuration accomplishes what you need (or close to it). |
Beta Was this translation helpful? Give feedback.
-
I have 2 question
Initial request is see by vhost. user1/management/vhost1,admin,vhost2 |
Beta Was this translation helpful? Give feedback.
-
Did you try my configuration suggestions? With them, if I log in using
I've spent quite a bit of time coming up with something to try and guess what you need based on some very limited information. At this point, you need to figure this out on your own. Hopefully what I've provided and the RabbitMQ docs can help. I can't spend any more time giving free assistance. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I requested some information in this message: https://groups.google.com/g/rabbitmq-users/c/Z5OUSSvpRkk/m/oA_SoI8EBAAJ I answered your question about If you are not seeing the
You have only provided small screenshots so I can't tell what you are doing in the management UI. First, you need to prove that the user account you log into is the member of the expected group to be granted the
Once we are certain LDAP is set up correctly, take a screen capture video of logging into the management interface using that account. As I describe in this comment, everything works as expected. You must be doing something different. Finally, I will only follow up in this discussion and will redirect new issues or discussions here to keep everything in one place. |
Beta Was this translation helpful? Give feedback.
-
how to make one user with tag administror for one vhost ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have created 2 groups
host_administrator and host_monitoring
and it's with tihs pattern,
and it return false .
my rabbitmq 3.9.5 on centos 7.
Active Directory
when i do this is ok
but with $vhost in tag queries, is not work
in log, i see this that ${vhost} is not evaluated in tag_queries.
my idea is created many group in ldap
So user can be administrator on vhostA, but only monitor in vhostB
but tag_queries failed
return this in log
LDAP evaluated in_group for "CN=${vhost}_role_monitoring_group ,OU=RabbitMQ,OU=lsi,OU=France,DC=toto,DC=com": {error, noSuchObject} LDAP DECISION: does [email protected] have tag monitoring? {error,noSuchObject}
it should return vhostA_role_monitoring_group
Beta Was this translation helpful? Give feedback.
All reactions