[rabbitmq-discuss] rabbit_auth_backend_ldap connect failed

Simon MacMullen simon at rabbitmq.com
Tue Aug 13 14:23:22 BST 2013


Hmm. Nevertheless, eldap returns "connect failed" when a connection 
can't be established at the TCP / SSL level - before anything LDAPish 
happens. Unfortunately it swallows the real errors in this case, but it 
really does look like a connectivity problem.

Cheers, Simon

On 13/08/2013 12:24PM, jandres wrote:
> In my real config file I use the IP of the server.
>
> In the same server, I have an Apache instance that use the same LDAP
> server to validate the users, so I think the connection between the
> server and de LDAP is not the problem.
>
> Thank you!
>
> *De:*Simon MacMullen-2 [via RabbitMQ] [mailto:ml-node+[hidden email]
> </user/SendEmail.jtp?type=node&node=28754&i=0>]
> *Enviado el:* martes, 13 de agosto de 2013 13:13
> *Para:* SAG - Jonathan Andrés
> *Asunto:* Re: rabbit_auth_backend_ldap connect failed
>
> So your LDAP server is called "ldap-server"? Can you telnet to port 389
> on that server?
>
> Cheers, Simon
>
> On 13/08/2013 10:19AM, jandres wrote:
>
>
>  > 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.
>  > _______________________________________________
>  > rabbitmq-discuss mailing list
>  > [hidden email] </user/SendEmail.jtp?type=node&node=28752&i=0>
>  > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>  >
>
>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
> _______________________________________________
> rabbitmq-discuss mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=28752&i=1>
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
> ------------------------------------------------------------------------
>
> *If you reply to this email, your message will be added to the
> discussion below:*
>
> http://rabbitmq.1065348.n5.nabble.com/rabbit-auth-backend-ldap-connect-failed-tp28750p28752.html
>
>
> To unsubscribe from rabbit_auth_backend_ldap connect failed, click here.
> NAML
> <http://rabbitmq.1065348.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: RE: rabbit_auth_backend_ldap connect
> failed
> <http://rabbitmq.1065348.n5.nabble.com/rabbit-auth-backend-ldap-connect-failed-tp28750p28754.html>
> Sent from the RabbitMQ mailing list archive
> <http://rabbitmq.1065348.n5.nabble.com/> at Nabble.com.
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>

-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list