Getting LOGON_USER from the header
Hello I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the isapi redirect dll. This seems to be working well and configured correctly. Now I am trying to get the LOGON_USER from the header. I want the windows id of the user that is hitting my web page. I am developing an Intranet site and want to do seamless login based on who the user logged into their windows machine. I know I can do this by using the command request.ServerVariables("LOGON_USER") in ASP. I also was able to get request.getHeader("LOGON_USER") to work with IIS 5.1 and JRun 4 (using the dll they provide). Does anyone know how I can get this information using Tomcat? I would be greatly appreciative. Thanks Rob J.
Re: Getting LOGON_USER from the header
Thanks for the response Gurumoorthy, but I get null for a result. Rob J. - Original Message - From: "Gurumoorthy" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, August 29, 2005 2:40 PM Subject: Re: Getting LOGON_USER from the header request.getRemoteUser() - Original Message - From: "Robert Jose" <[EMAIL PROTECTED]> To: "Tomcat User" Sent: Monday, August 29, 2005 10:44 PM Subject: Getting LOGON_USER from the header Hello I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the isapi redirect dll. This seems to be working well and configured correctly. Now I am trying to get the LOGON_USER from the header. I want the windows id of the user that is hitting my web page. I am developing an Intranet site and want to do seamless login based on who the user logged into their windows machine. I know I can do this by using the command request.ServerVariables("LOGON_USER") in ASP. I also was able to get request.getHeader("LOGON_USER") to work with IIS 5.1 and JRun 4 (using the dll they provide). Does anyone know how I can get this information using Tomcat? I would be greatly appreciative. Thanks Rob J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting LOGON_USER from the header
Thanks David, I will give this a try. Rob - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, August 29, 2005 6:16 PM Subject: Re: Getting LOGON_USER from the header By default, tomcat ignores the REMOTE_USER header from Apache or IIS in favor if it's own authentication. To get tomcat to accept the IIS authentication info, add this attribute to the element in server.xml: tomcatAuthentication="false" --David Robert Jose wrote: Thanks for the response Gurumoorthy, but I get null for a result. Rob J. - Original Message - From: "Gurumoorthy" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, August 29, 2005 2:40 PM Subject: Re: Getting LOGON_USER from the header request.getRemoteUser() - Original Message - From: "Robert Jose" <[EMAIL PROTECTED]> To: "Tomcat User" Sent: Monday, August 29, 2005 10:44 PM Subject: Getting LOGON_USER from the header Hello I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the isapi redirect dll. This seems to be working well and configured correctly. Now I am trying to get the LOGON_USER from the header. I want the windows id of the user that is hitting my web page. I am developing an Intranet site and want to do seamless login based on who the user logged into their windows machine. I know I can do this by using the command request.ServerVariables("LOGON_USER") in ASP. I also was able to get request.getHeader("LOGON_USER") to work with IIS 5.1 and JRun 4 (using the dll they provide). Does anyone know how I can get this information using Tomcat? I would be greatly appreciative. Thanks Rob J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting LOGON_USER from the header
Thanks David, that worked perfectly. I appreciate your help. Rob - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, August 29, 2005 6:16 PM Subject: Re: Getting LOGON_USER from the header By default, tomcat ignores the REMOTE_USER header from Apache or IIS in favor if it's own authentication. To get tomcat to accept the IIS authentication info, add this attribute to the element in server.xml: tomcatAuthentication="false" --David Robert Jose wrote: Thanks for the response Gurumoorthy, but I get null for a result. Rob J. - Original Message - From: "Gurumoorthy" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, August 29, 2005 2:40 PM Subject: Re: Getting LOGON_USER from the header request.getRemoteUser() - Original Message - From: "Robert Jose" <[EMAIL PROTECTED]> To: "Tomcat User" Sent: Monday, August 29, 2005 10:44 PM Subject: Getting LOGON_USER from the header Hello I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the isapi redirect dll. This seems to be working well and configured correctly. Now I am trying to get the LOGON_USER from the header. I want the windows id of the user that is hitting my web page. I am developing an Intranet site and want to do seamless login based on who the user logged into their windows machine. I know I can do this by using the command request.ServerVariables("LOGON_USER") in ASP. I also was able to get request.getHeader("LOGON_USER") to work with IIS 5.1 and JRun 4 (using the dll they provide). Does anyone know how I can get this information using Tomcat? I would be greatly appreciative. Thanks Rob J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting LOGON_USER from the header
Well, I was partially correct. It works perfectly when getting the remote user in a jsp page. What I really want to do is get the remote user in a filter. Basically, I have a filter set up to see if the user is logged in. If they are not, I want to get their remote user and check it to see if I can log them in seamlessly. I would prefer not to have to get the remote user in the jsp page and then submit a page, just to have the user not exist and have to come back to the page. Does anyone know how to get the remote user or LOGON_USER in the filter? Thanks Rob - Original Message - From: "Robert Jose" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, August 30, 2005 7:53 AM Subject: Re: Getting LOGON_USER from the header Thanks David, that worked perfectly. I appreciate your help. Rob - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, August 29, 2005 6:16 PM Subject: Re: Getting LOGON_USER from the header By default, tomcat ignores the REMOTE_USER header from Apache or IIS in favor if it's own authentication. To get tomcat to accept the IIS authentication info, add this attribute to the element in server.xml: tomcatAuthentication="false" --David Robert Jose wrote: Thanks for the response Gurumoorthy, but I get null for a result. Rob J. - Original Message - From: "Gurumoorthy" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, August 29, 2005 2:40 PM Subject: Re: Getting LOGON_USER from the header request.getRemoteUser() - Original Message - From: "Robert Jose" <[EMAIL PROTECTED]> To: "Tomcat User" Sent: Monday, August 29, 2005 10:44 PM Subject: Getting LOGON_USER from the header Hello I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the isapi redirect dll. This seems to be working well and configured correctly. Now I am trying to get the LOGON_USER from the header. I want the windows id of the user that is hitting my web page. I am developing an Intranet site and want to do seamless login based on who the user logged into their windows machine. I know I can do this by using the command request.ServerVariables("LOGON_USER") in ASP. I also was able to get request.getHeader("LOGON_USER") to work with IIS 5.1 and JRun 4 (using the dll they provide). Does anyone know how I can get this information using Tomcat? I would be greatly appreciative. Thanks Rob J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]