[JBoss-user] [Security & JAAS/JBoss] - Authentication failed calling @Service from session bean @Po

2006-07-17 Thread matt10
Hi, In an EJB 3.0 application I have methods on a session bean that delegate calls to a POJO @Service. I have just started to apply security, starting with a UsersRolesLoginModule which seems to be working for the session bean calls from the client. I presume that if the authenticated user can

[JBoss-user] [Security & JAAS/JBoss] - Re: Using JCE crypto in EJBs

2006-07-10 Thread wussykye
Sohil, I'm not accessing the cacerts file explicitly, I'm calling JCE KeyGenerator to create a key. When I call KeyGenerator.getInstance("DES"), I get the SecurityException when I'm running in container. I don't get this exception while running out of container. As far as I can tell, I'm us

[JBoss-user] [Security & JAAS/JBoss] - wrong principal although authenticated in 4.0.4 GA

2006-07-10 Thread TedCat
Hi, Since we migrated our app from 4..0.3 to 4.0.4 GA, we are facing the following problem: - some ejb2 sb are created with the right JAAS credentials but while getting the principal, the username is not the right one. It's usualy, anonymous (or null if module-option name="unauthenticatedIdentit

[JBoss-user] [Security & JAAS/JBoss] - Re: Authenticating user in servlet

2006-07-10 Thread [EMAIL PROTECTED]
Jochen- With your custom Authenticator approach, did you try doing a browser redirect that sends back the same exact request information back maybe minus the deviceid information, once the authentication is successfull and the user's identity is sucessfully established within the Authenticator

[JBoss-user] [Security & JAAS/JBoss] - Re: Using JCE crypto in EJBs

2006-07-10 Thread [EMAIL PROTECTED]
wussykye- Try accessing your cert file using a full system path to your cacert file within your EJB to make sure this is not an issue with locating the cacert file. Also, did you try getting an input stream to the cert file in your EJB and make sure the file is actually being located and read.

[JBoss-user] [Security & JAAS/JBoss] - Authenticating user in servlet

2006-07-10 Thread jochenb
Hi, I have a proprietary client which sends a hardware ID in the http request for authenticating the device. But we want to use the standard J2EE security mechanisms in our application and use the vendor neutral api request.isUserInRole() and getRemoteUser(). So I deveolped an Authenticator ex

[JBoss-user] [Security & JAAS/JBoss] - Re: problems with @SecurityDomain @PermitAll

2006-07-09 Thread kgrjb
thanks for reply. jboss.xml is deployed correctly with ejb jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956457#3956457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956457

[JBoss-user] [Security & JAAS/JBoss] - Using JCE crypto in EJBs

2006-07-09 Thread wussykye
My application uses encryption for storing info in it's tables. When I run the encryption code outside of JBoss, it works fine. When it is called in an EJB, there is a SecurityException thrown with a message about "Cannot locate policy or framework files!" and "Cannot set up certs for trusted

[JBoss-user] [Security & JAAS/JBoss] - Re: Retrive the authenticated subject within a protected URL

2006-07-09 Thread james_conf
A bit more. This only happens when the authenticated user does not have the proper role to access the URL. I did forget to add, I am looking for the subject in a Valve. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956441#3956441 Reply to the post : http

[JBoss-user] [Security & JAAS/JBoss] - Re: Retrive the authenticated subject within a protected URL

2006-07-09 Thread james_conf
Seams my problem with SecurityAssociation is within a portected URL the SubjectContext is null 2006-07-09 14:57:37,745 TRACE [org.jboss.security.SecurityAssociation] getSubject, sc=null View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956435#3956435 Reply to

[JBoss-user] [Security & JAAS/JBoss] - Retrive the authenticated subject within a protected URL

