[JBoss-user] [Security JAAS/JBoss] - Getting the Security-Domain

2004-02-24 Thread anbenham
Hi, how is it possible to get the security-Domain-name in which an application is running at runtime? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3822663#3822663 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3822663

[JBoss-user] [Security JAAS/JBoss] - Re: Getting the Security-Domain

2004-02-24 Thread anbenham
Hi, its not really a smart way. Thanx anyway. Is it possible to get the instance of the securitymanager. it has a mthod named getSecurityDomain? Yours anis View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3822672#3822672 Reply to the post :

[JBoss-user] [Security JAAS/JBoss] - How to get my thrown Exceptions in my error.jsp

2004-02-26 Thread anbenham
Hi, this question was published often, but I couldnt find any answer to it. When the authentication fails for some reason, my LoginModule throws an exception with the error message. How to get this exception in my error page? Should I have to throw another Exception as LoginException? Best

[JBoss-user] [Security JAAS/JBoss] - Re: Passing login failure cause to the client side

2004-12-13 Thread anbenham
I found some infos in this thread: http://www.jboss.org/index.html?module=bbop=viewtopict=57240 but unfortunately not really helpfull. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3858327#3858327 Reply to the post :

[JBoss-user] [Security JAAS/JBoss] - Passing login failure cause to the client side

2004-12-13 Thread anbenham
Hi, I have tried to search for a solution in the forums but in vain. So I have a JAAS based j2ee application with form based authentication. Now I have the problem that I want to tell the user why his authentication has failed: wrong password, technical problem, password timed out and so on ..

[JBoss-user] [Security JAAS/JBoss] - Re: Form-based Login question

2004-05-07 Thread anbenham
I think agood way to do this ist to use a Filter, which would check if the initiatialization has been done . If yes redirect to the init-servlet, else call the protected source See http://java.sun.com/webservices/docs/1.3/tutorial/doc/Servlets8.html#wp64572 View the original post :

[JBoss-user] [Security JAAS/JBoss] - Re: Very Very Urgent !! Multiple User

2004-05-07 Thread anbenham
Hi, Here are my details: RuntimeEnvironment: JBoss 3.2.3 with Tomcat 4.1 Configuration: 1-Single Sign On in Tomcat enabled 2-I Use my own Implementation for the LoginModule 3-I use my own Implementation of the Principal Implementation: LoginModule | public boolean commit() throws

[JBoss-user] [Security JAAS/JBoss] - Re: Form-based Login question

