With reference to #15497 - Cannot get advanced.conf value encryption to work with LDAP #15807
-
Is your feature request related to a problem? Please describe.Previously, I had generated a request for encryption of LDAP credentials in advanced.config but after following certain steps suggested by the contributors and the AI, still i was unable to resolve it and finally i found the issue that in the link here that the data type string is supported so i am unable to decrypt the values using environment variables or through a passphrase, I request to provide the encode/decode data type in the configuration mentioned here. Describe the solution you'd likeI would to like to have data type as encode/decode instead of string as shown in this configuration. Describe alternatives you've consideredStep followed: configuration on the RabbitMQ side In rabbitmq.conf, i have enabled the parameters auth_backends.1 = rabbit_auth_backend_ldap auth_backends.2 = rabbit_auth_backend_internal The advanced.config file has the following configuration. [
{rabbitmq_auth_backend_ldap, [
{servers, ["servername"]},
{port, 636},
{use_ssl, true},
{ssl_options, [{verify, verify_none}]},
{dn_lookup_bind,
{"username", "password"}},
{dn_lookup_base, "dc=domain name,dc=com"},
{dn_lookup_attribute, "sAMAccountName"},
{tag_queries, [
{management, {in_group, "cn=cn name,ou=users,dc=domain name,dc=com"}}
]}
]}
].for the encrypted value this is the configuration firstly, run this command rabbitmqctl encode '<<"password">>' [
%% (one-time) global decoder
{rabbit, [
{config_entry_decoder, [
{passphrase, {file, "/etc/rabbitmq/ldap_bind.pass"}}
]}
]},
{rabbitmq_auth_backend_ldap, [
{servers, ["dc server"]},
{port, 636},
{use_ssl, true},
{ssl_options, [{verify, verify_none}]},
{dn_lookup_bind,
{"username",{encrypted, <<"encrypted string">>}}},
{dn_lookup_base, "dc=domain name,dc=com"},
{dn_lookup_attribute, "sAMAccountName"},
{tag_queries, [
{management, {in_group, "cn=cn_name,ou=Securitygroups,dc=domain name,dc=com"}}
]}
]}
].Now define the actual password in environment variable systemctl edit rabbitmq-server.service [Service] in the file /etc/rabbitmq/ldap_bind.pass kept the password as LDAP_BIND_PASSWORD=password in clear text Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
@parvvam I'm not sure what you are asking for here.
The most common point of confusion when using encrypted values in
It's true that the LDAP password field ( |
Beta Was this translation helpful? Give feedback.
-
|
RabbitMQ does not support the |
Beta Was this translation helpful? Give feedback.
-
|
#15808 adds support for tagged values such as |
Beta Was this translation helpful? Give feedback.
#15808 adds support for tagged values such as
encrypted:...to more keys, includingauth_ldap.dn_lookup_bind.password.