2006-07-09 Thread james_conf
I need access to the users subject from a servlet. When I access a unprotected URL I can retrive it just fine example: SecurityAssociation.getSubject() and PolicyContext.getContext("javax.security.auth.Subject.container"); But if I go to a protected URL, (the url-pattern under security-constr

[JBoss-user] [Security & JAAS/JBoss] - Using JGuard to secure the portal

2006-07-09 Thread pelo67000
Hello, I would like to use jguard with pentaho (which is deployed on JBoss 4.03) to secure the portal. After downloading the jguard zip and install it, i was able to launch start-pentaho.bat but i had the following errors : anonymous wrote : | 2006-07-07 10:55:29,984 WARN [org.jboss.system

[JBoss-user] [Security & JAAS/JBoss] - Re: Login Configuration Enhancement

2006-07-08 Thread [EMAIL PROTECTED]
http://jira.jboss.com/jira/browse/JBAS-3378 It won't happen soon though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956391#3956391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956391 ---

[JBoss-user] [Security & JAAS/JBoss] - Re: TLS encryption TLS_RSA_WITH_3DES_EDE_CBC_SHA support

2006-07-08 Thread elkner
I guess, that depends on your JDK/JSSE ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956361#3956361 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956361 Using Tomcat but need to do more? Need to support web servi

[JBoss-user] [Security & JAAS/JBoss] - TLS encryption TLS_RSA_WITH_3DES_EDE_CBC_SHA support

2006-07-07 Thread mkolhe
Does JBoss support the TLS encryption TLS_RSA_WITH_3DES_EDE_CBC_SHA? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956315#3956315 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956315 Using Tomcat but need to do more?

[JBoss-user] [Security & JAAS/JBoss] - Re: Login Configuration Enhancement

2006-07-07 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : More like: | | | | | | | | | | ... | | | | | | | | | We have the same concept for JBoss container configurations. So I do not see why we cannot do for the application policies in the security configuration space. | |

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-07 Thread hardeep.kwatra
Hi! Stand alone pplication means running the application from the command prompt i.e. java -jar , not in the jboss. if i try to deploy it as a service it starts giving the exception, where it works fine in the previous case. I am using JAXRPC in my application. here is the code snippet which d

[JBoss-user] [Security & JAAS/JBoss] - Re: Login Configuration Enhancement

2006-07-07 Thread [EMAIL PROTECTED]
More like: | | | | ... | | | | | We have the same concept for JBoss container configurations. So I do not see why we cannot do for the application policies in the security configuration space. | | I will add a feature request for this, if I do not see any objectio

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-07 Thread elkner
OK, to help you out here an copy-and-paste complete example: package foo.bar; | | import java.io.BufferedInputStream; | import java.io.IOException; | import java.io.InputStream; | import java.security.cert.Certificate; | import java.security.cert.CertificateException; | import java

[JBoss-user] [Security & JAAS/JBoss] - Login Configuration Enhancement

2006-07-07 Thread jiwils
Currently, I can reuse login modules by changing the login configuration stack in various security domains. Would it be possible to make a given security domain referenceable from another stack/domain in the future as an enhancement? Without this, configuration can get messy (so it seems). Fo

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-07 Thread [EMAIL PROTECTED]
Hardeep- Looks like this might be a configuration issue. Some things to look at: 1) if the server side keystore has a self-signed cert, the SunX509 TrustManager you are using in your client code accepts them 2) Looks like you are setting up the TrustManager on the client side to trust svsos.c

[JBoss-user] [Security & JAAS/JBoss] - SOAP Message not being encrypted using JBoss enabled SSL

2006-07-07 Thread johnvarghese
Hello Friends, We have enabled SSL in JBoss 4.0.2 by editing the file \server\default\deploy\jbossweb-tomcat55.sar\server.xml and uncommenting the following entry: However, on viewing the message flow using ethereal, I have observed that the soap message consisting of s

[JBoss-user] [Security & JAAS/JBoss] - Re: problems with @SecurityDomain @PermitAll

2006-07-07 Thread hoeft
Hi! Is your jboss.xml in the WEB-INF directory in your jar-file? If not, that causes your problem. Meinert View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956177#3956177 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[JBoss-user] [Security & JAAS/JBoss] - problems with @SecurityDomain @PermitAll

