<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">I have a problem :) .</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<div>I configured, or rather do me wondering, RMQ to use ldap (openldap)</div><div>for authentication and authorization.</div><div><br></div><div>LDAP works ok, but the LDAP-user can not declare exchanges and queues, (login wheel:pass it works, published msg to exchange works, read msg from queque works )</div>
<div><br></div><div>Here&#39;s my Rabbit configs :�</div><div><br></div><div>CONFIG1:</div><div><div>[</div><div>� {rabbit, [</div><div>� � �{auth_backends, [rabbit_auth_backend_ldap, rabbit_auth_backend_internal]},</div>
<div>� � �{tcp_listeners, []},</div><div>� � �{ssl_listeners, [{&quot;127.0.0.1&quot;, 5671} ]},</div><div>� � �{ssl_options, [{cacertfile,&quot;/home/hg/cert/testca/cacert.pem&quot;},</div><div>� � � � � � � � � � {certfile,&quot;/home/hg/cert/server/cert.pem&quot;},</div>
<div>� � � � � � � � � � {keyfile,&quot;/home/hg/cert/server/key.pem&quot;},</div><div>� � � � � � � � � � {verify,verify_peer},</div><div>� � � � � � � � � � {fail_if_no_peer_cert,true}]}</div><div>� �]</div><div>� },</div>
<div>� {rabbitmq_auth_backend_ldap,</div><div>� �[ {servers, � � � � � � � [&quot;localhost&quot;]},</div><div>� � �{user_dn_pattern, � � � &quot;cn=${username},o=org1,dc=nodomain&quot;},</div><div>� � �{use_ssl, � � � � � � � false},</div>
<div>� � �{port, � � � � � � � � �389},</div><div>� � �{log, � � � � � � � � � true},</div><div>� � �{resource_access_query,</div><div>� � � {for, [{permission, configure, {in_group, &quot;cn=wheel,o=org1,dc=nodomain&quot;}},</div>
<div>� � � � � � �{permission, write,</div><div>� � � � � � � {for, [{resource, queue, � �{in_group, &quot;cn=wheel,o=org1,dc=nodomain&quot;}},</div><div>� � � � � � � � � � �{resource, exchange, {constant, true}}]}},</div>
<div>� � � � � � �{permission, read,</div><div>� � � � � � � {for, [{resource, exchange, {in_group, &quot;cn=wheel,o=org1,dc=nodomain&quot;}},</div><div>� � � � � � � � � � �{resource, queue, � �{constant, true}}]}}</div>
<div>� � � � � � ]</div><div>� � � }},</div><div>� � �{tag_queries, � � � � � [{administrator, {constant, false}},</div><div>� � � � � � � � � � � � � � � {management, � �{constant, true}}]}</div><div>� �]</div><div>� }</div>
<div>].</div><div><br></div><div>LOG:</div><div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � LDAP DECISION: does wheel have tag management? true</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div>
<div>LDAP DECISION: login for wheel: ok</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>LDAP CHECK: access to vhost &quot;/&quot; for &quot;wheel&quot;</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div>
<div>� � LDAP bind succeeded: cn=wheel,o=org1,dc=nodomain</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � LDAP evaluating query: {constant,true}</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div>
<div>� � LDAP evaluated constant: true</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>LDAP DECISION: access to vhost &quot;/&quot; for &quot;wheel&quot;: ok</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div>
<div>LDAP CHECK: configure permission for queue &quot;tyerter&quot; in &quot;/&quot; for &quot;wheel&quot;</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � LDAP bind succeeded: cn=wheel,o=org1,dc=nodomain</div>
<div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � LDAP evaluating query: {for,</div><div>� � � � � � � � � � � � � � [{permission,configure,</div><div>� � � � � � � � � � � � � � � {in_group,&quot;cn=wheel,o=org1,dc=nodomain&quot;}},</div>
<div>� � � � � � � � � � � � � � �{permission,write,</div><div>� � � � � � � � � � � � � � � {for,</div><div>� � � � � � � � � � � � � � � �[{resource,queue,</div><div>� � � � � � � � � � � � � � � � �{in_group,&quot;cn=wheel,o=org1,dc=nodomain&quot;}},</div>
<div>� � � � � � � � � � � � � � � � {resource,exchange,{constant,true}}]}},</div><div>� � � � � � � � � � � � � � �{permission,read,</div><div>� � � � � � � � � � � � � � � {for,</div><div>� � � � � � � � � � � � � � � �[{resource,exchange,</div>
<div>� � � � � � � � � � � � � � � � �{in_group,&quot;cn=wheel,o=org1,dc=nodomain&quot;}},</div><div>� � � � � � � � � � � � � � � � {resource,queue,{constant,true}}]}}]}</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div>
<div>� � LDAP selecting subquery permission = configure</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � LDAP evaluating query: {in_group,&quot;cn=wheel,o=org1,dc=nodomain&quot;}</div><div>
<br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � LDAP evaluating query: {in_group,&quot;cn=wheel,o=org1,dc=nodomain&quot;,&quot;member&quot;}</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div>
<div>� � � � LDAP filling template &quot;cn=wheel,o=org1,dc=nodomain&quot; with</div><div>� � � � � � [{username,&lt;&lt;&quot;wheel&quot;&gt;&gt;},</div><div>� � � � � � �{user_dn,&quot;cn=wheel,o=org1,dc=nodomain&quot;},</div>
<div>� � � � � � �{vhost,&lt;&lt;&quot;/&quot;&gt;&gt;},</div><div>� � � � � � �{resource,queue},</div><div>� � � � � � �{name,&lt;&lt;&quot;tyerter&quot;&gt;&gt;},</div><div>� � � � � � �{permission,configure}]</div><div>
<br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � � � LDAP template result: &quot;cn=wheel,o=org1,dc=nodomain&quot;</div><div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>� � LDAP evaluated in_group for &quot;cn=wheel,o=org1,dc=nodomain&quot;: false</div>
<div><br></div><div>=INFO REPORT==== 29-Aug-2013::14:24:05 ===</div><div>LDAP DECISION: configure permission for queue &quot;tyerter&quot; in &quot;/&quot; for &quot;wheel&quot;: denied</div><div><br></div><div>=ERROR REPORT==== 29-Aug-2013::14:24:05 ===</div>
<div>connection &lt;0.1234.0&gt;, channel 1 - soft error:</div><div>{amqp_error,access_refused,</div><div>� � � � � � &quot;access to queue &#39;tyerter&#39; in vhost &#39;/&#39; refused for user &#39;wheel&#39;&quot;,</div>
<div>� � � � � � &#39;queue.declare&#39;}</div><div><br></div><div>=ERROR REPORT==== 29-Aug-2013::14:24:05 ===</div><div>webmachine error: path=&quot;/api/queues/%2F/tyerter&quot;</div><div>&quot;Unauthorized&quot;</div></div>
<div><br></div></div><div><br></div><div><br></div><div><div>Can anyone have any suggestions or experience with this problem.</div><div>For all thank you in advance.</div></div><div><br></div><div style>Muniek</div><div><br>
</div></div></div>