<div dir="ltr"><div><b><font size="4">Dear All</font></b></div><div><b><font size="4">I'm try login to RabbitMQ, LDAP bind have return success. But I can not login, and  this is the log file</font></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>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>LDAP CHECK: login for David Wang<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>        LDAP filling template "cn=${username},ou=Users,ou=Accounts,dc=scholar,dc=com" with<br>            [{username,<<"David Wang">>}]<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>        LDAP template result: "cn=David Wang,ou=Users,ou=Accounts,dc=scholar,dc=com"<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP connecting to servers: ["10.0.10.10"]<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP network traffic: bind request = {'BindRequest',3,<br>                                          "cn=David Wang,ou=Users,ou=Accounts,dc=scholar,dc=com",<br>                                          {simple,<<"321`Rewq">>}}<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP network traffic: bind reply = {ok,<br>                                        {'LDAPMessage',1,<br>                                         {bindResponse,<br>                                          {'BindResponse',success,[],[],<br>                                           asn1_NOVALUE,asn1_NOVALUE}},<br>                                         asn1_NOVALUE}}<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP bind succeeded: cn=David Wang,ou=Users,ou=Accounts,dc=scholar,dc=com<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>        LDAP filling template "cn=${username},ou=Users,ou=Accounts,dc=scholar,dc=com" with<br>            [{username,<<"David Wang">>}]<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>        LDAP template result: "cn=David Wang,ou=Users,ou=Accounts,dc=scholar,dc=com"<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP CHECK: does David Wang have tag administrator?<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP evaluating query: {constant,true}<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP evaluated constant: true<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP DECISION: does David Wang have tag administrator? true<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP CHECK: does David Wang have tag management?<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP evaluating query: {constant,true}<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP evaluated constant: true<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>    LDAP DECISION: does David Wang have tag management? true<br>=INFO REPORT==== 23-May-2014::16:49:53 ===<br>LDAP DECISION: login for David Wang: ok<br>=ERROR REPORT==== 23-May-2014::16:49:53 ===<br>webmachine error: path="/api/whoami"<br>"Unauthorized"</i></blockquote><div><br></div><div><font size="4"><b>I'm using command ldapsearch to find uid=david.wang</b></font></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>dn: cn=David Wang,ou=Users,ou=Accounts,dc=scholar,dc=com<br></i><i>uidNumber: 1311<br></i><i>gidNumber: 63000<br></i><i>homeDirectory: /home/david.wang<br></i><i>pcnSHAPassword: {sha}**********************<br></i><i>pcnMicrosoftNTPassword: *********************<br></i><i>pcnMicrosoftLanmanPassword: *******************<br></i><i>pcnWebconfigFlag: TRUE<br></i><i>givenName: David<br></i><i>sn: Wang<br></i><i>.<br></i><i>.<br></i><i>.<br></i><i>pcnProxyFlag: TRUE<br></i><i>pcnOpenVPNFlag: TRUE<br></i><i>pcnPPTPFlag: TRUE<br></i><i>pcnWebFlag: TRUE<br></i><i>loginShell: /bin/bash<br></i><i>pcnFTPFlag: FALSE<br></i><i>pcnMailFlag: FALSE<br></i><i>pcnGoogleAppsFlag: FALSE<br></i><i>uid: david.wang<br></i><i>cn: David Wang</i></blockquote><div><br></div><div><font size="4"><b>And this is the contents of LDAP config</b></font></div><div><br></div><div>  {rabbitmq_auth_backend_ldap,</div><div>   [ {servers,               ["10.0.10.10"]},</div><div>     {user_dn_pattern,       "cn=${username},ou=Users,ou=Accounts,dc=scholar,dc=com"},</div><div>     {dn_lookup_base,        "dc=scholar,dc=com"},</div><div>     {other_bind,           {"cn=manager,cn=internal,dc=scholar,dc=com","eRwFTGDFTooNI5ca"}},</div><div>     {use_ssl,               false},</div><div>     {port,                  389},</div><div>     {log,                   network},</div><div>     {vhost_access_query,    {in_group,</div><div>                              "ou=Users,ou=Accounts,dc=scholar,dc=com"}},</div><div>     {resource_access_query,</div><div>      {for, [{permission, configure, {in_group, "ou=Users,ou=Accounts,dc=scholar,dc=com"}},</div><div>             {permission, write,</div><div>              {for, [{resource, queue,    {in_group, "ou=Users,ou=Accounts,dc=scholar,dc=com"}},</div><div>                     {resource, exchange, {constant, true}}]}},</div><div>             {permission, read,</div><div>              {for, [{resource, exchange, {in_group, "ou=Users,ou=Accounts,dc=scholar,dc=com"}},</div><div>                     {resource, queue,    {constant, true}}]}}</div><div>            ]</div><div>      }},</div><div>     {tag_queries,           [{administrator, {constant, true}},</div><div>                              {management,    {constant, true}}]}</div><div>   ]</div><div>  }</div><div><br></div><div><b><font size="4">Anybody Help me please ...!!!</font></b></div><div><b><font size="4">Thanks so much</font></b></div></div>