summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Fedotov <hairyhum@gmail.com>2016-04-22 13:26:50 +0100
committerDaniil Fedotov <hairyhum@gmail.com>2016-04-22 13:26:50 +0100
commit534cf5e6e64053c181c3f4b7bd33bb35567f1c55 (patch)
treeb8964a4d8dd36f6a8dd6801a8e63f31ee3b8bfaf
parentb809d2e314d523aa578bbed637ce4a35afb980c6 (diff)
parent8f4cfceb8ad933d453ab692e6386560e18c1960b (diff)
downloadrabbitmq-server-git-534cf5e6e64053c181c3f4b7bd33bb35567f1c55.tar.gz
Merge pull request #722 from rabbitmq/rabbitmq-auth-backend-ldap-13rabbitmq_v3_6_2_rc1
Include vhost to direct connection authentication properties.
-rw-r--r--src/rabbit_direct.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl
index 35d7eb7940..b5970274d4 100644
--- a/src/rabbit_direct.erl
+++ b/src/rabbit_direct.erl
@@ -76,8 +76,8 @@ connect({Username, none}, VHost, Protocol, Pid, Infos) ->
VHost, Protocol, Pid, Infos);
connect({Username, Password}, VHost, Protocol, Pid, Infos) ->
- connect0(fun () -> rabbit_access_control:check_user_pass_login(
- Username, Password) end,
+ connect0(fun () -> rabbit_access_control:check_user_login(
+ Username, [{password, Password}, {vhost, VHost}]) end,
VHost, Protocol, Pid, Infos).
connect0(AuthFun, VHost, Protocol, Pid, Infos) ->