2006-07-07 Thread kgrjb
1. because @SecurityDomain is jboss specific, is there a way to remove it from class code and keep just the standard @RolesAllowed? i tried to remove it from source code and have in jboss.xml mobistax after this, i dont get any security on bean methods. 2. why is authentication-autho

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-06 Thread elkner
Yes, setting up a suitable X509TrustManager (+ see SSLContext) is a much better hint ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956028#3956028 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956028 Using Tomcat

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-06 Thread [EMAIL PROTECTED]
"elkner" wrote : | Well, why do you need SSL, if you trust all certs? Definitely a "no master" hint Well, this is because if you are using a self-signed cert you will get an invalid certificate exception unless a proper TrustManager is setup in the SSL Context on the client. For a self sig

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-06 Thread elkner
"[EMAIL PROTECTED]" wrote : ... you need to "Trust all certs" when you setup the connection programmatically Well, why do you need SSL, if you trust all certs? Definitely a "no master" hint ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955938#3955938 R

[JBoss-user] [Security & JAAS/JBoss] - Re: EJB SecurityDomain across servers

2006-07-06 Thread [EMAIL PROTECTED]
anonymous wrote : | I don't want my MDB to hold or authenticate any credentials, simply assume a given security role like the EJB3 @RunAs annotation. | Your MDB does not authenticate/hold any credentials. You should be able to invoke it just with EJB3 @RunAs annotation. Its when the MDB

[JBoss-user] [Security & JAAS/JBoss] - Re: EJB SecurityDomain across servers

2006-07-06 Thread adogg
Thanks. I was under the impression that ClientLoginModule just passed already established credentials: "...It merely copies the login information provided to it into the JBoss server EJB invocation layer..." I don't want my MDB to hold or authenticate any credentials, simply assume a given sec

[JBoss-user] [Security & JAAS/JBoss] - Re: ClientAuth configuration question

2006-07-06 Thread j2ee_junkie
Jeremy, I think you are merging two separate issues of authentication and encryption. You can specify that the conatiner use client certificates as a means to authenticate a user by setting the auth-method element to "CLIENT-CERT". This means that when a user tries to access a restricted resou

[JBoss-user] [Security & JAAS/JBoss] - Re: EJB SecurityDomain across servers

2006-07-06 Thread [EMAIL PROTECTED]
Andrew- Instead of hardcoding the username/password in your MDB client code that calls the EJB3 on another server you may have to propagate the "Subject" established in the MDB, over to the remote EJB3 using the client-side login mechanism detailed here: http://wiki.jboss.org/wiki/Wiki.jsp?pag

[JBoss-user] [Security & JAAS/JBoss] - Re: ClientAuth configuration question

2006-07-06 Thread JeremyFox
I think I see how that would work for standard security - the part of the problem that I am struggling with is that we are doing 2-way SSL. I have clientauth="true" in the connector configuration in Tomcat's server.xml. Basically, that has made it so that everyone who connects to the site has t

[JBoss-user] [Security & JAAS/JBoss] - Re: ClientAuth configuration question

2006-07-06 Thread j2ee_junkie
Jeremy, Java Servlet Spec's declarative security does just that. See jboss server guide security chapter http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html as well as wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=SecureAWebApplicationInJBoss cgriffith View the original post :

[JBoss-user] [Security & JAAS/JBoss] - ClientAuth configuration question

2006-07-06 Thread JeremyFox
Hello all, I am working on a project that would like to do something that I don't know how to accomplish. Is it possible to configure a site where certain contexts/directories on that site require client authentication while others do not? (All communications must be done via SSL on port 443

[JBoss-user] [Security & JAAS/JBoss] - Re: Calling web service from another jboss application using

2006-07-06 Thread [EMAIL PROTECTED]
"hardeep.kwatra" wrote : | I am getting invalidate certificate exception. If i run this application as a standalone, it works fine. | When you say running as standalone you mean the client application to the SSL webservice running in JBoss? Also, can you post the client Java code that is

