jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamathabenarjee <mamatha_jang...@live.com>
Subject Re: Authentication problem
Date Wed, 26 Aug 2009 10:08:10 GMT

im also getting the same problem if u got solution pls forward me

Peter Hormanns wrote:
> 
> Hello,
> 
> this is the first time, I write to this list. I'm running some jspwiki
> 2.2 installations. Now I've started some tests with 2.4.
> 
> My first installation (2.4.3) works fine. I use container managed
> authentication and use jspwiki.policy to restrict editing of all pages
> and viewing of most pages to authenticated users.
> 
> Now I installed a second wiki instance (2.4.6) and can't see the Main
> page. I get the login page, login, but get a redirect to the login page
> again. Same problem with release 2.4.9.
> 
> The user is succesfully logged in, but he is not allowed to see the page
> "Startseite". jspwiki.policy allows to view any page in this wiki
> instance:
> 
> grant signedBy "jspwiki"
>   principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" {
>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission
> "Wiki2:*", "view";
>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission
> "Wiki1:Main*", "view";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "login";
> };
> grant signedBy "jspwiki"
>   principal com.ecyrd.jspwiki.auth.authorize.Role "Authenticated" {
>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
> "edit";
>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
> "modify,rename";
>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission
> "*:Group*", "edit";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "createPages,createGroups";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "editPreferences";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "editProfile";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "login";
> };
> 
> 
> My jspwiki.log tells me:
> 
> 2006-05-25 19:05:25,427 [http-212.42.230.209-8080-Processor1] INFO
> com.ecyrd.jspwiki.WikiSession
> Wiki2:http://wiki2.mydomain.de/wiki/Startseite - Cookie changed to peter
> 2006-05-25 19:05:25,427 [http-212.42.230.209-8080-Processor1] INFO
> SecurityLog Wiki2:http://wiki2.mydomain.de/wiki/Startseite -
> WikiSecurityEvent.LOGIN_AUTHENTICATED
> [source=com.ecyrd.jspwiki.auth.AuthenticationManager@199f9eb,
> princpal=org.apache.catalina.users.MemoryUser peter, target=null]
> 2006-05-25 19:05:25,441 [http-212.42.230.209-8080-Processor1] INFO
> SecurityLog Wiki2:http://wiki2.mydomain.de/wiki/Startseite -
> WikiSecurityEvent.ACCESS_DENIED
> [source=com.ecyrd.jspwiki.auth.AuthorizationManager@b3951d,
> princpal=org.apache.catalina.users.MemoryUser
> peter,target=("com.ecyrd.jspwiki.auth.permissions.PagePermission","Wiki2:Startseite","view")]
> 2006-05-25 19:05:25,442 [http-212.42.230.209-8080-Processor1] INFO
> com.ecyrd.jspwiki.WikiContext
> Wiki2:http://wiki2.mydomain.de/wiki/Startseite - User peter has no
> access - forbidden
> (permission=("com.ecyrd.jspwiki.auth.permissions.PagePermission","Wiki2:Startseite","view"))
> 2006-05-25 19:05:25,511 [http-212.42.230.209-8080-Processor3] INFO
> JSPWiki Wiki2:http://wiki2.mydomain.de/Login.jsp - Successfully
> authenticated user peter (container auth)
> 2006-05-25 19:05:25,512 [http-212.42.230.209-8080-Processor3] INFO
> JSPWiki Wiki2:http://wiki2.mydomain.de/Login.jsp - Redirecting user to
> http://wiki2.mydomain.de/wiki/Startseite
> 2006-05-25 19:05:25,580 [http-212.42.230.209-8080-Processor1] INFO
> com.ecyrd.jspwiki.WikiServlet
> Wiki2:http://wiki2.mydomain.de/wiki/Startseite - Request for page:
> Startseite
> 2006-05-25 19:05:25,583 [http-212.42.230.209-8080-Processor1] INFO
> SecurityLog Wiki2:http://wiki2.mydomain.de/wiki/Startseite -
> WikiSecurityEvent.ACCESS_DENIED
> [source=com.ecyrd.jspwiki.auth.AuthorizationManager@b3951d,
> princpal=org.apache.catalina.users.MemoryUser
> peter,target=("com.ecyrd.jspwiki.auth.permissions.PagePermission","Wiki2:Startseite","view")]
> 
> 
> Is there a bug in the authentication-code?
> Is my jspwiki.policy wrong?
> 
> Regards, Peter Hormanns
> _______________________________________________
> Jspwiki-users mailing list
> Jspwiki-users@ecyrd.com
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Authentication-problem-tp4564565p25149940.html
Sent from the JspWiki - User mailing list archive at Nabble.com.


Mime
View raw message