-
1. Re: JBoss3.2.2+Tomcat Basic Authentication
bhavin_r Jul 20, 2003 9:05 PM (in response to bhavin_r)...surprised !!!.......no reply yet for such a simple question...?
can anyone send me a .war file with just one helloworld.html which will have basic authentication feature..... which i can run on jboss3.2.2+Tomcat
i can get the basic authentication dialog box but it doesnot authenticate me....what could be the reason ?
is it a bug ...?
bhavin -
2. Re: JBoss3.2.2+Tomcat Basic Authentication
ogandit Jul 21, 2003 9:35 AM (in response to bhavin_r)Try to put jboss-web.xml file in WEB-INF directory of your war file.
This solved the problem for me. -
3. Re: JBoss3.2.2+Tomcat Basic Authentication
bhavin_r Jul 23, 2003 3:44 AM (in response to bhavin_r)
........thanks for your reply....., but........my jboss-web.xml file is already in the web-inf folder of the .war file.... -
4. Re: JBoss3.2.2+Tomcat Basic Authentication
acristi Jul 23, 2003 8:27 AM (in response to bhavin_r)I have the same problem for the same configuration. I cannot authenticate (& authorize) myself even if I use Digest or Form based authentication mechanism for my realm.
Instead, if I perform a simple authentication (same realm):
UsernamePasswordHandler handler = new UsernamePasswordHandler("username", "password".toCharArray());
LoginContext lc = new LoginContext("myrealm", handler);
lc.login();
... I'll successfully authenticate. Other problem is I can't authorize myself to my realm in this way.
The same problems, even worse for JBoss 3.2.1.
I hope someone loves us !
Cristi -
5. Re: JBoss3.2.2+Tomcat Basic Authentication
tramey Jul 30, 2003 11:42 AM (in response to bhavin_r)Did you look at the log to see if the users.properties and roles.properties files were found? I had the same problem, but when I moved the users.properties and roles.properties files to the main directory of my war file, it worked.
-
6. Re: JBoss3.2.2+Tomcat Basic Authentication
noel.rocher Jul 31, 2003 5:22 AM (in response to bhavin_r)Hi,
You have the jmx-console app bundled with JBoss3.2. Then you can secure it as mention in doco (or even if you look inside the web app files).
It's a good simple example. And it works.
Noel -
7. Re: JBoss3.2.2+Tomcat Basic Authentication
swatkat Oct 28, 2003 12:13 AM (in response to bhavin_r)I did all of those mentioned in the jmx-console web.xml and jboss-web.xml but it doesnt work still and
i am using DatabaseServerLoginModule and not file based login.
any views..?
Was the problem solved. yet
Regards
Swatkat