According to the Tomcat User Guide, only two callbacks are supported:
NameCallback and PasswordCallback. I have an app that has to have
another call back: ClientCallback. In other words my login window looks
like this:
Clietn : ||
User:||
Password:|
Hi,
my problem is a bit complicate and I hope someone has enough courage to find an
answer :-).
First I try to explain what I want to do:
I am running an JAAS-Realm with FORM authentication. As known this can only
passes username and credential. Now, I was trying to pass the current IP
Salut David,
thanks very much for your answer!
public SecurityConstraint[] findSecurityConstraints(Request request,
Context context) {
HttpServletRequest req = request;// catch Request
session = req.getSession(); // catch session
ipAddress =
their value back to null our you could face a case of memory leak.
Ok.
Thanks!
-- Franck
En l'instant précis du 21/09/07 13:21, Franck Borel s'exprimait en ces
termes:
Salut David,
thanks very much for your answer!
public SecurityConstraint[] findSecurityConstraints(Request request,
Context
]
--
Beste Grüße
Franck Borel
**
Dipl.-Hyd. Franck BorelTelefon: +49[0]761-203 3908
Universitätsbibliothek Fax: +49[0]761-203 3987
Werthmannsplatz 2 E-Mail : [EMAIL PROTECTED
Hi,
i have a problem with an application that only accept GET requests. Now, I would
like to know, if there is any possibility to write a filter, who is able to
change the method from POST to GET.
I see that the FORM-Authentication could speek GET after authentication with
POST method. Is
Hi Martin,
Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and
26.09.
We have VM Ware Server as the hardware - could this cause the problem?
What kind of network connection are you using? NAT or Bridge?
I have a firewall on the machine with only the HTTPS port open.
Hi Christopher,
thank you very much for your answer.
i have a problem with an application that only accept GET requests. Now,
I would like to know, if there is any possibility to write a filter, who
is able to change the method from POST to GET.
What do you mean by that? Do you just want to
]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Beste Grüße
Franck Borel
**
Dipl.-Hyd
Hi Christopher,
I'm not sure why you'd want to do this, since
servlets do not really distinguish between GET and POST parameters --
the API abstracts that complexity away from your code.
If I change the request from POST to GET the Servlet works. I have no
possibility to change the Servlet
Charles,
one problem could be insufficient RAM you assigned to Tomcat.
How much RAM have you set to your Tomcat?
Don't confuse physical RAM with the virtual memory sizing of the Java
heap. Having insufficient RAM on the system will only result in
excessive paging, not process termination.
Hi Vinc,
Hello,
When I look all the JAAS example, I see that you have to use the
following code to use the LoginModule, etc...
LoginContext lc = new LoginContext(MyExample);
try {
lc.login();
} catch (LoginException) {
// Authentication failed.
}
The
Hi azri,
what do you mean wih running your project? Did you mean, that you have
problems creating a new tomcat project? Sysdeo is not compatible with
the eclipse version 3.2M2-3.2M4. Perhaps there are similar problems with
your eclipse version.
Best regards
- Franck
Hi everybody,
I am
Hi all,
I am using tomcat 5.5 and I am trying to implement a filter.
Now, I have setted the xmlValidation to true. This causing some
strange sax errors:
-
2006-03-08 16:47:27,324 [main] ERROR
org.apache.commons.digester.Digester - Parse Error at line
Hi Markus,
thank you very much. Who is able to read has some advantages :-).
Ok, this resovle my problem and now it works.
Greetings
- Franck
Franck Borel wrote:
Hi all,
I am using tomcat 5.5 and I am trying to implement a filter.
Now, I have setted the xmlValidation to true
protocol=AJP/1.3
tomcatAuthentication=false /
This is the connector entry on the Tomcate side.
Now, restart the Apache and the Tomcat and try to get a jsp web page.
Is it now working?
- Franck
Jean-François Lebeau
From: Franck Borel [EMAIL PROTECTED]
Reply-To: Tomcat
Hello Vikas,
look at your login.jsp. There is an entry like this:
..
form method=post action=j_security_check name=loginform
...
Be sure that you there is only j_security_check in the action field.
This is calling the Tomcat authentication valve and you don't need any
directory information.
--
Hi Jay,
I believe that I already know the answer to this. But, if possible,
it would be nice to have some confirmation.
I have an application that uses JAASRealm for authentication. Within
my LoginModule class, is it possible to determine which resource the
user is currently trying to
If you know the id of a session is there anyway to get it out of the
application?
Sorry, this is to vague to know what you are doing. Which application
do mean?
-- Franck
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Information about JAAS can be faound at:
http://www.JAASbook.com
Hi,
Trying to get a custom login through a JAAS
LoginModule.
Got the authentication to work (confirmed thru
println()), but get back a HTTP
unauthorized error in the browser.
Gets to the commit() of LoginModule, where I add
a
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg
EMail: [EMAIL PROTECTED
Hi ALL
Apache is a Standalone Web Server
Tomcat is a Standalone Application Server
Tomcat is a Servlet-Container/JSP! If you need an application Server,
use JBoss or Geronimo instead.
In case of Tomcat its actually a Servlet/JSP Container
so programs written in JSP or Servlets can be
On Mon, April 10, 2006 9:59 am, Franck Borel said:
The Apache Web Server and mod_jk are written in C++
Small detail, they are both written in C.
Small ;-))!
Another detail about mod_jk 1.2 web server connector for
Tomcat: Only the web server connector source is included
I'm getting following error whenever i try to start the tomcat
Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Sounds like your Tomcat can't find your JDK. Have you set the PATH and
JAVA_HOME environmen variable?
Try:
root# echo
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg
EMail: [EMAIL
Hi,
I solved that problem. Now running in a new one:
I have changed the file server.xml and set port 8080 to 80.
I uncommented the SSL section and configured the port to 443. Now I
expect Tomcat to run on port 80 (what is does), and that, when I call
the same URL with https, that it calls
]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg
EMail: [EMAIL PROTECTED] EDV-Dezernat
Tel. : +49-761 / 203-3908 Werthmannplatz 2 | Postfach
Hi Klaus,
Hi Franck,
thank you for your hint. But I am not sure, which parameter is which
file.
To make things clear, here my procedure:
openssl req -x509 -newkey rsa:512 -keyout ./demoCA/private/cakey.pem
-out
.
-- Franck
Franck Borel schrieb:
Hi Klaus,
Hi Franck,
thank you for your hint. But I am not sure, which parameter is which
file.
To make things clear, here my procedure:
openssl req -x509 -newkey rsa:512
for tests.
Don't give up!
-- Franck
Klaus
Franck Borel schrieb:
Sorry to disturb you again, but all the entries in my server.xml do
not seem to be the problem.
*At present, TOMCAT states, that my .keystore was tampered or my
password was incorrect.*
But I did everything over and over
Hi Klaus,
Good Morning Franck,
yesterday, you did a great job, trying to help me. I appreciate that!
Thanks.
But... I am running out of ideas. Regarding the password: presently, I
am using changeit for everything (just to get in running), but I
still have no success.
Yesterday, I sent
and go home...
Bye
Ale
-Messaggio originale-
Da: Franck Borel [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 12 aprile 2006 16.54
A: Tomcat Users List
Oggetto: Re: R: Form Authentication against JNDI Datasource Realm
The server.xml is looking for Windows like server.xml for all
Next suggestion:
Did you make the key as root? And do you start Tomcat as root?
-- Franck
Yes, in testphase, I do all pw's in low-cases...
Franck Borel schrieb:
Hi Klaus,
Good Morning Franck,
yesterday, you did a great job, trying to help me. I appreciate that!
Thanks.
But... I am
could be the problem.
Do you have an idea where I could find a dummy key for just
checking, my key is not the problem. It should be a key which is
already working with tomcat.
Thanks
Klaus
Klaus-F. Kaal schrieb:
Yes, Franck, I am root when I run key-creation and tomcat...
Franck Borel
Does that tell you more?
Not really. But I think you must augment the debug value to 99:
Connector
debug=99
/
Better?
-- Franck
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Please take a look at your log file:
/opt/tomcat/logs/catalina.out
or
C:\tomcat\logs\catalina.out
This is the first thing to do, if you have problems.
-- Franck
Hi
I enable SSL in Tomcat, creating a key creaded with
keytool and I updated my server.xml removing the
comments on the port 8443
/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Hyd. Franck Borel Universitaetsbibliothek
Have you set the entry unpackWARs true like this ?
Host name=localhost
appBase=webapps
unpackWARs=true
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
-- Franck
Franck Borel wrote:
Have you installed a mysql-connector?
-- http://dev.mysql.com/downloads
Where did you place your Realm block?
It must be placed inside the context block like this:
Context ..
Realm ./
/Context..
-- Franck
Franck Borel wrote:
Have you set the entry unpackWARs true like this ?
Host name=localhost
appBase=webapps
unpackWARs=true
/namevalueroot/value/parameter
paramaternamepassword/namevalueROOT_PASSWORD/value/parameter
parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/value/parameter
parameternameurl/namevaluejdbc:mysql://localhost/authority/value/parameter
/ResourceParams
/Context
-- Franck
Franck Borel wrote
I'm trying to use the error handling mechanism described in
http://java.sun.com/developer/EJTechTips/2003/tt0114.html.
When an exception in thrown in JSP1 it is indeed redirected to JSP2. in JSP2
I've put System.out.println(exception.getMessage()); and sure enough the
exception's message
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Hyd. Franck Borel
According to all different things I have seen on the internet they
sometimes talks about the classpath, however even if I add explicitely
the servlet-api.jar that is in $CATALINA_HOME/common/lib on the
classpath inside catalina.sh or on the system classpath that does not
change anything. And
:-).
-- Franck
--
Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg
EMail: [EMAIL PROTECTED] EDV-Dezernat
Tel. : +49-761 / 203-3908 Werthmannplatz 2 | Postfach 1629
Fax : +49-761 / 203-3987
44 matches
Mail list logo