Merge pull request #26 from rabbitmq/rabbitmq-auth-backend-ldap-24

Improve Configuration File & Test a Little More
This commit is contained in:
Michael Klishin 2016-03-26 15:28:36 +03:00
commit 5a389b83d3
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,6 @@
{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,
@ -37,7 +36,8 @@
]}}
]}}
]}},
{tag_queries, [{administrator, {constant, false}},
{tag_queries, [{monitor, {constant, true}},
{administrator, {constant, false}},
{management, {constant, false}}]}
]}
].

View File

@ -43,7 +43,7 @@ ldap_only_test_() ->
{"LDAP Constant", const()},
{"LDAP String match", string_match()},
{"LDAP Boolean check", boolean_logic()},
{"LDAP Tags", tag_check([])}
{"LDAP Tags", tag_check([monitor])}
]}.
ldap_and_internal_test_() ->
@ -64,7 +64,7 @@ ldap_and_internal_test_() ->
end,
[ {"LDAP&Internal Login", login()},
{"LDAP&Internal Permissions", permission_match()},
{"LDAP&Internal Tags", tag_check([management, foo])}
{"LDAP&Internal Tags", tag_check([monitor, management, foo])}
]}.
internal_followed_ldap_and_internal_test_() ->
@ -85,7 +85,7 @@ internal_followed_ldap_and_internal_test_() ->
end,
[ {"Internal, LDAP&Internal Login", login()},
{"Internal, LDAP&Internal Permissions", permission_match()},
{"Internal, LDAP&Internal Tags", tag_check([management, foo])}
{"Internal, LDAP&Internal Tags", tag_check([monitor, management, foo])}
]}.