[rabbitmq-discuss] rabbit_auth_backend_ldap connect failed

jandres jandres at omie.es
Tue Aug 13 10:19:37 BST 2013


Hi,

I’m trying to configure rabbit_auth_backend_ldap, but I get this error:

------------------
=INFO REPORT==== 13-Aug-2013::11:01:52 ===
accepting AMQP connection <0.336.0> (194.224.33.160:37051 ->
194.224.33.245:5671)

=ERROR REPORT==== 13-Aug-2013::11:01:57 ===
closing AMQP connection <0.336.0> (194.224.33.160:37051 ->
194.224.33.245:5671):
{handshake_error,starting,0,
                 {amqp_error,access_refused,
                             "PLAIN login refused: rabbit_auth_backend_ldap
failed authenticating XXXXX: \"*connect failed*\"\n",
                             *'connection.start_ok'*}}
------------------

This is my rabbitmq.config file:

------------------
[
  {rabbit, [	
				{ssl_listeners, [5671]},
				{ssl_options, [{cacertfile,"e:/RabbitMQ Server /ssl.ca/ca.cer"},
                    {certfile,"e:/RabbitMQ Server /ssl.crt/apache.pem"},
                    {keyfile,"e:/RabbitMQ Server /ssl.key/apache.pem"},
                    {verify,verify_peer},
                    {fail_if_no_peer_cert,true},
					{ssl_cert_login_from, common_name},
					{auth_mechanisms, ['EXTERNAL']}]
				},
				{auth_backends, [rabbit_auth_backend_ldap]}
			]},
  {rabbit_auth_backend_ldap,
   [ {servers,               ["ldap-server"]},
     {port,                  389},
	 {other_bind,			 {"userXX", "passwordXX"}},
	 {user_dn_pattern,       "uid=${username}"},
	 {use_ssl,               false},
     {log,                   network}
   ]
  }
].
---------

If this can help, I have an instance of Apache (Httpd) working with that
LDAP server, and I have this in my apache configuration:

              AuthLDAPBindDN  "userXX"
	AuthLDAPBindPassword "passwordXX"

I have tried a lot of things to stablish the connection, but i don't know
why i get the error. Can you help me?


Thank you very much!




--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/rabbit-auth-backend-ldap-connect-failed-tp28750.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list