Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@minotaur.apache.org Received: (qmail 24930 invoked from network); 17 Aug 2009 08:35:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Aug 2009 08:35:06 -0000 Received: (qmail 94468 invoked by uid 500); 17 Aug 2009 08:35:12 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 94450 invoked by uid 500); 17 Aug 2009 08:35:12 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 94440 invoked by uid 99); 17 Aug 2009 08:35:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 08:35:12 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.111.4.25] (HELO out1.smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 08:34:59 +0000 Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id A83FC577A2 for ; Mon, 17 Aug 2009 04:34:38 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 17 Aug 2009 04:34:38 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=messagingengine.com; h=message-id:from:to:references:subject:date:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=9ttrlUQRDhp/Sb4eMrxdk3MJ4nw=; b=n71zvh5Qj9PdT94mpFGjfTHik0Afgy9aT1mTLLs7dBEjYE5D8w/rIRpvTcL68Zr9M57GR6Jd5kNYb8pdimrZNMI1zq3HnjG8xU3TBKMvXpulXvgCn6GPFkDSSazIbs4QIPEUFKXshcoPdTweHCRD546PT0utVD2R3Ff6jhojpv8= X-Sasl-enc: 3GaqD6TjK0JULDEe7POCuZEGbGEiYhyk7tZV7AVH9QNC 1250498078 Received: from GEORGE (host217-43-86-205.range217-43.btcentralplus.com [217.43.86.205]) by mail.messagingengine.com (Postfix) with ESMTPA id 2F9D4218E7 for ; Mon, 17 Aug 2009 04:34:38 -0400 (EDT) Message-ID: <142AA3CDA77F4DF7B5B7D04ADD25A81E@GEORGE> From: "James Cowan" To: References: <5053E7864812418BAE39B4194E3FE6AA@GEORGE> <4A890B2A.9080407@gmail.com> Subject: Re: login but not register Date: Mon, 17 Aug 2009 09:34:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org Hi Mike Thanks for the reply. I found the answer. You have to comment out policies using // not /* */. grant principal com.ecyrd.jspwiki.auth.authorize.Role "All" { //permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*", "none"; //permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editPreferences"; //permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editProfile"; permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "login"; }; works. grant principal com.ecyrd.jspwiki.auth.authorize.Role "All" { /* permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*", "none"; permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editPreferences"; permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editProfile"; */ permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "login"; }; does not work. James ----- Original Message ----- From: "Mike Morris" To: Sent: Monday, August 17, 2009 8:47 AM Subject: Re: login but not register > James Cowan wrote: > >> How do I set up a policy that allows login but not registration? >> >> I have commented out All and Anonymous permissions as below but this >> still allows registration. > > What I did for the same result was hack the login template and simply > removed the "register" link. Not as secure, I'll be the first to say, > but so far has worked fine for me. > > -- > mike morris :: mikro2nd (at) gmail (dot) com > > http://mikro2nd.net/ > http://mikro2nd.net/blog/planb/ > http://mikro2nd.net/blog/mike/ > > This email is [X]bloggable [ ]ask-first [ ]private > -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.58/2308 - Release Date: 08/16/09 21:46:00