Hi, Pradobh:<div><br></div><div>So it looks like you're implementing a custom rabbit_auth_backend? It looks like you're blowing up in your check_user_login/2 implementation. Can you tell us more about what's going on in there?</div>
<div><br></div><div>I wrote a custom auth_backend relatively recently, so be assured one can make it work, and you are making progress! :-)</div><div><br></div><div>Best regards,</div><div>Jerry<br><br><div class="gmail_quote">
On Thu, Nov 8, 2012 at 3:22 PM, Prabodh Upreti <span dir="ltr"><<a href="mailto:prabodh.upreti@vce.com" target="_blank">prabodh.upreti@vce.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I got over the crash problem.<br>
<br>
Now where I try to connect via my java client I get<br>
<br>
=ERROR REPORT==== 8-Nov-2012::18:16:57 ===<br>
closing AMQP connection <0.246.0> (<a href="http://127.0.0.1:52094" target="_blank">127.0.0.1:52094</a> -> <a href="http://127.0.0.1:5672" target="_blank">127.0.0.1:5672</a>):<br>
{channel0_error,starting,<br>
{error,function_clause,'connection.start_ok',<br>
[{rabbitmq_cas_authen,q,<br>
[user_path,<br>
[{ticket,<<"<a href="http://ST-2-VYPDk5OF0y7SCDe9LGCO-cas01.example.org" target="_blank">ST-2-VYPDk5OF0y7SCDe9LGCO-cas01.example.org</a>">>},<br>
{password,<<>>}]],<br>
[]},<br>
{rabbitmq_cas_authen,check_user_login,2,[]},<br>
{rabbit_access_control,'-check_user_login/2-fun-0-',4,[]},<br>
{lists,foldl,3,[{file,"lists.erl"},{line,1197}]},<br>
{rabbit_reader,auth_phase,2,[]},<br>
{rabbit_reader,handle_method0,3,[]},<br>
{rabbit_reader,handle_input,3,[]},<br>
{rabbit_reader,recvloop,2,[]}]}}<br>
<br>
<br>
To build my plugin, I have taken the sample code from<br>
<br>
<a href="https://github.com/simonmacmullen/rabbitmq-auth-backend-http" target="_blank">https://github.com/simonmacmullen/rabbitmq-auth-backend-http</a><br>
<br>
It is similar to this plugin except makes a https call to the CAS<br>
Server(kerberose).<br>
<br>
my config is<br>
<br>
[<br>
{rabbit,<br>
[{auth_backends, [rabbitmq_cas_authen, rabbit_auth_backend_internal]},<br>
{vm_memory_high_watermark, 0.1}<br>
]<br>
}<br>
].<br>
<br>
This is the first time I am writing plugin so I am sure I am missing<br>
something here. Could you please give me some hints. Thank you.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/custom-plugin-debugging-tp23233p23244.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/custom-plugin-debugging-tp23233p23244.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>