[jboss-user] [Security & JAAS/JBoss] - Re: JAAS multi-threaded=true causing SecurityException princ

2006-08-15 Thread j2ee_junkie
I was trying to get you to do some research so you understand your situation better and then you could see what you were doing wrong. In any case... Your problem is that ClientLoginModule only passes security data to JBoss invocation within the current thread. However, Tomcat uses thread pools

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Explicit document source root using context/docbase

2006-08-11 Thread j2ee_junkie
I have tried to get this to work too, but only been able to get static content to be made available. Sorry. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964669#3964669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&m

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Explicit document source root using context/docbase

2006-08-11 Thread j2ee_junkie
If you don't want my help, I'll be happy to move on. In past versions of Tomcat, context elements were added to the server.xml config file. Now that is discouraged in favor of web-app specific context.xml files. However, in your case, I think you should add your context configuration inside T

[jboss-user] [Security & JAAS/JBoss] - Re: Problems with my security proxy

2006-08-11 Thread j2ee_junkie
fosodquez, The ClientLoginModule does not have any authentication logic, so if that is your only login module, then you are not authenticating. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964627#3964627 Reply to the post : http://www.jboss.com

[jboss-user] [Security & JAAS/JBoss] - Re: JAAS multi-threaded=true causing SecurityException princ

2006-08-11 Thread j2ee_junkie
sdegenaar, anonymous wrote : We have setup a seperate tomcat installation How does Tomcat's security system interface with JBoss' in your environment? Also you may want to read security chapter of server guide at http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html cgriffith Vie

[jboss-user] [Security & JAAS/JBoss] - Re: JACC on the fly method permission changes not reflecting

2006-08-11 Thread j2ee_junkie
I had started to digest the JACC spec and how JBoss implements it a few months back, but have not looked at it recently. So this is pure speculation on what I think I know. The point I was trying to make is that you have been modifying the PolicyContext specified by contextID "kr.jar". That

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Explicit document source root using context/docbase

2006-08-11 Thread j2ee_junkie
check out http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingContextDotXML cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964618#3964618 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964618 __

[jboss-user] [Security & JAAS/JBoss] - Re: JACC on the fly method permission changes not reflecting

2006-08-09 Thread j2ee_junkie
P, What does JBoss use as contextID? I am wondering if you need to use "ear-name/bean-jar-name". cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964067#3964067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p

[jboss-user] [Security & JAAS/JBoss] - Re: Check access to bean methods from bean

2006-08-09 Thread j2ee_junkie
matt10, I would say this is an interesting use case. The problem with making client unaware of buisness components is that you then have to come up with ways to configure your client to do stuff with abstract notions of business objects. In that case what you have done with annotation inspect

[jboss-user] [Security & JAAS/JBoss] - Re: JACC on the fly method permission changes not reflecting

2006-08-09 Thread j2ee_junkie
P, Can you show us how you are attempting... anonymous wrote : | I try to change the role based ejb3 method permission on the fly | thanks cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964037#3964037 Reply to the post : http://www.jboss.com

[jboss-user] [Security & JAAS/JBoss] - Re: Not able to authenticate against ActiveDirectory using L

2006-08-09 Thread j2ee_junkie
I am no LDAP expert, but it looks like the LDAPLM is not providing correct credentials when connecting to AD. Thus authentication of user is not even attempted because connection to server is not authenticated. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[jboss-user] [Security & JAAS/JBoss] - Re: retry fails with form based authentication woth custom l

2006-08-09 Thread j2ee_junkie
ppradhan, One thing that is not completely clear from your description is wether or not the user has actually authenticated to servlet container. Just because the login form is returned does not neccessarily mean authentication did not happen. To be more specific... Consider the case when a

[jboss-user] [Security & JAAS/JBoss] - Re: Check access to bean methods from bean

2006-08-07 Thread j2ee_junkie
matt10, Wouldn't it be better if your fat client enabled/disabled menu items based on the roles the user has rather than the methods they can call. I mean really this is the same thing, only you do not have to go get method permissions. cgriffith View the original post : http://www.jboss.com

[jboss-user] [Security & JAAS/JBoss] - Re: SSL With jboss-4.0.3SP1

2006-08-04 Thread j2ee_junkie
I think this may help. http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html#d0e20970 cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963267#3963267 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Configure bundled Tomcat Manager

2006-08-04 Thread j2ee_junkie
dheelus, With Tomcat bundled with JBoss, you deploy to JBoss not Tomcat. Then JBoss does the deployment into Tomcat container. So if your ant script just copies your war/ear int $YOUR_SERVER/deploy that's all she wrote. cgriffith View the original post : http://www.jboss.com/index.html?modu

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Changing the name of the JSessionID cookie?

