<div dir="ltr"><div><b>Dear All</b></div><div><b>I'm config plugin LDAP for RabbitMQ 3.3.0. And this is the contents of config file</b></div><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><i>[<br>  {rabbit, [<br>     {tcp_listeners, [{"172.16.1.10",5672}]},<br>     {ssl_listeners, [{"172.16.1.10",5671}]},<br>     {ssl_options, [{cacertfile,"/etc/rabbitmq/ssl/nvca/cacert.pem"},<br>                    {certfile,"/etc/rabbitmq/ssl/server/cert.pem"},<br>                    {keyfile,"/etc/rabbitmq/ssl/server/key.pem"},<br>                    {verify,verify_none},<br>                    {fail_if_no_peer_cert,false}]},<br>     {heartbeat, 15},<br>     {vm_memory_high_watermark_paging_ratio, 0.75},<br>     {vm_memory_high_watermark, 0.4},<br>     {auth_backends, [{rabbit_auth_backend_ldap, rabbit_auth_backend_internal},<br>                          rabbit_auth_backend_internal]},<br>     {disk_free_limit, 40000000000}<br>  ]},<br>  {rabbitmq_auth_backend_ldap,<br>   [ {servers,               ["10.0.10.10"]},<br>     {user_dn_pattern,       "cn=${username},dc=scholar,dc=com"},<br>     {dn_lookup_base,        "dc=scholar,dc=com"},<br>     {other_bind,           {"cn=manager,cn=internal,dc=scholar,dc=com","eRwFTGDFTooNI5ca"}},<br>     {use_ssl,               false},<br>     {port,                  389},<br>     {log,                   network},<br>     {tag_queries,           [{administrator, {constant, true}},<br>                                    {management,    {constant, true}}]}<br>   ]<br>  }<br>].</i></blockquote><div><br></div><div><b>After that, i'm try login, but fail. And this is a log file </b><br></div><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><i>=INFO REPORT==== 20-May-2014::02:39:58 ===<br>Server startup complete; 10 plugins started.<br> * amqp_client<br> * eldap<br> * mochiweb<br> * rabbitmq_auth_backend_ldap<br> * rabbitmq_auth_mechanism_ssl<br> * rabbitmq_federation_management<br> * rabbitmq_management<br> * rabbitmq_management_agent<br> * rabbitmq_web_dispatch<br> * webmachine<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>LDAP CHECK: login for david.wang<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>        LDAP filling template "cn=${username},dc=scholar,dc=com" with<br>            [{username,<<"david.wang">>}]<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>        LDAP template result: "cn=david.wang,dc=scholar,dc=com"<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>    LDAP connecting to servers: ["10.0.10.10"]<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>    LDAP network traffic: bind request = {'BindRequest',3,<br>                                          "cn=david.wang,dc=scholar,dc=com",<br>                                          {simple,<<"abc123a@">>}}<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>    LDAP network traffic: bind reply = {ok,<br>                                        {'LDAPMessage',1,<br>                                         {bindResponse,<br>                                          {'BindResponse',invalidCredentials,<br>                                           [],[],asn1_NOVALUE,asn1_NOVALUE}},<br>                                         asn1_NOVALUE}}<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>    LDAP bind returned "invalid credentials": cn=david.wang,dc=scholar,dc=com<br>=INFO REPORT==== 20-May-2014::02:40:04 ===<br>LDAP DECISION: login for david.wang: denied<br>=ERROR REPORT==== 20-May-2014::02:40:04 ===<br>webmachine error: path="/api/whoami"<br>"Unauthorized"</i></blockquote><div><br></div><div><b>I'm read "Common errors encountered when using OpenLDAP Software" on website openldap.org. <br></b></div><div><b>And know The error usually occurs when the credentials (password) provided does not match the userPassword held in entry you are binding to, or the error can also occur when the bind DN specified is not known to the server.</b></div><div><b>After that i'm check both, but it's correct.</b></div><div><b><br></b></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><b>This is the LDAP information</b><br><i>LDAP Base DN<span class="Apple-tab-span" style="white-space:pre">   </span>dc=scholar,dc=com<br>LDAP Bind DN<span class="Apple-tab-span" style="white-space:pre">     </span>cn=manager,cn=internal,dc=scholar,dc=com<br>LDAP Bind Password<span class="Apple-tab-span" style="white-space:pre">        </span>eRwFTGDFTooNI5ca</i></blockquote><div><br></div><div>Anybody help me please.</div><div>Thanks & Regards...!!! </div></div>