Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 12919 invoked from network); 7 Mar 2005 17:53:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Mar 2005 17:53:13 -0000 Received: (qmail 4493 invoked by uid 500); 7 Mar 2005 17:53:13 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 4479 invoked by uid 99); 7 Mar 2005 17:53:12 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 10.21.96-84.rev.gaoland.net (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 07 Mar 2005 09:53:12 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id D82361BADD for ; Mon, 7 Mar 2005 18:45:17 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11498-04 for ; Mon, 7 Mar 2005 18:45:15 +0100 (CET) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id CD3B01BADC for ; Mon, 7 Mar 2005 18:45:14 +0100 (CET) Message-ID: <422C94FF.9040203@apache.org> Date: Mon, 07 Mar 2005 18:53:03 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: JAAS support References: <90a8d1c005022509157fc6f524@mail.gmail.com> <7445b8d4a571abeed9c187658246523a@mac.com> <90a8d1c005022602197792f600@mail.gmail.com> <42283257.7050400@capgemini.fr> <90a8d1c005030402403c423950@mail.gmail.com> <422C8267.4080904@yahoo.fr> In-Reply-To: <422C8267.4080904@yahoo.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bertrand LEGA wrote: > This is the point. I tried to use the following code to connect to the > repository : > > (1) > > RepositoryConfig config = RepositoryConfig.create( > configFilePath, repositoryPath ) ; > RepositoryImpl repository = RepositoryImpl.create(config) ; > Session session = null ; > session = repository.login( ); > > I didn't manage to get it worked. I'm not very used to jackrabbit for > the moment, so I'm sure that I must have done something wrong. > The truth is that the following code does work : > > (2) > > RepositoryConfig config = RepositoryConfig.create( > configFilePath, repositoryPath ) ; > RepositoryImpl repository = RepositoryImpl.create(config) ; > Session session = null ; > System.setProperty("java.security.auth.login.config", > "c:\\temp\\jaas.config" ) ; > session = repository.login( ); > > So I was under the impression that the support of JAAS was breaking > the compatibility with older code. > Could you confirm that the code in (1) still works fine ? No, it currently doesn't work. But having pluggable authentication is planned and should come soon. We're waiting for Jukka to finish the ongoing configuration refactoring before adding this new feature. BTW, if nobody objects, I volunteer for this change to exercise my Jackrabbit committer status :-) Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }