tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergei Batiuk" <Sergei.Bat...@Damen-Okean.com>
Subject RE: Custom Authentication
Date Sat, 22 Jan 2000 14:04:25 GMT
Hello,

------------------------
If you mean a 'Login API', it doesn't exist in Tomcat.... You need to use
form-based login instead.

------------------------
There is "InitialContext" in Tomcat. This is how I used it to set up
DataSource ( Tomcat 4.1.0) :

        <Context path="/test" docBase="jakarta"
         debug="0" privileged="false">

          <Resource name="jdbc/OdbcDS" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/OdbcDS">

<parameter><name>user</name><value>your_login</value></parameter>

<parameter><name>password</name><value>your_password</value></parameter>
            <parameter><name>driverClassName</name>
              <value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:odbc:OkeanTest</value></parameter>
          </ResourceParams>

        </Context>


Sincerely,
Sergei Batiuk.



-----Original Message-----
From: Ricardo Ramalho [mailto:rramalho@eworks.pt]
Sent: Tuesday, January 22, 2002 2:25 PM
To: Tomcat Users List
Cc: casa; rramalho@eworks.pt
Subject: Custom Authentication


Hi all! ;)

I have to migrate a Web Application from Allaire JRun to Tomcat 4.0.1.

I have a custom Authentication created by us. How can i use it under TomCat
4.0.1? Information is very non-existant or.... I'm just to dumb to find it!
:))

Another question: Do i have a "InitialContext" ? If i have so... where is
it? If it doesn't exist, it's no problemat all. I'll simply use the usual
method to access the MySQL database without aquiring the DataSources from
InitialContext (wich maybe it's something from J2EE....).

Sorry for my poor English.

Thanks for any help you can give me! :)

Ricardo Ramalho
Carcavelos Lisbon Portugal
E-Works
http://www.eworks.pt



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message