2006-08-04 Thread j2ee_junkie
Jason, >From what I can tell this can not be configured. I did find this that backs >up my findings. >http://mail-archives.apache.org/mod_mbox/tomcat-users/200407.mbox/[EMAIL >PROTECTED] cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963146#3963

[jboss-user] [Security & JAAS/JBoss] - Re: JDBC Realm

2006-08-03 Thread j2ee_junkie
bjornn, You are making more work for yourself. I already told you that your query is not correct and pointed you to documentation on the LM. If the info you posted about your database is correct, and assuming your table names are USERS and ROLES, your queries should be as so... | ... |

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Eliminate multiple copies of Struts libraries?

2006-08-03 Thread j2ee_junkie
javacodemonkey, Even the Struts folks say this is not a good idea. There are static memebers that would cause strange things to happen if shared accoss apps. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962956#3962956 Reply to the post : http:

[jboss-user] [Security & JAAS/JBoss] - Re: why it is possible to login with old password in JAAS(Da

2006-08-03 Thread j2ee_junkie
Baskar, After a password is changed, the user must be logged out of application (i.e. JBossSX cache flush). If your UI is web-based, this usually can occure by invalidating the web session. Is this step happening? You can verify what principals are in the cache via the jmx-console (mbean: j

[jboss-user] [Security & JAAS/JBoss] - Re: Two questions about DatabaseServerLoginModule

2006-08-03 Thread j2ee_junkie
EricYP, 1.) javax.servlet.HttpServletRequest.getUserPrinicpal() 2.)AFAIK, as long as your query returns the password in the first column, and only accepts one paramter (the username), you are good to go. I am not sure why you posted your login form. cgriffith View the original post : http://

[jboss-user] [Security & JAAS/JBoss] - Re: JDBC Realm

2006-08-02 Thread j2ee_junkie
bjornn, Your problem then is your query. As I already mentioned, the sql configured in your security-domain must be specific for you database. For more details about the DatabaseServerLoginModule see http://wiki.jboss.org/wiki/Wiki.jsp?page=DatabaseServerLoginModule. cgriffith View the orig

[jboss-user] [Security & JAAS/JBoss] - Re: JDBC Realm

2006-08-02 Thread j2ee_junkie
bjornn, So far all your config looks good. The only thing that looks odd is your queries. These must be made specific to your database. Specifically, your query... | SELECT LOGIN, 'Roles' FROM ROLES WHERE LOGIN=? | just returns the login name. Is this correct? Other than checking th

[jboss-user] [Security & JAAS/JBoss] - Re: Why are some security domains visible in JNDIView and ot

2006-08-02 Thread j2ee_junkie
fhh, I believe that the login-config.xml file is loaded by the server, but actual SecurityDomain/SecurityManagers are not instantiated and bound in JNDI until they are needed. An example of when one would be needed is when an application specifically says, "I am using security domain x" at dep

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Automatic redirect to primary domain name?

2006-08-02 Thread j2ee_junkie
Frank, How many/what type of deployable components does your site/web-app have. More info about the basic organization of you applciation/site please. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962432#3962432 Reply to the post : http://www.jbo

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JBoss 4.0.2 and JDK 5.0

2006-08-02 Thread j2ee_junkie
sasi2103, I think this is what you are looking for. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=80296 cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962425#3962425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [Security & JAAS/JBoss] - Re: Custom principal in Web application

2006-07-28 Thread j2ee_junkie
Dear gang, This was an interesting hunt for me as I have not used client certs before. I think you have two options. 1.) Follow JBossSX Subject usage package in your custom login module and add a java.security.acl.Group with name "CallerPrincipal" to the authenticated Subject's principal set.

[jboss-user] [Security & JAAS/JBoss] - Re: Custom principal in Web application

2006-07-27 Thread j2ee_junkie
Bogdan, Please give details about which login modules you are using. If you are using a custom login module, please show how you set your custom principal. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961368#3961368 Reply to the post : http://

[jboss-user] [Security & JAAS/JBoss] - Re: Security Roles On EJB3 Remote Interface Only

2006-07-24 Thread j2ee_junkie
adogg, I am sure you can not add security role restrictions on a non-EJB3 class. Since the interface is not either a stateless/statefull session bean or a message driven bean, it is not a true EJB3 object. As such you can not add security restrictions. I would suggest you place the restricti

