Thanks Charles and John, you were both a great help!!! I got it working
now.
Cheers
Joe
-Original Message-
From: John McPeek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 6:50 PM
To: Tomcat Users List
Subject: Re: Custom JAAS LoginModule not authorizing GenericPrincipal
Hi Joe,
This is my commit(). I think you are missing the User Principle.
When you say request.getUserPrincipal(), that
token (1) I am putting in first comes back. The Principles you add
after that are the roles you want to test against.
This stuff drove me nuts when I was setting it up. Hope
, Joe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 1:49 PM
To: users@tomcat.apache.org
Subject: Custom JAAS LoginModule not authorizing GenericPrincipal roles
I'm trying to use my own LoginModule. Its is successfully authenticating
my username but the problem is when its try
I'm trying to use my own LoginModule. Its is successfully authenticating
my username but the problem is when its trying to authorize my roles.
Tried:
1. Here is the code snippet from my LoginModule commit method.
Code:
List roles = new ArrayList();
roles.add( "tomcat_auth_role" );
Gener