• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit parameters other than j_username & j_password

 
rr.jai ganesh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic