<div dir="ltr">Here is my config<br><br><div><div class="gmail_extra">[<br>  {rabbit, [<br>    {log_levels, [{default, info}]},<br>    {reverse_dns_lookups, true},<br>    {auth_backends, [rabbit_auth_backend_ldap]},<br>    {ssl_listeners, [5671]}<br>

%    {ssl_options, [<br>%      {verify, verify_none},<br>%      {cacertfile, "/etc/rabbitmq/qc_root_g2_cert.crt"},<br>%      {certfile, "/etc/rabbitmq/ssl_v1_cert.crt"}<br>%    ]}<br>  ]},<br>  {rabbitmq_auth_backend_ldap, [<br>

    {servers, ["ldap"]},<br>    {user_dn_pattern, "uid=${username},ou=people,o=xxx"},<br> %  {dn_lookup_attribute, "uid"},<br> %  {dn_lookup_base, "ou=people,o=xxx"},<br> %  {dn_lookup_bind, anon},<br>

    {use_ssl, false},<br>    {log, network},<br>    {vhost_access_query, {constant, true}},<br>    {resource_access_query, {constant, true}},<br>    {tag_queries, [{administrator, {constant, true}},<br>                   {management, {constant, true}}]}<br>

  ]}<br>].<br><br><br><div class="gmail_quote">2014-07-01 13:20 GMT+08:00 Joey Jiao <span dir="ltr"><<a href="mailto:joey.jiaojg@gmail.com" target="_blank">joey.jiaojg@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div><div>Hi,<br></div>I'm still on using rabbitmq_auth_backends_ldap plugin but login still failed.<br></div>After a track, it failed during eldap:simple_bind.<br><div>But it failed at simple_bind with eldap:simple_bind(L,"uid=jiangenj,ou=people,o=xxx","password") with error {error,confidentialityRequired}.<br clear="all">


<div><div><br>My django app uses settings below and it worked. How can I convert to rabbitmq way?<br>import ldap<br><b>AUTH_LDAP_START_TLS = True<br>AUTH_LDAP_GLOBAL_OPTIONS = {<br>    ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER<br>


}</b><br><b>AUTH_LDAP_BIND_DN = ''<br>AUTH_LDAP_BIND_PASSWORD = ''</b><br><b>AUTH_LDAP_BIND_AS_AUTHENTICATING_USER = True</b><br>AUTH_LDAP_SERVER_URI = 'ldap://ldap'<br>AUTH_LDAP_USER_DN_TEMPLATE = 'uid=%(user)s,ou=people,o=xxx'<span class=""><font color="#888888"><br>


<br>-- <br>-Joey Jiao
</font></span></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>-Joey Jiao
</div></div></div>