Bugs item #1040200, was opened at 2004-10-04 13:59
Message generated for change (Comment added) made by rickkw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1040200&group_id=22866

Category: JBossWeb
Group: v4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: bobby.abraham (ba68)
Assigned to: Nobody/Anonymous (nobody)
Summary:  Authentication exception, principal=null initially on login

Initial Comment:
The first ejb call after login gives Authentication
exception.

Subsequent refreshes of the page are successful.

This issue has been discussed in 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=54714

I have found a work around and this is to add 
<module-option name= 
"unauthenticatedIdentity">unautheduser</module-option>
to my application-policy

I am attaching a trace of org.jboss.security. 

This shows an initial login followed by a 5 minute
period followed by a page refresh.

Running
Jboss 4.0.0 with subsequent tomcat patch.


----------------------------------------------------------------------

Comment By: Rick Wong (rickkw)
Date: 2004-10-06 21:54

Message:
Logged In: YES 
user_id=906123

Hi,

I read about this bug and I have a similar problem with
JBoss 4.0.  I narrowed it down to a very simple test case
with a couple of jsp pages.  

It looks like that with FORM based authentication,
immediately after the first login, the authenticated Subject
is missing.  Reloading or subsequent request will get the
subject as expected.  In this test case, I enabled
SubjectAttributeName in jbossweb.  In my own private code, a
call to SecurityAssociation.getSubject() returns null in a
similar manner.

I am attaching the test case application as bug1040200.war.

Thanks,
--
Rick

----------------------------------------------------------------------

Comment By: Scott M Stark (starksm)
Date: 2004-10-06 01:49

Message:
Logged In: YES 
user_id=175228

I'm seeing that there request username is not found in the
db prior to the ejb exception:

javax.security.auth.login.FailedLoginException: No matching
username found in Principals

Can you put together a sample ear that demonstrates the
login action here?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1040200&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to