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 <[email protected]> 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.