Although this is not a doc bug, while I'm here expand the example a bit.
This commit is contained in:
parent
62819cb8e7
commit
6dc59a5be2
|
|
@ -142,12 +142,22 @@ TODO improve and explain this
|
||||||
"ou=${vhost},ou=vhosts,dc=example,dc=com"}},
|
"ou=${vhost},ou=vhosts,dc=example,dc=com"}},
|
||||||
{resource_access_query,
|
{resource_access_query,
|
||||||
{for, [{resource, exchange,
|
{for, [{resource, exchange,
|
||||||
{for, [{permission, configure,
|
{for, [
|
||||||
{ in_group, "cn=wheel,ou=groups,dc=example,dc=com" }
|
%% Only allow "wheel" group to create exchanges
|
||||||
|
{permission, configure,
|
||||||
|
{in_group, "cn=wheel,ou=groups,dc=example,dc=com"}
|
||||||
},
|
},
|
||||||
{permission, write, {constant, true}},
|
|
||||||
|
%% Only allow publishing for people with surnames beginning
|
||||||
|
%% with "Mac"
|
||||||
|
{permission, write,
|
||||||
|
{match, {attribute, "${user_dn}", "sn"}, {string, "^Mac.*"}}
|
||||||
|
},
|
||||||
|
|
||||||
|
%% Anyone can bind to exchanges
|
||||||
{permission, read, {constant, true}}
|
{permission, read, {constant, true}}
|
||||||
]}},
|
]}},
|
||||||
|
%% Anyone can do anything with queues
|
||||||
{resource, queue, {constant, true}} ]}},
|
{resource, queue, {constant, true}} ]}},
|
||||||
{tag_queries, [{administrator, {constant, false}}]},
|
{tag_queries, [{administrator, {constant, false}}]},
|
||||||
{use_ssl, false},
|
{use_ssl, false},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue