jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TruptiP <trupti....@gmail.com>
Subject Re: login but not register
Date Mon, 17 Aug 2009 11:29:22 GMT

Hi Andrew,

Thanks for the info.

Actually I misunderstood question. I thought he just want to remove
"Register New User" Tab from login page for normal users and he want to keep
it only for Admin. 

Now picture is clear. Thanks again for your update.


Thanks and Regards,
Trupti


Andrew Jaquith-4 wrote:
> 
> Trupti and all--
> 
> Removing or commenting out the "editProfile" WikiPermision is the  
> correct way to remove the ability to self-register.
> 
> Andrew
> 
> On Aug 17, 2009, at 4:41, TruptiP <trupti.p27@gmail.com> wrote:
> 
>>
>> Hi,
>>
>> Permissions doesn't deal with Login and registration page.
>>
>> You can just comment out Register link from below JSP page
>>              LoginContent.jsp
>> and use web container authentication.
>>
>> Allowing Register link only to Admin is not possible. I don't think  
>> such
>> facility is available in Jspwiki.
>>
>> Thanks,
>> Trupti
>>
>> James Cowan-3 wrote:
>>>
>>>
>>> Hi
>>>
>>> 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.
>>>
>>> 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";
>>> };
>>>
>>>
>>> // The second policy block is extremely loose, and unsuited for
>>> public-facing wikis.
>>> // Anonymous users are allowed to create, edit and comment on all  
>>> pages.
>>> //
>>> // Note: For Internet-facing wikis, you are strongly advised to  
>>> remove the
>>> // lines containing the "modify" and "createPages" permissions;  
>>> this will
>>> make
>>> // the wiki read-only for anonymous users.
>>>
>>> // Note that "modify" implies *both* "edit" and "upload", so if you  
>>> wish
>>> to
>>> // allow editing only, then replace "modify" with "edit".
>>>
>>> grant principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" {
>>> /*
>>>    permission com.ecyrd.jspwiki.auth.permissions.PagePermission  
>>> "*:*",
>>> "none";
>>>    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
>>> "none";
>>> */
>>> };
>>>
>>>
>>>
>>> James
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/login-but-not-register-tp24972998p25003125.html
>> Sent from the JspWiki - User mailing list archive at Nabble.com.
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/login-but-not-register-tp24972998p25005123.html
Sent from the JspWiki - User mailing list archive at Nabble.com.


Mime
View raw message