Hi Team,
We have installed Erlang 26.1 and RMQ 3.13.0 . We have installed successfully , but we are not able to connect to ldap as we are seeing below error in rabbitmq logs.
2024-03-04 03:32:36.337913-08:00 [info] <0.757.0> LDAP CHECK: login for xx
2024-03-04 03:32:36.338058-08:00 [info] <0.757.0> LDAP filling template "uid=${username},ou=people,dc=xxx,dc=com" with
2024-03-04 03:32:36.338058-08:00 [info] <0.757.0> [{username,<<"xx">>}]
2024-03-04 03:32:36.338208-08:00 [info] <0.757.0> LDAP template result: "uid=xx,ou=people,dc=xxx,dc=com"
2024-03-04 03:32:36.338289-08:00 [info] <0.757.0> LDAP connecting to servers: ["ldapservername"]
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0> LDAP network traffic: Connect: "ldapservername" failed {error,
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0> {options,
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0> incompatible,
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0> [{verify,
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0> verify_peer},
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0> {cacerts,
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0> undefined}]}}
2024-03-04 03:32:36.338571-08:00 [info] <0.758.0>
2024-03-04 03:32:36.338750-08:00 [info] <0.403.0> LDAP connect error: {error,"connect failed"}
2024-03-04 03:32:36.338834-08:00 [info] <0.757.0> LDAP DECISION: login for xx: {error,ldap_connect_error}
2024-03-04 03:32:36.338905-08:00 [warning] <0.757.0> HTTP access denied: rabbit_auth_backend_ldap failed authenticating xx: ldap_connect_error
Below is our configuration file .
[
{rabbit, [
{tcp_listeners, [{"127.0.0.1", 1672}]},
{ssl_listeners, [1671]}, % This needs to be unique on each node
{log_levels, [{connection, debug}]},
{heartbeat, 30},
{handshake_timeout, 20000},
{consumer_timeout, 86400000},
{ssl_handshake_timeout, 20000},
{default_vhost, <<"default">>},
{cluster_partition_handling, autoheal},
{ssl_options, [
{cacertfile, "sslroot.pem"},
{certfile,SignedCert.pem"},
{keyfile, "key.pem"},
{verify, verify_peer}]},
{auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_ldap]}]
},
{rabbitmq_management, [
{listener, [
{port, 1673}, % This needs to be unique on each node.
{ssl, false},
{ssl_opts, [
{cacertfile, "sslroot.pem"},
{certfile, "SignedCert.pem"},
{keyfile, "key.pem"},
{verify, verify_peer}]}]}]
},
{lager, [
{error_logger_hwm, 1024},
{handlers, [
{lager_file_backend,
[{file, "../logs/npd.log"},
{level,debug},
{formatter_config,
[date," ",time," ",color,"[",severity,"] ",
{pid,[]},
" ",message,"\n"]},
{date,""},
{size,1073741824},
{count,5}]}
]}
]},
{rabbitmq_auth_backend_ldap, [
{servers, ["ldapservername"]},
{dn_lookup_attribute, "userPrincipalName"},
{dn_lookup_base, "DC=xxx,DC=com"},
{user_dn_pattern, "uid=${username},ou=people,dc=xxx,dc=com"},
{use_ssl, true},
{port, 636},
{timeout, 60000},
{log, network},
{other_bind, as_user},
{vhost_access_query,
{in_group, "cn=xx,ou=groups,dc=xxx,dc=com"}},
{resource_access_query,
{for, [
{permission, configure,
{for, [
{resource, queue,
{in_group, "cn=rmq-${vhost}-queue,ou=groups,dc=xxx,dc=com"}},
{resource, exchange,
{in_group, "cn=rmq-${vhost}-exch,ou=groups,dc=xxx,dc=com"}}]}},
{permission, write,
{for, [
{resource, queue,
{in_group, "cn=rmq-${vhost}-write,ou=groups,dc=xxx,dc=com"}},
{resource, exchange,
{in_group, "cn=rmq-${vhost}-write,ou=groups,dc=xxx,dc=com"}}]}},
{permission, read,
{for, [
{resource, exchange,
{in_group, "cn=rmq-${vhost}-read,ou=groups,dc=xxx,dc=com"}},
{resource, queue,
{in_group, "cn=rmq-${vhost}-read,ou=groups,dc=xxx,dc=com"}}]}}]}},
{tag_queries, [
{administrator,
{in_group, "cn=admin,ou=groups,dc=xxx,dc=com"}},
{monitor,
{in_group, "cn=monitor,ou=groups,dc=xxx,dc=com"}},
{management,
{in_group, "cn=mgmt,ou=groups,dc=xxx,dc=com"}}]}]
}
].
Also , we have installed open ssl 3.0 before installing erlang and rabbit mq
And we dont have any other advanced config files .
Upon checking erlang otp 26 highlights , it is mentioned that there are certain changes in the way ssl parameters should be configured but there is no sample config file for the same.
Could you please analyse the above config file and point out if there is anything to be changed. Please note , we see the same error with the Erlang 26.2.2 version as well.