[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-05-22 Thread asylumx
I'm sorry for not posting this sooner - Here is how I solved this problem without writing my own authentication: First, make sure to set up login-config.xml in /server/default/conf. Here is an example | | | | | Guest | ldap:/

[JBoss-user] [Security & JAAS/JBoss] - Re: EJB Client does not provide SECURITY_PRINCIPAL correctly

2006-04-03 Thread asylumx
Thank you, the FAQ has solved my problem I appreciate the time you've given me! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934457#3934457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934457

[JBoss-user] [Security & JAAS/JBoss] - Re: EJB Client does not provide SECURITY_PRINCIPAL correctly

2006-04-03 Thread asylumx
I am having a similar problem -- My client sets the properties almost identically to what you have shown but for some reason once I'm in the EJB tier, Jboss is telling my session bean that the anonymous "guest" user is signed in ( context.getCallerPrincipal() ). I've been scouring the web all m

[JBoss-user] [Security & JAAS/JBoss] - Re: IllegalStateException in EJB Tier on ctx.getCallerPrinci

2006-03-08 Thread asylumx
Just found this http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855335#3855335 I have been told this in other places too -- that I need to set up a security context -- but I'm really not sure how. I'm authenticating against Active Directory, and I have a realm set up in my server.xml

[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-03-07 Thread asylumx
After doing some research, I am beginning to believe that this should work the way I have described. Here is my evidence: In section 4.5.2 of the EJB 3.0 spec (EJBCore) the operations allowed in methods of a stateless session bean are defined, and the IllegalStateException is to be thrown if t

[JBoss-user] [Security & JAAS/JBoss] - IllegalStateException in EJB Tier on ctx.getCallerPrincipal

2006-03-07 Thread asylumx
Hello, I have posted a similar question on the ejb3 forum but the conversation there has lead me to believe this is a better place to address it. Here is the situation: I have a struts/EJB3 application. The user logs in through an HTML Form which is backed by j_security_check. The user is the

[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-03-07 Thread asylumx
Thanks, this helps a bit. It doesn't quite solve my problem though -- at this point in the application, the user is already logged in, or they are not going to log in. We use form authentication through j_security_check. What my session bean is trying to do is to get ahold of the user that i

[JBoss-user] [JNDI/Naming/Network] - Re: Authenticating to Active Directory with LdapExtLoginModu

2006-03-06 Thread asylumx
Not sure if you ever got a response to this but it looks like your BindDN is actually mapped to a userPrincipalName. You probably need to map it to the actual DN. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928283#3928283 Reply to the post : http://www.

[JBoss-user] [EJB 3.0] - Re: I can NOT import the interface

2006-03-06 Thread asylumx
Yes, @Inject went away in favor of @EJB, @Resource, etc... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928178#3928178 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928178 --

[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-03-06 Thread asylumx
Just a bump, does anyone have a link to a tutorial, trail or otherwise informative article explaining how to set up the above mentioned LoginContext? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928177#3928177 Reply to the post : http://www.jboss.com/index

[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-03-02 Thread asylumx
Ok, well, are there any examples of how to implement this for JBoss? I really appreciate the help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927455#3927455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927455

[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-03-01 Thread asylumx
I am confused as to how to specify this. I'd prefer to use something non-proprietary so that the app can be dropped on other servers if it needs to be, so JAAS is probably the better solution for me, but I'll take what I can get for now! Thank you for explaining the exception, hopefully I can

[JBoss-user] [EJB 3.0] - IllegalStateException in BaseSessionContext.getCallerPrincip

2006-03-01 Thread asylumx
Hello, I am working on migrating an application from EJB2.1 on Weblogic to EJB3 spec (JBoss) and I have run into a roadblock. In my security SLSB I have a call to ctx.getCallerPrincipal() which throws an IllegalStateException. javax.ejb.EJBException: java.lang.IllegalStateException