How to verify a RabbitMQ user password

rabbitmq

Is there a simple method to verify a RabbitMQ user password from command line? By simple I mean:

  • without rabbitmq_management plugin enabled

  • without extra dependencies, like ruby/python/etc. libraries not usually present on a Linux machine by default.

Best Answer

sudo rabbitmqctl authenticate_user <username> <password>

If the password is appropriate it shows:

Authenticating user "username"
Success

If the password is wrong it shows the below:

Authenticating user "username"
Error: failed to authenticate user "username"
Related Topic