[JBoss-user] [Security & JAAS/JBoss] - Calling web service from another jboss application using SSL

2006-07-05 Thread hardeep.kwatra
Hi, I am trying to deploy an application as service, which reads the contents of a jms Queue and tries to send it to the other webservices i.e. within the same container and to another jboss application server using certificate authentication (SSL) on port 443. I am getting invalidate certific

[JBoss-user] [Security & JAAS/JBoss] - Re: authentication doesn't work if roles changed during appl

2006-07-05 Thread michalzel
Thank you for reply. It saves me a lot of time :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955493#3955493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955493 Using Tomcat but need to do more? Need to support w

[JBoss-user] [Security & JAAS/JBoss] - Re: authentication doesn't work if roles changed during appl

2006-07-05 Thread jaikiran
Have a look at: http://www.jboss.org/wiki/Wiki.jsp?page=CachingLoginCredentials View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955489#3955489 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955489 Using Tomcat but ne

[JBoss-user] [Security & JAAS/JBoss] - authentication doesn't work if roles changed during applicat

2006-07-05 Thread michalzel
Hello! I am using DatabaseServerLoginModule to perform authentication. My application allows to manage users via web interface, as well as connecting users to predefined (unchangable) roles. When I create user I connect him to roles. This user is correctly authenticated and constrained with aut

[JBoss-user] [Security & JAAS/JBoss] - EJB SecurityDomain across servers

2006-07-05 Thread adogg
So, I've got a MDB on one server that wants to call an EJB3 on another server. The EJB3 is secured with a SecurityDomain on its server and I want the MDB to be able to call the EJB3 with a role as per the security-identity, run-as, etc. tags, but, of course, the EJB's SecurityDomain doesn't exi

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-07-04 Thread gekorob
Hi Alexio, I didn't find a good solution in modifying ClientLoginModule, so I'm trying to use jpdl and servlet redirection like I've seen in another post. Bye Roby View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955210#3955210 Reply to the post : http:/

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

2006-07-03 Thread adogg
Believe it or not, #1 seems to be working for me. I have a SecurityDomain annotation in one of my EJBs and one of its methods has no RolesAllowed annotation, and I can call that method in the EJB without authentication. Just a regular NamingContext lookup. Maybe the AOP joinpoints don't get a

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

2006-07-03 Thread j2ee_junkie
adogg, Option 1, is what I mentioned before. If at least one method of a bean is secured, then the whole bean must be covered by a security domain. As such, access to any method, will require a caller to be authenticated. Note this does not mean the caller has to be authorized, just athentic

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

