Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 20923 invoked from network); 21 Aug 2006 17:45:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2006 17:45:26 -0000 Received: (qmail 70065 invoked by uid 500); 21 Aug 2006 17:45:26 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 69952 invoked by uid 500); 21 Aug 2006 17:45:26 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 69943 invoked by uid 99); 21 Aug 2006 17:45:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Aug 2006 10:45:26 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sepandm@gmail.com designates 64.233.162.203 as permitted sender) Received: from [64.233.162.203] (HELO nz-out-0102.google.com) (64.233.162.203) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Aug 2006 10:45:25 -0700 Received: by nz-out-0102.google.com with SMTP id m22so749262nzf for ; Mon, 21 Aug 2006 10:45:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N+kCfsfJvoa9GdmxBkxg+1T4TpCz+XRaI/yilclsLNFdc+7LuLSSEZqtjf2TmcVbsw32pilkwAQqrsyD83Ry2mS+3ygigdtUADfF1Dg7fzkqoh/oV2LWRIdkSr3WATf5iS8Q53Z1qA2sQlA0xg7eIodJdNXM2Or/sS8CHZ549sY= Received: by 10.65.251.1 with SMTP id d1mr7131969qbs; Mon, 21 Aug 2006 10:45:04 -0700 (PDT) Received: by 10.65.43.16 with HTTP; Mon, 21 Aug 2006 10:45:04 -0700 (PDT) Message-ID: Date: Mon, 21 Aug 2006 10:45:04 -0700 From: "Sepand M" To: activemq-dev@geronimo.apache.org Subject: Re: File based AutorizationMap In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Actually, a text based map would be redundant if there's an XML map already in place. I can't seem to find the XML map anywhere. Could you tell me where it is? Thanks, Sepand On 8/21/06, James Strachan wrote: > Sounds good to me :). We've got the XML based one but by all means > write a simple text based one instead. > > incidentally it might help to reduce the amount of code to reuse a > properties file? e.g. > > queue://foo.bar = group1, group2 > > the left hand side can be turned into an ActiveMQ destination using > this helper method... > > http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/command/ActiveMQDestination.html#createDestination(java.lang.String,%20byte) > > Looking forward to your patches :) > > > On 8/18/06, Sepand M wrote: > > To take it a bit further, I'd like to create something like a > > TextBasedAuthorizationMap and have most of the functionality in there. > > This would allow for different back-ends (like a database) to be > > attached. > > > > On 8/18/06, Sepand M wrote: > > > Hi everyone, > > > > > > I've been looking through the code and have noticed that the only > > > AuthorizationMaps are DefaultAuthorizationMap and > > > SimpleAuthorizationMap. And neither of these allows for text-based > > > configuration of access. > > > > > > I'm wondering if such a thing exists and if I should create one if it doesn't. > > > I'm thinking the config file would be something like: > > > > > > > > > Queue:>::group:admins > > > Queue:USERS>::group:users > > > Topic:>::group:admins > > > ... > > > > > > where each line is an addition to the map and each line is made of: > > > ::: > > >: > > > > > > (the delimitor choice is open for debate) > > > > > > Anyone agree? > > > > > > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ >