It's not a secret anymore!*
The moose likes Servlets and the fly likes submit parameters other than j_username & j_password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "submit parameters other than j_username & j_password" Watch "submit parameters other than j_username & j_password" New topic
Author

submit parameters other than j_username & j_password

rr.jai ganesh
Greenhorn

Joined: Nov 17, 2010
Posts: 1
In tomcat server, we plan to implement form based authentication using JNDI realm (for our new project). Apart from user name and password, we require domain name from user.

Req object contains username, passwors and domain. Is it possible to retrieve domain value from req in realm class.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
You'd have to create your realm implementation by extending JNDIRealm. Then you could grab the request (in either the hasUserDataPermission or hasResourcePermission methods), from which it should be possible to get all request parameters (assuming that "domain name" is a parameter passed in from the login form).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: submit parameters other than j_username & j_password
 
Similar Threads
what is realm. ???
REALM NAME
war, weblogic 8.1 and security realm's
Calling IIS web page from java (that is deployed in Weblogic) using Windows security
How to get User groups and Users from WindowsNTAuthenticator in WLS 9.1