-
1. Re: JBoss and JAAS Example Article and Source
bstil Apr 12, 2003 12:39 AM (in response to tlamarca)thanks for the example.
-
2. Re: JBoss and JAAS Example Article and Source
chitech Apr 23, 2003 4:13 AM (in response to tlamarca)thx for the good example....I am new to this but what is the URL of the servlet to test it...thx..
-
3. Re: JBoss and JAAS Example Article and Source
tlamarca Apr 23, 2003 10:37 AM (in response to tlamarca)http://localhost:8080/HelloWorld/HelloWorlds
Here is what you should see:
HelloWorldEJB Says:
Hello World! Principal: tim IsInRole: Yes -
4. Re: JBoss and JAAS Example Article and Source
chitech Apr 24, 2003 2:40 AM (in response to tlamarca)Thx...it works...I have changed it to another loginmodule -> DatabaseServerLoginModule and it 's working too. But how can I access the secured bean from a client (standalone app). Do you have a example or a link?....thx..
-
5. Re: JBoss and JAAS Example Article and Source
tlamarca Apr 24, 2003 1:15 PM (in response to tlamarca)This article
http://www.javaworld.com/javaworld/jw-08-2001/jw-0831-jaas.html
has example source available at
http://www.javaworld.com/javaworld/jw-08-2001/jaas/jw-0831-jaas.zip
that shows how to secure a client app. Check out SecureClient.java . The article was written for JBoss 2.x but most stuff, including the client example is still valid. -
6. Re: JBoss and JAAS Example Article and Source
tlamarca Apr 24, 2003 10:55 PM (in response to tlamarca)Hi. I updated the article with instructions on how to run my enclosed example. I also fixed / added an example client console application so you can see how to use it w/out a web app.
-
7. Re: JBoss and JAAS Example Article and Source
brucec Apr 29, 2003 2:42 PM (in response to tlamarca)I've haven't been able to get it working with the DatabaseServerLoginModule. Could you provide details?
-
8. Re: JBoss and JAAS Example Article and Source
kondjboss May 20, 2003 5:03 PM (in response to tlamarca)Thankyou verymuch for the examples.
-A -
9. Re: JBoss and JAAS Example Article and Source
amael May 23, 2003 9:14 AM (in response to tlamarca)hi -
we are also trying to get the example to work with the DatabaseServerLoginModule -- in the servlet initial authentication seems to work (provided we use a correct username/password) but when trying to create HelloWorld home we get the infamous Authentication exception, principal=null.
Any ideas how to solve this?
Basically we simply changed login-config.xml to reflect our database (which seems to work since doLogin works with correct username/password and fails for bad input) -- chitech: is there anything else you needed to change in order to get it to work?
TIA,
amael -
10. Re: JBoss and JAAS Example Article and Source
rkm1 Jul 4, 2003 1:20 PM (in response to tlamarca)Hello,
Thank you for the example.
I ran it and it works great.
But your solution has security logic within the EJB source.
Is this the only way execute secured EJBs?
Having security logic in source.
There has got to be another solution for handling the principal == null exception.
Can anyone offer insight? -
11. Re: JBoss and JAAS Example Article and Source
goodlittlemonkey Jul 16, 2003 2:11 PM (in response to tlamarca)Thanks! Very informative, well written and helpful... after reading all the other documentation intensively for over a week, I ALMOST understood what I needed to do. This bridged the gap... wish I had found it sooner! Is there a way we can get this helpful example put in a more visible location?
My last stumbling point was... jboss.xml must be in the jar/ear that gets copied to the deploy directory! If you just put it in the conf directory jboss will not process it. -
12. Re: JBoss and JAAS Example Article and Source
noel.rocher Jul 17, 2003 1:41 PM (in response to tlamarca)Good news,
With the Tim's sample and this article :
http://www.luminis.nl/publications/websecurity.html
all becomes clear.
BIG BIG Thanks to the authors.
Noel -
13. Standalone Jboss Security module
jsistop19 Jul 23, 2003 8:36 PM (in response to tlamarca)is there anyone who has managed to extract a copy of Jboss's security module and made it a standalone product such that it can be reuse for other project?
if there is, can u share it with us?
thks in advance :)