I currently have the ldap plugin working in Rabbit where it will log in any user in my domain. Which is the problem, it's doing it for EVERY user.
I want to be able to restrict rabbitmq management portal access to 1 or 2 specific groups in AD. And even further, I want only these two groups to then have full control inside the Rabbit Portal (create exchanges / vhosts / queues / whatever.) Below I'm just trying to do this with 1 group. How can I get this to do it with 2 groups? Do I add another {resource_access_query,}
block for the second one?
Here is my current config:
[
{rabbit, [{auth_backends, [rabbit_auth_backend_ldap]}]},
{rabbitmq_auth_backend_ldap,
[ {servers, ["dc.domain.com"]},
{dn_lookup_attribute, "sAMAccountName"},
{dn_lookup_base, "CN=Prod_Group,OU=ProductGroups,OU=Security Groups,OU=Production,OU=domain,DC=hq,DC=domain,DC=com"},
{user_dn_pattern, "${username}@domain.com"},
{use_ssl, false},
{port, 389},
{log, true},
{resource_access_query,
{for, [{permission, configure, {in_group, "CN=Prod_Group,OU=ProductGroups,OU=Security Groups,OU=Production,OU=domain,DC=hq,DC=domain,DC=com"}},
{permission, write,
{for, [{resource, queue, {in_group, "CN=Prod_Group,OU=ProductGroups,OU=Security Groups,OU=Production,OU=domain,DC=hq,DC=domain,DC=com"}},
{resource, exchange, {constant, true}}]}},
{permission, read,
{for, [{resource, exchange, {in_group, "CN=Prod_Group,OU=ProductGroups,OU=Security Groups,OU=Production,OU=domain,DC=hq,DC=domain,DC=com"}},
{resource, queue, {constant, true}}]}}
]
}},
{tag_queries, [{administrator, {constant, true}},
{management, {constant, true}}]}
]
}
].
Even with this, it's still logging in anyone at the base dn of DC=hq,DC=domain,DC=com
... it's like it doesn't see the DN path I'm supplying. Any ideas? Thanks!