You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by craig w <co...@gmail.com> on 2013/05/28 11:36:08 UTC

Custom Login Module -- how to make Apollo use it?

I'm working on creating a custom login module for Apollo and I'm wondering
how to actually use it.

So far I've created a JAR that contains a class, we'll say, MyLoginModule
which extends the CertificateLoginModule provided by Apollo. Currently, I'm
overriding the "login" method to just do some System.out.println ...to try
and verify it's being loaded and used (sort of a canary test).

I've configured the etc/login.config file in my broker instance to have:

com.acme.MyLoginModule optional
    ;

Instead of

org.apache.activemq.apollo.broker.security.CertificateLoginModule optional
    ;

However, when I startup Apollo and publish a message I don't see my
messages being printed out. I've put my JAR file into $APOLLO_HOME/lib.

Is there something else I should do?

Thanks in advance,
Craig

Re: Custom Login Module -- how to make Apollo use it?

Posted by craig w <co...@gmail.com>.
Nevermind, my JAR didn't include the class files. Putting the JAR into
$APOLLO_HOME/lib works just fine.


On Tue, May 28, 2013 at 5:36 AM, craig w <co...@gmail.com> wrote:

> I'm working on creating a custom login module for Apollo and I'm wondering
> how to actually use it.
>
> So far I've created a JAR that contains a class, we'll say, MyLoginModule
> which extends the CertificateLoginModule provided by Apollo. Currently, I'm
> overriding the "login" method to just do some System.out.println ...to try
> and verify it's being loaded and used (sort of a canary test).
>
> I've configured the etc/login.config file in my broker instance to have:
>
> com.acme.MyLoginModule optional
>     ;
>
> Instead of
>
> org.apache.activemq.apollo.broker.security.CertificateLoginModule optional
>     ;
>
> However, when I startup Apollo and publish a message I don't see my
> messages being printed out. I've put my JAR file into $APOLLO_HOME/lib.
>
> Is there something else I should do?
>
> Thanks in advance,
> Craig
>