Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4939BD87A for ; Thu, 28 Jun 2012 08:08:53 +0000 (UTC) Received: (qmail 1216 invoked by uid 500); 28 Jun 2012 08:08:49 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 1051 invoked by uid 500); 28 Jun 2012 08:08:49 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 1027 invoked by uid 99); 28 Jun 2012 08:08:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 08:08:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown -allinclude:_spf.google.com (athena.apache.org: encountered unrecognized mechanism during SPF processing of domain of komaromi.zoltan@horticosoft.hu) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 08:08:42 +0000 Received: by pbbro12 with SMTP id ro12so3248217pbb.18 for ; Thu, 28 Jun 2012 01:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=horticosoft.hu; s=google; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=sNIaIBWOAIWcoTqBW1217nN6tQVCLWAL6/iV+q/Hwsk=; b=CzQ5hr8FG9dg0b/+jX2XopfJmCj2kLiXTY2/ow0sxQfm5ybt8DUeAL40W239PSFSR3 7+ovOzGgQPq84gj70Uc7C494Py0QEPwqKu0KoXCgCXK0HLYWIG7pirNrnVhgcjDxd5lI RwkRDyRCSfnDxW1soFsWzDzoZwK3FFjL2Iuik= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding :x-gm-message-state; bh=sNIaIBWOAIWcoTqBW1217nN6tQVCLWAL6/iV+q/Hwsk=; b=Pe2WTJEUIHHfrqhoWjPauAdNZcvHiWwWItjYwtb+4KRL61Jq3YVamOgOrj5mto7mBn kTvufXVyi07ka0dNvzKZPFMM89PCN+zBQ8N4X963wmrDwmxNBOZc58phVMFCGXxAgJcS wisid7yr9os4ziOe6SBWa4AGb/1Po16ULirwftJI7ElojrysKDEkQWGlpyPGAPTh3A4G ZLtaJT+j3O2AxJ8y02Z9hjPpJZ1O85JIQceXwLoDzRlvgCo3aF48qfTxrZezbE+rEQq+ ELJv09exHJIg9UOkqYCCquyOlD/pxQRDbka11EiXc78VOr1+Bor4rO02AC+EQy032cI/ gohA== Received: by 10.68.225.9 with SMTP id rg9mr4265519pbc.137.1340870901887; Thu, 28 Jun 2012 01:08:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.82.10 with HTTP; Thu, 28 Jun 2012 01:08:01 -0700 (PDT) X-Originating-IP: [91.220.29.29] In-Reply-To: References: From: =?UTF-8?B?S29tw6Fyb21pLCBab2x0w6Fu?= Date: Thu, 28 Jun 2012 10:08:01 +0200 Message-ID: Subject: Re: tomcat security authenticator To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlxQxPTRFzqxvgr/ItuJoSD6DLxU1FQoZ8ok3wjYPCIIM13xTmu+4Zmt3fgK3W8gzrGIyoc X-Virus-Checked: Checked by ClamAV on apache.org 1. Why not a Realm? Because the authentication depends on session attribute, and I want to bypass the form if user is logged in. So is this correct? The tomcat's doc says, that "Java class name of the implementation to use. This MUST be set to org.apache.catalina.authenticator.FormAuthenticator." Tnaks for help. 2012/6/28 Konstantin Kolinko : > 2012/6/28 Kom=C3=A1romi, Zolt=C3=A1n : >> Hi, >> >> I need to use custom authenticator, because a part of application is >> using container authentication, and unfortunately the usersernames in >> realm conflicts with usernames in application database. :( >> >> So I need, that if anibody is logged in to my application, then the >> authenticator automatically authorizes when needed. >> >> I think, if I replace the FormAuthenticator with an descendant, it'll >> solve the problem. >> >> To extend FormAuthenticator is simple, but how can I make Tomcat to use = it? >> > > 1) Why not a Realm? > 2) An Authenticator is a Valve and is configured like any other valve. > If one is present, Tomcat will not configure its own. > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org