File: rabbit-test.config

package info (click to toggle)
rabbitmq-server 2.8.4-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,928 kB
  • sloc: erlang: 52,968; python: 2,846; xml: 1,987; sh: 816; makefile: 683; perl: 86; ruby: 63
file content (33 lines) | stat: -rw-r--r-- 1,360 bytes parent folder | download
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
[{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, {constant, true}}
                   ]}}
            ]}}
  ]}
].