tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: j_security_check Tomcat user status
Date Mon, 22 Sep 2008 13:19:31 GMT
-----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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message