[rabbitmq-discuss] custom plugin debugging

Jerry Kuch jerryk at rbcon.com
Thu Nov 8 23:36:04 GMT 2012


Hi, Pradobh:

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?

I wrote a custom auth_backend relatively recently, so be assured one can
make it work, and you are making progress! :-)

Best regards,
Jerry

On Thu, Nov 8, 2012 at 3:22 PM, Prabodh Upreti <prabodh.upreti at vce.com>wrote:

> I got over the crash problem.
>
> Now where I try to connect via my java client I get
>
> =ERROR REPORT==== 8-Nov-2012::18:16:57 ===
> closing AMQP connection <0.246.0> (127.0.0.1:52094 -> 127.0.0.1:5672):
> {channel0_error,starting,
>     {error,function_clause,'connection.start_ok',
>         [{rabbitmq_cas_authen,q,
>              [user_path,
>               [{ticket,<<"ST-2-VYPDk5OF0y7SCDe9LGCO-cas01.example.org">>},
>                {password,<<>>}]],
>              []},
>          {rabbitmq_cas_authen,check_user_login,2,[]},
>          {rabbit_access_control,'-check_user_login/2-fun-0-',4,[]},
>          {lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
>          {rabbit_reader,auth_phase,2,[]},
>          {rabbit_reader,handle_method0,3,[]},
>          {rabbit_reader,handle_input,3,[]},
>          {rabbit_reader,recvloop,2,[]}]}}
>
>
> To build my plugin, I have taken the sample code from
>
> https://github.com/simonmacmullen/rabbitmq-auth-backend-http
>
> It is similar to this plugin except makes a https call to the CAS
> Server(kerberose).
>
> my config is
>
> [
>         {rabbit,
>                 [{auth_backends, [rabbitmq_cas_authen,
> rabbit_auth_backend_internal]},
>                  {vm_memory_high_watermark, 0.1}
>                 ]
>         }
> ].
>
> This is the first time I am writing plugin so I am sure I am missing
> something here. Could you please give me some hints. Thank you.
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://rabbitmq.1065348.n5.nabble.com/custom-plugin-debugging-tp23233p23244.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121108/b7ae9fd6/attachment.htm>


More information about the rabbitmq-discuss mailing list