<div dir="ltr">Dear Simon<div>I have use other way to <span style="color: rgb(0, 0, 0); white-space: pre-wrap;">convert usernames into DNs</span></div><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">-----------------</span></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;"><font color="#000000"><span style="white-space: pre-wrap;"> {rabbitmq_auth_backend_ldap,<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> [ {servers, ["openldap.com"]},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {user_dn_pattern, "cn=${username},dc=openldap,dc=com"},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {dn_lookup_base, "dc=openldap,dc=com"},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {other_bind, {"cn=manager,cn=internal,dc=openldap,dc=com","Ad09DSJwidjdwf89D"}},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {use_ssl, false},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {port, 389},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {log, network},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {tag_queries, [{administrator, {constant, true}},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {management, {constant, true}}]}<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> ]<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> }</span></font></blockquote><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">---------------------</span></div><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">I am try to login, And this is the log file</span></div><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">------</span></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;"><font color="#000000"><span style="white-space: pre-wrap;">Server startup complete; 10 plugins started.<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * amqp_client<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * eldap<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * mochiweb<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * rabbitmq_auth_backend_ldap<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * rabbitmq_auth_mechanism_ssl<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * rabbitmq_federation_management<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * rabbitmq_management<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * rabbitmq_management_agent<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * rabbitmq_web_dispatch<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> * webmachine</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;">LDAP CHECK: login for ngoc.tang</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> LDAP filling template "cn=${username},dc=openldap,dc=com" with<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> [{username,<<"ngoc.tang">>}]</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> LDAP template result: "cn=ngoc.tang,</span></font><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">dc=openldap,dc=com</span><font color="#000000"><span style="white-space: pre-wrap;">"</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> LDAP connecting to servers: ["openldap.com"]</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> LDAP network traffic: bind request = {'BindRequest',3,<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> "cn=ngoc.tang,</span></font><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">dc=openldap,dc=com</span><font color="#000000"><span style="white-space: pre-wrap;">",<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {simple,<<"Pa$$w0rd">>}}</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> LDAP network traffic: bind reply = {ok,<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {'LDAPMessage',1,<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {bindResponse,<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> {'BindResponse',invalidCredentials,<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> [],[],asn1_NOVALUE,asn1_NOVALUE}},<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> asn1_NOVALUE}}</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;"> LDAP bind returned "invalid credentials": cn=ngoc.tang,</span></font><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">dc=openldap,dc=com</span><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=INFO REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;">LDAP DECISION: login for ngoc.tang: denied</span></font><font color="#000000"><span style="white-space: pre-wrap;">
</span></font><font color="#000000"><span style="white-space: pre-wrap;">=ERROR REPORT==== 2-May-2014::13:28:41 ===<br></span></font><font color="#000000"><span style="white-space: pre-wrap;">webmachine error: path="/api/whoami"<br></span></font><font color="#000000"><span style="white-space: pre-wrap;">"Unauthorized"</span></font></blockquote><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;"><br></span></div><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">----</span></div><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">I have try to resolve this problem, but isn't result</span></div><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">Thanks & Best Regards</span></div><div><span style="color: rgb(0, 0, 0); white-space: pre-wrap;">Ngoc Tang </span></div></div>