[jboss-user] [Security & JAAS/JBoss] - Re: Problem accessing EJB unchecked method from a servlet (w

2006-07-20 Thread j2ee_junkie
Victor, I just want to further point out that the fine folks at jboss labs has a wonder EJB3.0 trial. I have not found any other info on the net to be quite so usefull. You can get to it at http://trailblazer.demo.jboss.com/EJB3Trail/ enjoy, cgriffith View the original post : http://www.jbos

[jboss-user] [Security & JAAS/JBoss] - Re: Problem accessing EJB unchecked method from a servlet (w

2006-07-19 Thread j2ee_junkie
Sorry, #3 is poppy-cock. I am still learning EJB3.0 spec and Jboss extensions. But I think it can be done with multiple interfaces. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959314#3959314 Reply to the post : http://www.jboss.com/index.html?module=bb&

[jboss-user] [Security & JAAS/JBoss] - Re: Problem accessing EJB unchecked method from a servlet (w

2006-07-19 Thread j2ee_junkie
Victor, There are many options you can try. 1.) combine the "other" and "db_store" domains into one and use for webapp#1, webapp#2, and ejb. Thus if a user is not authenticated by DBSLM, the URLM will. 2.) Use a run-as role with the servlet 3.) Use EJB3.0. The ability to assign a security do

[jboss-user] [Security & JAAS/JBoss] - Re: Problem accessing EJB unchecked method from a servlet (w

2006-07-19 Thread j2ee_junkie
Victor, It is doing what you have configured it to do. Webapp#2 is secured using the "other" security domain. So when a user attempts to access a secured resource (i.e. your servlet), the conatainer performs BASIC authentication via the UsersRolesLoginModule. Thus you have set some principal

[jboss-user] [Security & JAAS/JBoss] - Re: Problem accessing EJB unchecked method from a servlet (w

2006-07-19 Thread j2ee_junkie
Victor, Is the principal used as identity (ie username) in web-app#2 during BASIC authentication in your database? cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959118#3959118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [Security & JAAS/JBoss] - Re: Multiple security domains in one EAR

2006-07-19 Thread j2ee_junkie
Hi Jeff, Yes you can have more than one security-domain in an ear. However, you need to make sure that the roles that intersect the two security domains are defined in each. In other words, if EJB A in security domain A needs to communicate with EJB B in security domain B, then the run-as rol

[jboss-user] [Security & JAAS/JBoss] - Re: Security chptr says ejb-jar.xml. But EJB3 has no ejb-jar

2006-07-19 Thread j2ee_junkie
Markus, I assume you got things working. Just a note, this forum is useful to keep track of now and in the future. Had you done some searching you may have found this http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78329. let us know if you still have problems, cgriffith View the or

[jboss-user] [Security & JAAS/JBoss] - Re: CLIENT-CERT configuration

2006-07-18 Thread j2ee_junkie
Adam, see http://wiki.jboss.org/wiki/Wiki.jsp?page=BaseCertLoginModule , http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSX , and http://wiki.jboss.org/wiki/Wiki.jsp?page=Logging. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958959#3958959 Reply to

[jboss-user] [Security & JAAS/JBoss] - Re: CLIENT-CERT configuration

2006-07-18 Thread j2ee_junkie
Adam, First off, see my comments at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=86289. SSL vs. CLIENT-CERT authentication are two separate issues. That said, we would need to see some trace logging of JBoss security at the point when a user attempts to access secured resource to se

[jboss-user] [Security & JAAS/JBoss] - Re: Security chptr says ejb-jar.xml. But EJB3 has no ejb-jar

2006-07-18 Thread j2ee_junkie
Markus, Since the SecurityDomain is a JBoss specific configuration, it does not go in the ejb-jar.xml. I figured you would have known how to configure JBoss. In this case, see the jboss.xml file and it's DTD for definitions. cgriffith View the original post : http://www.jboss.com/index.html

[jboss-user] [Security & JAAS/JBoss] - Re: Security chptr says ejb-jar.xml. But EJB3 has no ejb-jar

2006-07-18 Thread j2ee_junkie
Hi Markus, Yes to all. I think it is important to note that ejb-jar.xml is the descriptor file for bean configuration (it has always been). The addition of annotations in EJB3 just makes that descriptor unecessary. Unless you want to use. If you use both, the descriptor should override anno

[jboss-user] [Security & JAAS/JBoss] - Re: Security chptr says ejb-jar.xml. But EJB3 has no ejb-jar

2006-07-18 Thread j2ee_junkie
See the EJB3 wiki for documentation on how to use annotations to provide the same configurations as the ejb-jar.xml. http://wiki.jboss.org/wiki/Wiki.jsp?page=EJB3 cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958770#3958770 Reply to the post : h

[jboss-user] [Security & JAAS/JBoss] - Re: A few questions regarding JBoss 4.0.4_GA and LDAP setup

2006-07-18 Thread j2ee_junkie
http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html#d0e18806 and http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSX enjoy, cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958769#3958769 Reply to the post : http://www.jboss.com/index.h

[jboss-user] [Security & JAAS/JBoss] - Re: Integration of Custom Client and Server Login Modules

2006-07-18 Thread j2ee_junkie
kearns, You need a better understanding of authentication/authorization. There is just too much stuff that is wrong here. See the resource I mentioned below. As well as the wikis at wiki.jboss.org/wiki/Wiki.jsp?page=JBossSX and wiki.jboss.org/wiki/Wiki.jsp?page=Tomcat. However in an effort t

[jboss-user] [Security & JAAS/JBoss] - Re: JAAS image problem

2006-07-18 Thread j2ee_junkie
Is it http://localhost:8080/MyApp/images/company_logo.gif or http://localhost:8080/MyApp/images/company_logo.jpg? cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958754#3958754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

[jboss-user] [Security & JAAS/JBoss] - Re: Integration of Custom Client and Server Login Modules

2006-07-17 Thread j2ee_junkie
Hi Kearns, So you have a web-enabled client. I am still not clear on what is your identifing principal and what is your credential. What does the user enter in the form? My point is to determine how your authentication data can be used as a String/Principal identity and an Object credential.

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JBossCacheService to Tomcat clustering not found

2006-07-17 Thread j2ee_junkie
See tomcat's jboss-service.xml file that configures Tomcat as a JBoss service. $YOUR_SERVER/deploy/jbossweb-tomcatxx.ser/META-INF/jboss-service.xml cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958505#3958505 Reply to the post : http://www.jboss.c

[jboss-user] [Security & JAAS/JBoss] - Re: Integration of Custom Client and Server Login Modules

2006-07-17 Thread j2ee_junkie
kearns, There are still a few details I would need to understand your situation. 1.) It was not clear to me what data you need to be passed to your bank.jaas.CustomServerLoginModule. What is acting as the identity pricinpal and what is acting as the authentication data? What else do you need

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Classloading PB with librairies in my servlet

2006-07-17 Thread j2ee_junkie
clodeindustrie, I suspect ojdv14.jar and xdb.jar can work together, but that the problem is with xdb.jar and JNDI. Did you follow instructions at oracle's site about how to used JNDI to access XML DB Resource? They describe how to specify a JNDI provider to use. If you do not do this, then J

[jboss-user] [Security & JAAS/JBoss] - Re: Help regarding Role based authorisation

2006-07-14 Thread j2ee_junkie
cool_bhanu, I would start by reading the security chapter in jboss server guide available at http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958083#3958083 Reply to the post : http

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Creating new sessionID in the browser after application

2006-07-13 Thread j2ee_junkie
dzhao00, There was no requirement to not re-use session ID in original question of sundartri. The problem was how to invalidate the session. The original poster was under the impression that the session was not being invalidated because the ID did not change. You mis-read the problem and add

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Creating new sessionID in the browser after application

2006-07-13 Thread j2ee_junkie
Why bother. There is no harm in re-using the session ID. The real issue is weather or not the session contents were getting trashed on invalidate. If that is occuring, then all is good. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957873#39578

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Filter and servlet mappings

2006-07-13 Thread j2ee_junkie
Adam, That is the behavior defined by the servlet spec. If you want a filter on that resource to be invoked, then you need to use re-direct, not forward. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957793#3957793 Reply to the post : http://ww

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: charset=ISO-8895-1 being added to response content type

2006-07-13 Thread j2ee_junkie
thmix10 >From the HTTP 1.1 spec... anonymous wrote : | 3.4.1 Missing Charset | ... |HTTP/1.1 recipients MUST respect the charset label provided by |the sender; and those user agents that have a provision to "guess" |a charset MUST use the charset from the content-type field

[jboss-user] [Security & JAAS/JBoss] - Re: Adding data to session after login

2006-07-13 Thread j2ee_junkie
Paul, Warrenc6 is leading you in the wrong direction. Your idea to extend DatabaseServerLoginModule is a good choice. In order for you to access the HttpSession from you login module you will need to see http://wiki.jboss.org/wiki/Wiki.jsp?page=AccessingServletRequestForAuthentication let us

[jboss-user] [Security & JAAS/JBoss] - Re: auth-method Form and Subject access

2006-07-13 Thread j2ee_junkie
atorres, Warren6 is just plain silly. There are at least two ways to get the Authenticated Subject. I think all of them are JBoss dependant; not sure if this is a problem for you. However... 1.) the way you have done it is a great way using JNDI 2.) tomcat service has an SubjectAttributeNam

[jboss-user] [Security & JAAS/JBoss] - Re: Apache mod_jk / JBoss SSL question

2006-07-12 Thread j2ee_junkie
B, Isn't the redirect port set in tomcat's server.xml file... | | | cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957334#3957334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957334

[jboss-user] [Security & JAAS/JBoss] - Re: Restricting Users Login From IP Adresses

2006-07-12 Thread j2ee_junkie
Soheil, That mechanism has been deprecated. You should consider using http://wiki.jboss.org/wiki/Wiki.jsp?page=AccessingServletRequestForAuthentication instead. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957329#3957329 Reply to the post : h