From e37216f356ecefebb1a26e7ff39eb1a4f7539eb3 Mon Sep 17 00:00:00 2001 From: Refael Yehuda Date: Tue, 21 May 2019 11:09:09 +0300 Subject: [PATCH] Add ldap docomentation --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 9072a431..846f0dbe 100644 --- a/README.md +++ b/README.md @@ -398,6 +398,32 @@ To use https connection to management console, turn `['rabbitmq']['web_console_s Enables any plugins listed in the `node['rabbitmq']['enabled_plugins']` and disables any listed in `node['rabbitmq']['disabled_plugins']` attributes. +### Ldap Plugin & Configuration + +To enable ldap plugin do the following +1. `default['rabbitmq']['ldap']['enabled'] = true` +2. `default['rabbitmq']['auth_backends'] = 'rabbit_auth_backend_internal, rabbit_auth_backend_ldap'` +3. Add to your plugins the `rabbitmq_auth_backend_ldap` plugin +4. Set your configurations in `default['rabbitmq']['ldap']['conf']` variable + +##### Example configuration + +```ruby +default['rabbitmq']['ldap']['conf'] = { + :servers => [""], + :user_bind_pattern => "${username}@", + :dn_lookup_attribute => "sAMAccountName", + :dn_lookup_base => "DC=,DC=", + :port => , + :log => , + :vhost_access_query => '{constant, true}', + :topic_access_query => '{constant, true}', + :resource_access_query => '{constant, true}', + :tag_queries => "[{administrator, {constant, false}}]" + } +``` + + ### users Enables any users listed in the `node['rabbitmq']['enabled_users']` and disables any listed in `node['rabbitmq']['disabled_users']` attributes.