You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nilson Uehara <ni...@gmail.com> on 2014/10/31 20:51:38 UTC

Authentication Memcached + Tomcat

I'm testing Memcached to implement failover on my Tomcat servers.

Is there any way of implementing security by user / password?

Re: Authentication Memcached + Tomcat

Posted by Nilson Uehara <ni...@gmail.com>.
2014-11-02 4:34 GMT-02:00 Igor Cicimov <ic...@gmail.com>:

> On 01/11/2014 6:52 AM, "Nilson Uehara" <ni...@gmail.com> wrote:
> >
> > I'm testing Memcached to implement failover on my Tomcat servers.
> >
> > Is there any way of implementing security by user / password?
> From what I can see here
>
> https://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration
> the instructions are pretty clear. You need memcache compiled and
> configured with sasl support and thats pretty much it.
>

I found the solution!
I included memcachedProtocol="binary" in the context.xml.

<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:1.2.3.4:11211"
    memcachedProtocol="binary"
    requestUriIgnorePattern=".*\.(png|gif|jpg|css|js|ico)$"
    username="user"
    password="123"
/>

Re: Authentication Memcached + Tomcat

Posted by Igor Cicimov <ic...@gmail.com>.
On 01/11/2014 6:52 AM, "Nilson Uehara" <ni...@gmail.com> wrote:
>
> I'm testing Memcached to implement failover on my Tomcat servers.
>
> Is there any way of implementing security by user / password?
>From what I can see here
https://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration
the instructions are pretty clear. You need memcache compiled and
configured with sasl support and thats pretty much it.

Re: Authentication Memcached + Tomcat

Posted by Daniel Mikusa <dm...@pivotal.io>.
On Nov 1, 2014 10:31 AM, "Nilson Uehara" <ni...@gmail.com> wrote:
>
> Dan,
> I'm trying to implement Memcached with SASL authentication
>
> https://code.google.com/p/memcached/wiki/SASLHowto
>
> But I can not get Tomcat to connect to it
>
> Nilson Uehara

Please don't top post. Reply inline or at the bottom. It is the convention
we follow on this list.

As far as your question, I'm struggling to see how this is related to
Tomcat. You need to describe more about what you're doing or we're not
going to be able to help.

Try including relevant config, log output and error messages.

Dan

>
> 2014-10-31 18:18 GMT-02:00 Daniel Mikusa <dm...@pivotal.io>:
>
> > On Fri, Oct 31, 2014 at 3:51 PM, Nilson Uehara <ni...@gmail.com>
> > wrote:
> >
> > > I'm testing Memcached to implement failover on my Tomcat servers.
> > >
> > > Is there any way of implementing security by user / password?
> > >
> >
> > Can you clarify this request?  Are these two separate thoughts, or is
> > memcached somehow related to the security question?
> >
> > If it's just security you're after, then see this section in the docs.
> >
> >   http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html
> >
> > Dan
> >

Re: Authentication Memcached + Tomcat

Posted by Nilson Uehara <ni...@gmail.com>.
Dan,
I'm trying to implement Memcached with SASL authentication

https://code.google.com/p/memcached/wiki/SASLHowto

But I can not get Tomcat to connect to it

Nilson Uehara

2014-10-31 18:18 GMT-02:00 Daniel Mikusa <dm...@pivotal.io>:

> On Fri, Oct 31, 2014 at 3:51 PM, Nilson Uehara <ni...@gmail.com>
> wrote:
>
> > I'm testing Memcached to implement failover on my Tomcat servers.
> >
> > Is there any way of implementing security by user / password?
> >
>
> Can you clarify this request?  Are these two separate thoughts, or is
> memcached somehow related to the security question?
>
> If it's just security you're after, then see this section in the docs.
>
>   http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html
>
> Dan
>

Re: Authentication Memcached + Tomcat

Posted by Daniel Mikusa <dm...@pivotal.io>.
On Fri, Oct 31, 2014 at 3:51 PM, Nilson Uehara <ni...@gmail.com> wrote:

> I'm testing Memcached to implement failover on my Tomcat servers.
>
> Is there any way of implementing security by user / password?
>

Can you clarify this request?  Are these two separate thoughts, or is
memcached somehow related to the security question?

If it's just security you're after, then see this section in the docs.

  http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html

Dan

Re: Authentication Memcached + Tomcat

Posted by André Warnier <aw...@ice-sa.com>.
Nilson Uehara wrote:
> I'm testing Memcached to implement failover on my Tomcat servers.
> 
> Is there any way of implementing security by user / password?
> 
Probably.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org