For Programmers: Free Programming Magazines  


Home > Archive > Java Security > April 2004 > Implementing security









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Implementing security
Enrique González

2004-03-27, 12:31 am

I'm developing an application, which has a connection with a database,
in whicth I hava a table with users, passwords and profiles for each user.

What I want is to implement my security with this table, I know that
it's possible to indicate to de J2EE server in which table are the users and
passwords, but I don't know how.

If someone knows how to do it or have a guide...

Thanks to all.

Enrique
egserrano(nospam)@terra(nospam).es(nospam)


Duncan Eley

2004-04-04, 10:34 am

On Thu, 25 Mar 2004 20:54:00 GMT, "Enrique González"
<egserrano@terra.es> wrote:

> I'm developing an application, which has a connection with a database,
>in whicth I hava a table with users, passwords and profiles for each user.
>
> What I want is to implement my security with this table, I know that
>it's possible to indicate to de J2EE server in which table are the users and
>passwords, but I don't know how.
>
> If someone knows how to do it or have a guide...
>
> Thanks to all.
>
> Enrique
> egserrano(nospam)@terra(nospam).es(nospam)
>


Hello Enrique,

I am making the assumption from your post that your application is a
Web application and you are using container-managed authentication. If
so...

Configuring your application to interface with user accounts, in your
case in a database table, is non-standard and typically different for
each application server or Web container. Your user account table may
also need to follow certain rules as specified by the application
server or Web container you are using.

For the Tomcat 5.0 Web container, the documentation for configuring
user authentication against a database can be found here:
http://jakarta.apache.org/tomcat/to...html#JDBCRealm.
If you are using a different server you will need to refer to its
documentation.

Regards,

Duncan Eley
duncan.eleyREM@VEbcs.org.uk
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com