I've been looking into a way of passing the client ip as well as the userid and password from a JAAS login page to the JAAS login module implementation in my web code. JAAS only allows the user id and password to be passed to the login module. My idea is to have a java script code to append the ip address to the user id and then call the form submit. I just don't have the right java script code to do this. Can you help?
The web page has two input fields, j_userid and j_password, which the JAAS code knows to look it. So what javaScript code can I use to add the ip address to the j_userid field before the form submit. I was thinking of 'ip-address#userid' and then in my login module I'd take the ip address off the userid.