File: rabbit-test.config

package info (click to toggle)
rabbitmq-server 3.3.5-1.1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 12,004 kB
  • sloc: erlang: 78,203; python: 3,187; xml: 2,843; makefile: 903; sh: 831; java: 660; perl: 64; ruby: 63
file content (42 lines) | stat: -rw-r--r-- 1,733 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%% -*- erlang -*-
[{rabbit, [{auth_backends, [rabbit_auth_backend_ldap]},
           {default_vhost, <<"test">>}]},
 {rabbitmq_auth_backend_ldap,
  [ {servers,            ["localhost"]},
    {user_dn_pattern,    "cn=${username},ou=People,dc=example,dc=com"},
    {other_bind,         anon},
    {use_ssl,            false},
    {port,               389},
    {log,                true},
    {tag_queries,        [{administrator, {constant, false}}]},
    {vhost_access_query, {exists, "ou=${vhost},ou=vhosts,dc=example,dc=com"}},
    {resource_access_query,
     {for, [{resource, exchange,
             {for, [{permission, configure,
                     {in_group, "cn=wheel,ou=groups,dc=example,dc=com"}
                    },
                    {permission, write, {constant, true}},
                    {permission, read,
                     {match, {string, "${name}"},
                             {string, "^xch-${username}-.*"}}
                    }
                   ]}},
            {resource, queue,
             {for, [{permission, configure,
                     {match, {attribute, "${user_dn}", "description"},
                             {string, "can-declare-queues"}}
                    },
                    {permission, write, {constant, true}},
                    {permission, read,
                     {'or',
                      [{'and',
                        [{equals, "${name}", "test1"},
                         {equals, "${username}", "Simon MacMullen"}]},
                       {'and',
                        [{equals, "${name}", "test2"},
                         {'not', {equals, "${username}", "Mike Bridgen"}}]}
                      ]}}
                   ]}}
            ]}}
  ]}
].