Discussion:
[rabbitmq-users] RabbitMQ 3.5.1 - Definitions.json - Password
medley
2015-05-05 14:28:50 UTC
Permalink
Hello,

I'm using a definitions.json file that i have declared in the rabbit.config
file

{rabbitmq_management,
[%% Pre-Load schema definitions from the following JSON file. See
%% http://www.rabbitmq.com/management.html#load-definitions
%%

{load_definitions, "definitions.json"}
...




the definitions.json file looks like this :

{
"rabbit_version": "3.5.1",
"users": [
{
"name": "rabbitmq",
"password_hash": "aedb75dfc563674e1263316b01879722",
"tags": "administrator"
}
],
"vhosts": [
{
"name": "/"
}
],
"permissions": [
{
"user": "rabbitmq",
"vhost": "/",
"configure": ".*",
"write": ".*",
"read": ".*"
}
],

However, if I want to connect to the RabbitMQ Management web application,
the login fails.

I think that it is a problem with the password hash. But which hash
function should I use ?

Regards
medley
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
medley
2015-05-05 14:33:03 UTC
Permalink
I tried with this. I replaced the attribute "password_hash" with the
attribute "password". This is working.

{
"rabbit_version": "3.5.1",
"users": [
{
"name": "rabbitmq",
"password": "rabbitmq",
"tags": "administrator"
}
],



But I would like to try with the attribute "password_hash"
Post by medley
Hello,
I'm using a definitions.json file that i have declared in the
rabbit.config file
{rabbitmq_management,
[%% Pre-Load schema definitions from the following JSON file. See
%% http://www.rabbitmq.com/management.html#load-definitions
%%
{load_definitions, "definitions.json"}
...
{
"rabbit_version": "3.5.1",
"users": [
{
"name": "rabbitmq",
"password_hash": "aedb75dfc563674e1263316b01879722",
"tags": "administrator"
}
],
"vhosts": [
{
"name": "/"
}
],
"permissions": [
{
"user": "rabbitmq",
"vhost": "/",
"configure": ".*",
"write": ".*",
"read": ".*"
}
],
However, if I want to connect to the RabbitMQ Management web application,
the login fails.
I think that it is a problem with the password hash. But which hash
function should I use ?
Regards
medley
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2015-05-05 14:46:42 UTC
Permalink
Post by medley
But I would like to try with the attribute "password_hash"
You should be able to produce a hash with

rabbitmqctl eval 'binary_to_list(base64:encode(rabbit_auth_backend_internal:hash_password(<<"topsecret">>))).'
# => "bE7oUO2q4UmiUs/fs6okC0kJtBE="

The hashing function is MD5, with a salt. HTTP API requires the values to be
base64-encoded. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...