activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: ActiveMQ JAAS Plugin question
Date Mon, 22 Mar 2010 09:06:47 GMT
Hi,

this is currently not implemented, but it's doable. Now we have only two
CallbackHandler implementations. One that checks username and password and
other that checks certificates.

For this to work you'd need to implement right Callback handler and
appropriate broker plugin.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Fri, Mar 19, 2010 at 11:17 PM, Vladimir Tsurkan <vlad@yahoo-inc.com>wrote:

> Anyone knows if I can get the IP address of the client inside of the
> login() of the LoginModule of the JAAS plugin for 5.x AMQ
>
> Here is what I have in mind:
>
>    public boolean login() throws LoginException
>    {
>        Callback[] callbacks = new Callback[3];
>        callbacks[0] = new NameCallback(" ");
>        callbacks[1] = new PasswordCallback(" ", false);
>        callbacks[2] = new ConnectionInfoCallback();
>
>        callbackHandler.handle(callbacks);
>
>        InetAddress     ia =
>  ((ConnectionInfoCallback)callbacks[2]).getInetAddress();
>
>  That's what Tibco EMS does.
>
> Do we have something like it in ActiveMQ?
>
> Thanks
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message