2004-05-07 Thread anbenham
Hi, Here is an example: | import java.io.IOException; | | import javax.servlet.*; | import javax.servlet.http.*; | | | public class InitFilter implements Filter { | | private FilterConfig config; | | /**Init. | * @see

[JBoss-user] [Security JAAS/JBoss] - Re: Very Very Urgent !! Multiple User Problem

2004-05-14 Thread anbenham
Scott please would you reply to this question? I still have this problem. Sometimes when many users work simultaneously, one user gets the session of the other. see my configuratioon and implementation over here. My logout implementation:

[JBoss-user] [Security JAAS/JBoss] - Re: Very Very Urgent !! Multiple User

2004-05-18 Thread anbenham
Hi, I think I found a reason for my problem. I have noticed that when I try to call a secure page in my App SecurityAssosciation.getPrincipal() sometimes returns a Principal that is logged in another session/thread. I have added a test output in the login page to see the contents of

[JBoss-user] [Security JAAS/JBoss] - Re: How to get the Authentication Error messages.

2004-05-24 Thread anbenham
if you are using j_security_check, i dont think there is a possibility to get the errors in your logonerror-page. i have searched for a solution , then i gave it up. The authentication occurs in the loginmodule. from there you can throw a loginexpetion, but this exception is not propagated from

[JBoss-user] [Security JAAS/JBoss] - Re: How to display various error messages in JSP when the Us

2004-05-24 Thread anbenham
Hi, see http://jboss.org/index.html?module=bbop=viewtopict=50060 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836113#3836113 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836113

[JBoss-user] [Security JAAS/JBoss] - Re: Very Very Urgent !! Multiple User

2004-05-28 Thread anbenham
OK I have reprted a bug. see http://sourceforge.net/tracker/index.php?func=detailaid=962223group_id=22866atid=376685. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836654#3836654 Reply to the post :

[JBoss-user] [Security JAAS/JBoss] - Re: How to logout a user?

2004-05-28 Thread anbenham
what do you mean with deleting users from the database? Do I have to delete the proncipals from the subject? If yes is it safe to get the subject using SecurityAssociation.getSubject()? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836656#3836656 Reply to

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-28 Thread anbenham
Hi, I would like to know too if this is the right way to do that.# I call that method just after the session.is invalidated ( I use a session listner). Is it OK like that? Do I have to empty the subject? Is it garateed that the user is logged out in the ejb-container AND the web-container?

[JBoss-user] [Security JAAS/JBoss] - Block / Disable user using a preconfigured Identity

2004-04-19 Thread anbenham
Hi, I am developping a JAAS based J2ee Application. I want to block a user account, if the user gives the wrong password 3 succesive times. The problem is how to connect to the database, to set the user blocked? Which proncipal shall I use? Where to define this principal? I have read in the

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-13 Thread anbenham
Hi, session .invalidate() is not sufficient under JBoss. I have written a logout method that empties the subject from its principals then flushes the aiuthentication cache of JBoss. Are there any other methods? View the original post :

[JBoss-user] [Security JAAS/JBoss] - Re: Auto login from other application

2004-05-13 Thread anbenham
if both applications use the same principals/roles, you could use the single sign on feature of your web container. If you are using tomcat in JBoss sess the following page: http://jboss.org/wiki/Wiki.jsp?page=SingleSignOn yours anis View the original post :

[JBoss-user] [Security JAAS/JBoss] - Disabling User in a JAAS-based J2EE application

2004-05-13 Thread anbenham
Hi, I have a working JAAS-based J2EE application. the login works using the j_security_check servlet. I want now to disable a user account if the user gives 3 times a wrong password. The problem is how/where to memorize the information about each login try? the first location where I get

[JBoss-user] [Security JAAS/JBoss] - Re: logout when having used j_security_check

2004-05-14 Thread anbenham
Hi here is the code. | public void logout() throws Exception { | if (getSubject() == null) | throw new Exception(); | Set principals = getSubject().getPrincipals(); | if (principals.size() 0) { | Iterator i

[JBoss-user] [Security JAAS/JBoss] - Re: Security context propagation from web client to ejb

2004-05-14 Thread anbenham
I have the same problem too, using JBoss 3.2.3 ands Tomcat. It would be very heplfull for our web-developper to develop only with tomcat, and just test with Tomcat/JBoss. Any tips about that? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3834984#3834984

[JBoss-user] [Security JAAS/JBoss] - Re: Multiple Login in multiple Applications

2004-05-05 Thread anbenham
add to jboss-service.xml under jboss-3.2.3\server\default\deploy\jbossweb-tomcat41.sar\META-INF View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3833804#3833804 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833804

[JBoss-user] [Security JAAS/JBoss] - Re: Multiple Login in multiple Applications

2004-05-05 Thread anbenham
I meant add the following Valve className=org.jboss.web.tomcat.tc4.authenticator.SingleSignOn debug=0 / to that file View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3833805#3833805 Reply to the post :

[JBoss-user] [Security JAAS/JBoss] - Very Very Urgent !! Multiple User

2004-05-05 Thread anbenham
Hi, I have a strange behavior in my application If a user A tries to log on to the application, and user B is already logged on, sometimes, the user A is logged as B. That is request.getUserPrincipal() gives the principal of B. Whats wrong View the original post :

[JBoss-user] [Security JAAS/JBoss] - Re: Very Very Urgent !! Multiple User

2004-05-06 Thread anbenham
I am using 3.2.3. How to kkep track of appserver sessions? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3833864#3833864 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833864