I got it working over JBoss 2.1, Tomcat 3.2 and Postgres.
1)Edit the server.xml
2)Uncomment the  JDBCRealm:
 <RequestInterceptor
            className="org.apache.tomcat.request.JDBCRealm"
            debug="99"
            driverName="org.postgresql.Driver"
            connectionURL="jdbc:postgresql:dbName"
            connectionName="userid"
            connectionPassword="password"
            userTable="users"
            userNameCol="uid"
            userCredCol="password"
            userRoleTable="user_roles"
            roleNameCol="role_name" />
3)Make sure you comment any other Realm, like SimpleRealm...and so on.
To avoid conflict.
4)Define security in your web.xml
5) restart JBoss

Alvin

joel cordonnier wrote:

> Hi all,
>
> Does anyone have tried using JDBCRealm for security?
> I am using Jboss Pre-2.1, embedded tomcat
>
> I will to configure JBOSS to use Oracle 8i: I must
> absolutely configure the JBoss Autentication ? Is
> there some HOW TO , or samples?
>
> Thanks
> Joel
>
> ___________________________________________________________
> Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
> Yahoo! Messenger : http://fr.messenger.yahoo.com
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to