tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tokajac <imre_to...@hotmail.com>
Subject j_security_check Tomcat user status
Date Thu, 18 Sep 2008 23:12:18 GMT

Hello!

For Connection on database i initialize in context.xml: 
[CODE]
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="0"
 driverName="com.Driver"
 connectionURL="jdbc:url"
 connectionName="CONNAME" connectionPassword="CONPASS" userTable="BFWBBUSR"
 userNameCol="LOGINNM" userCredCol="USRPASS"   
 userRoleTable="BFWBBUSR"
 roleNameCol="ROLEID"/>
[/CODE]
j_security_check works fine.

Now, i want to check another column on login: userstatus. Value of the
column can be 0 or 1. Only users with correct username and status 1 can
login.

How can i do this with j_security_check?


Regards
-- 
View this message in context: http://www.nabble.com/j_security_check-Tomcat-user-status-tp19563429p19563429.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message