2006-07-03 Thread adogg
Good call on the RunAs annotation, but I want to hit my EJB from an MBean, and as far as I can tell (and I've tried), I can't use RunAs on an MBean. Couple of things I was thinking about: 1. Make backdoor methods in my Local interface (not in my Remote) that don't have any security, and then c

[JBoss-user] [Security & JAAS/JBoss] - Re: Login module which accesses an EJB?

2006-07-03 Thread j2ee_junkie
First off, start a new thread as this is not related to the threads subject. Second, do not put | | GreenfieldsLogin.sar | | in application.xml. Java 2 E E spec. knows nothing of JBoss sars. You need to set that in jboss-app.xml. Finally, do not complain to us that you are goin

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

2006-07-03 Thread j2ee_junkie
adogg, I do not know for sure, but I would think that what you want is not possible. You could for example configure certain methods of your EJB to require certain roles. However, by securing the bean(even if only securing one method) means that any user must be authenticated before access.

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

2006-07-03 Thread adogg
I'd like to impose security restrictions on my EJB3, but only in the Remote interface. If called via the Local interface, I want no restrictions. Can I add @RolesAllowed annotations to the method declarations in my remote interface without adding them to the implementation class? Seems to me

[JBoss-user] [Security & JAAS/JBoss] - Re: Login module which accesses an EJB?

2006-07-03 Thread NigelWhite
Now, I just put com.fcl.security.GreenfieldsLoginModule into my WAR file. All other classes from the com.fcl.security package are in greenfield.jar, just another java module listed in application.xml. But in my LoginModule, I now get this: 10:09:25,718 ERROR [fcl] tried to access method com.fc

[JBoss-user] [Security & JAAS/JBoss] - Re: Login module which accesses an EJB?

2006-07-03 Thread NigelWhite
Further to this, I'm having a problem which is very strange. I'm not sure into which of the seperate jar/war files to put my security classes. I'm using JAAS, and I have a sar file which contains meta-inf/jboss-service.xml: | http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd";> | |

[JBoss-user] [Security & JAAS/JBoss] - @RolesAllowed not working in EJB3

2006-07-02 Thread chrismalan
All session bean implementations have the required @SecurityDomain("theDomain") annotation. What does not work is that once somebody has logged in, he can call any session bean method, even those calling for a role he is not in. This is in JBoss 4.0.3. This has worked fine before in EJB 2.1.

[JBoss-user] [Security & JAAS/JBoss] - Re: Authentication not working even though it should

2006-06-30 Thread [EMAIL PROTECTED]
Looking at your authenticated subject: | 2006-06-30 19:57:35,030 TRACE [org.jboss.security.plugins.JaasSecurityManager.my-web] getUserRoles, subject: Subject: | Principal: [EMAIL PROTECTED] | Principal: Roles(members) | Principal: com(members:secure_capture_role,

[JBoss-user] [Security & JAAS/JBoss] - Authentication not working even though it should

2006-06-30 Thread kirenpillay
Hi I need help with this one. I've configured my files correctly, I am trying to authenticate a user [EMAIL PROTECTED], but it does not seem to work. From the logging, it seems likes its authenticated, but halfway throught the process the authenticate fails. Please see log below: 06-06-30 19:

[JBoss-user] [Security & JAAS/JBoss] - Re: Login module which accesses an EJB?

2006-06-30 Thread [EMAIL PROTECTED]
It is better to use the Database LM because it does the job for you while managing the subject population with roles. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954709#3954709 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[JBoss-user] [Security & JAAS/JBoss] - Re: Login module which accesses an EJB?

2006-06-30 Thread j2ee_junkie
Klusi, I have a login module which does this as well. Is it good design? I am not sure. One very imporant point to note (as you will see if you search this forum) is that you can't secure the EJB that has authenticate(user,passwd) method using the same application-policy (i.e. security-domai

[JBoss-user] [Security & JAAS/JBoss] - Re: Secuirty Exception after password update using DataBaseL

2006-06-30 Thread pordeep
We found a solution. Actually after updating the password you need to logout using the LoginContext of that user and login again. eg., LoginContext.logout () and LoginContext.login (). Hope this helps View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954656#3954

[JBoss-user] [Security & JAAS/JBoss] - Re: JBOSS vulnerable to Port Scan?

2006-06-30 Thread tonyLeung
this case is happening when i scan the server with MaxPatrol 7.5.. But it solve now, by securing the the JMX-Console Thanx to scott View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954630#3954630 Reply to the post : http://www.jboss.com/index.html?module=bb&o

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-30 Thread alexioc
I got the same problem. Roby, did you figure out how to modify ClientLoginModule in order to propgate the credentials? TIA Alexio View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954619#3954619 Reply to the post : http://www.jboss.com/index.html?module=bb&op

[JBoss-user] [Security & JAAS/JBoss] - Login module which accesses an EJB?

2006-06-30 Thread klusi
I have a database with user and roles tables and a set of Session EJB's to access this data. Now I am thinking about writing a JAAS login module that calls an authenticate(user,passwd) on the UserServiceEJB. Is this a good design or should I prefer using the database login module, which directly

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread smajima
I don't have ejb-jar.xml. Because I don't thinlk specify anything in ejb-jar.xml. Am I understanding wrong? If something is needed in ejb-jar.xml,could you show me the example? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954536#3954536 Reply to the post

[JBoss-user] [Security & JAAS/JBoss] - Re: secure jndi lookup

2006-06-29 Thread ostap.cherkashin
Please refer to http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch3.chapter.html. There is an org.jboss.security.jndi.LoginInitialContextFactory, and you could also try to use HTTPS to access the initial context. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread smajima
I'm sorry I gave you a wrong information. I selected plus as user. The logging above is in this case. If it works correct,user1 can't excute plus. Susumu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954372#3954372 Reply to the post : http://www.jboss.com

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread jaikiran
Can you please post your ejb-jar.xml. The logs show that the user1 was authenticated correctly and he has been identified in the correct role. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954377#3954377 Reply to the post : http://www.jboss.com/index.html

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread jaikiran
Can you please post your ejb-jar.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954375#3954375 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954375 Using Tomcat but need to do more? Need to support web services, s

[JBoss-user] [Security & JAAS/JBoss] - Re: Help required in Switching from http to https in jboss-

2006-06-29 Thread [EMAIL PROTECTED]
"cool_bhanu" wrote : | | /display.jsp | /error.jsp | | | | is forcing it to go to the pages which i give in form-login-page | instead it should go | to NameAction which extends Action and based on the logic there | i should go to the required success or error pag

[JBoss-user] [Security & JAAS/JBoss] - Re: Not Always taking to Home Page on session timeout

2006-06-29 Thread [EMAIL PROTECTED]
If you are using the FormAuthenticator you will have to integrate your custom FormAuthenticator to do this. You will need to extend org.apache.catalina.authenticator.FormAuthenticator and override the public boolean authenticate(HttpRequest request, HttpResponse

[JBoss-user] [Security & JAAS/JBoss] - Re: Not Always taking to Home Page on session timeout

2006-06-29 Thread j2ee_junkie
apcac_bond, There is no way to configure this from your application that I am aware of. You could extend Tomcat's FormAuthenticator. The extension would always return to a url set in an init param of your ServletContext when user successfully authentciates. This is just one idea. enjoy, cg

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread jaikiran
anonymous wrote : In this case I select multi as user1. This is going to work, isnt it? Since you have specified that the method multi can be invoked by users in role "user" (and user1 belongs to "user" role). Your first post mentioned that anonymous wrote : The method multi is allowed only "u

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread smajima
The log is below. In this case I select multi as user1. 2006-06-29 18:53:58,408 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null 2006-06-29 18:53:58,408 TRACE [org.jboss.web.tomcat.security.RunAsListener] jsp, runAs: null 2006-06-29 18:53:58,408 DEBUG [org.apache.catalina.co

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread jaikiran
anonymous wrote : I'm terribly sorry but I don't know how to get authetication trace logging Have a look at Q4: How to debug security layer at: http://wiki.jboss.org/wiki/Wiki.jsp?page=SecurityFAQ anonymous wrote : Where(in which file) can I find application-policy config? You can find this is

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-29 Thread muhviehstarr
Hello. I think you forgot the @SecurityDomain at the class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954258#3954258 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954258 Using Tomcat but need to do more? Need t

[JBoss-user] [Security & JAAS/JBoss] - Re: Not Always taking to Home Page on session timeout

2006-06-28 Thread apcac_bond
test View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954244#3954244 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954244 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-28 Thread smajima
I'm terribly sorry but I don't know how to get authetication trace logging. Where(in which file) can I find application-policy config? Could you let me know it? I use jmx-console and the currently logged principal in the domain is user1. Susumu View the original post : http://www.jboss.com/in

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-28 Thread gekorob
Thanks Scott, I'm trying to find a solution reading Seam forum, to check if someone has the same problem. I'm looking also at jboss source code, to see how to modify ClientLoginModule to propagate credential on web container, but at them moment it seems to me not so simple. Thanks a lot for

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-28 Thread jbossjleplat
That problem had me stuck for quite a while. It's especially tough as all the tutorials and JaasHowTo and JASS FAQ don't mention this issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954088#3954088 Reply to the post : http://www.jboss.com/index.html?m

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-28 Thread david.l.small
"[EMAIL PROTECTED]" wrote : Then that is an ejb3 bug. Does this mean that you'll be reverting back to using "java:/jaas/" in jboss.xml (or @SecurityDomain) in a future version? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954041#3954041 Reply to the post :

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-28 Thread [EMAIL PROTECTED]
Then that is an ejb3 bug. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954032#3954032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954032 Using Tomcat but need to do more? Need to support web services, security? Ge

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-28 Thread [EMAIL PROTECTED]
The way this should be done in the current architecture is to create an alternate or modified org.jboss.security.ClientLoginModule that propagates the login state to the web container layer. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954020#3954020 Repl

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-28 Thread [EMAIL PROTECTED]
The integration security code is in the tomcat module of the jbossas source tree. Fisheye can been used to browse it online. http://fisheye.jboss.com/viewrep/JBoss/jboss-tomcat/src/main/org/jboss/web/tomcat/security View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopi

[JBoss-user] [Security & JAAS/JBoss] - Re: Help required in Switching from http to https in jboss-

2006-06-28 Thread cool_bhanu
Hi Cgrifith Sorry to trouble u once again I have encountered some problem with the login in struts I had made necessary changes to include and login-config to include the user properties but the /display.jsp /error.jsp is forcing it to go to the pages which i give in form-login-page

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-28 Thread gekorob
Thank you very much for your help, I hope to find a good solution that can be useful also for other. Bye, Roby View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953997#3953997 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-28 Thread j2ee_junkie
Roby, There is not much documentation. Your best source is Tomcat code as well as JBoss wiki at http://wiki.jboss.org/wiki/Wiki.jsp?page=Tomcat. Also, if you have special security needs, you may want to post them on thread http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74435 or if y

[JBoss-user] [Security & JAAS/JBoss] - Re: JBOSS vulnerable to Port Scan?

2006-06-28 Thread j2ee_junkie
Tony, I am running JBoss 4.0.3SP1 on Fedora Core 4. I used nmap 4.03. Scanning produces no problems. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953986#3953986 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=rep

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-28 Thread gekorob
Thank's a lot for your reply, could you suggest a link or some documentation that explain how to extend Tomcat's security system? With the expression "do customization to Tomcat's security system" do you mean to create a custom Authenticator? I'm sorry for my questions but I'm quite new to se

[JBoss-user] [Security & JAAS/JBoss] - JBOSS vulnerable to Port Scan?

2006-06-27 Thread tonyLeung
Hi All, Is there anyone tried to scan their server with port scan while JBOSS is running on the server? I've tried this and port scan make JBOSS shut down automatically at the server with log like this : 2006-06-20 09:05:30,453 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localho

[JBoss-user] [Security & JAAS/JBoss] - JBAS-1477: Pass in the security-domain name to the login mod

2006-06-27 Thread j2ee_junkie
This thread refers to task http://jira.jboss.com/jira/browse/JBAS-1477. This simple task is to allow a login module to know what application-policy (i.e. security-domain) it is a member of. This is useful to diagnose configuration problems that default to "other" security domain. However, ther

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with security and Seam

2006-06-27 Thread j2ee_junkie
Roby, anonymous wrote : | Why the web layer can't see credentials and principals (the security domain is the same)? | Because you have not logged into a security domain (i.e. a JBoss SecurityManger.) By creating your own LoginContext, and calling login() yourself, you have by passed JB

[JBoss-user] [Security & JAAS/JBoss] - Problem with security and Seam

2006-06-27 Thread gekorob
Hi all, I have a problem with security authentication using Jaas and Seam. What I'd like to do is to authenticate a user programmatically from a Stateless Bean acting as a Seam component named "login" | public String login() { | SecurityAssociationHandler handler = new SecurityAssociati

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread david.l.small
Actually, it gets even weirder. It is true that you need to remove "java:/jaas/" in jboss.xml 's security-domain element. But that same prefix must be present in the jboss-web.xml 's security-domain element otherwise the web authentication doesn't work. View the original post : http://www.jbos

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread david.l.small
This thread has the answer. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78329 Apparently, the "java:/jaas/" must now be removed. Not that this is your fault, but it would have been nice if this change have been documented in the release notes. It's a pretty significant change. Now

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread david.l.small
This is what I have for parsing of the jboss.xml file. Not much in the line of tracing ... 2006-06-27 11:14:30,834 DEBUG [org.jboss.ejb3.Ejb3Module] Creating jboss.j2ee:service=EJB3,module=pinkcommon-ejb.jar 2006-06-27 11:14:30,841 DEBUG [org.jboss.ejb3.security.JaccHelper] Initialising JACC Co

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread j2ee_junkie
Also, Doing a forum search with query "@SecurityDomain" AND annotation AND "security domain" yeilds similar situations as yours. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953751#3953751 Reply to the post : http://www.jboss.com/index.html?mod

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread j2ee_junkie
David, I have a good look at the trace logging when you deploy your ear. Look for security-domain binding settings made by deployer and parsing of your descriptors. cgriffith View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953743#3953743 Reply to the post

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread david.l.small
To get the security domain settings I'm using jboss-web.xml and jboss.xml just as I did in 4.0.3. There is nothing peculiar about them. And if I try to use the @SecurityDomain annotation instead, I get the same problem. Here are the files ... http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd"

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread j2ee_junkie
David, Yes, your login-config.xml is correct. Your earlier post varifies that the "PinkRealm" is in fact getting configured. The problem is with your deployment. The output from your last post shows that the a "java:" security-domain is being attempted, but since it does not exist, the defau

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread david.l.small
Oh, and here is the trace leading up to the error. It's as if jBoss is ignoring the security domain entries in jboss-web.xml and jboss.xml. anonymous wrote : 2006-06-27 10:12:06,082 TRACE [org.jboss.security.SecurityAssociation] pushRunAsIdentity, runAs=null | 2006-06-27 10:12:06,082 TRACE [or

[JBoss-user] [Security & JAAS/JBoss] - Re: XMLLoginConfig not picking up my application-policy

2006-06-27 Thread david.l.small
OK, aside from a reinstall, I'm not sure what I did differently, but I now get this error. It happens on first access of the application. This means that deployment is happening correctly, but that for some reason it is either using the default realm or ignoring the DatabaseServiceLoginModule.

[JBoss-user] [Security & JAAS/JBoss] - Re: Secuirty Exception after password update using DataBaseL

2006-06-27 Thread pordeep
Actually we are also invalidating the session and forcing the user to logout. But in our case we need to restart the server also apart from the client. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953693#3953693 Reply to the post : http://www.jboss.com/in

[JBoss-user] [Security & JAAS/JBoss] - Re: NEED HELP : Declarative authorization doesn't work

2006-06-27 Thread j2ee_junkie
Susumu, The String parameter of java.util.List getAuthenticationCachePrincipals() is the name of the security domain. This function will show you what principals are currently logged in that domain. Your post below is useless. What is needed is trace logging of the authentication at the tim

[JBoss-user] [Security & JAAS/JBoss] - Re: Secuirty Exception after password update using DataBaseL

2006-06-27 Thread uji
no solution found: we invalidate the session and force the user to login again View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953673#3953673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953673 Using Tomcat but need t

[JBoss-user] [Security & JAAS/JBoss] - Re: Secuirty Exception after password update using DataBaseL

2006-06-27 Thread pordeep
Hai, We are also facing the same problem. Our problem is we are spawning threads (which access ejb methods!). After spawning the thread we are changing the password. After that when the thread accesses the Bean methods Security exception is thrown. Please let us know if you find a solution f

  1   2   3   4   5   6   7   8   9   10   >