-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tokajac,

Tokajac wrote:
> 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?

Mark's suggestion of using a VIEW is IIRC the only way this will work
with Tomcat's built-in authentication mechanism. You could write your
own Authenticator or you could use securityfilter
(http://securityfilter.sourceforge.net) which lets you implement your
own "Realm" classes as well. In there, you can do anything you want
(such as check additional tables, issue extra queries, etc.).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjXm2MACgkQ9CaO5/Lv0PBLTACaA2TzS8s5U2UiEhyEolDwRzAU
1F8AoLgYvUw87c83v+nRX3vZWTe6xHwG
=SPrG
-----END PGP SIGNATURE-----

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

Reply via email to