Ranier - Thanks for the reply.  I have some questions on your response.  The
INT value that your get_server_value method returns how do I determine from
that what the userid is and more importantly, what calls this method and
populates the values for this method to run?

Sorry for the ignorance.

Thanks again.    

Rainer Jung-3 wrote:
> 
> static int get_server_value(LPEXTENSION_CONTROL_BLOCK lpEcb,
>                              char *name, char *buf, DWORD bufsz)
> {
>      DWORD sz = bufsz;
>      buf[0]   = '\0';
>      if (!lpEcb->GetServerVariable(lpEcb->ConnID, name,
>                                    buf, (LPDWORD) &sz))
>          return JK_FALSE;
> 
> 
> 
> On 18.05.2010 22:27, savoym wrote:
>>
>> I just got IIS to forward my request to Tomcat using the Apache
>> Tomcat-Connectors doc.
>>
>> I am trying to authenticate the user login/id that executes the request
>> to
>> my web app to be able to grab the user login and use in my java  app.
>>
>> Has anyone on this list setup a server environment variable in the
>> workers.properties file that would equal the
>> REQUEST.SERVERVARIABLE(AUTH_USER) in IIS?
>>
>> Can I get the same thing from the HttpServletRequest object by using the
>> getRemoteUser method when the request is made from IIS?
>>
>> Any help here would be appreciated.
> 
> The source says: we forward GetServerVariable of "REMOTE_USER" to 
> Tomcat. in order to let Tomcat trust the forwarded auth data, you have 
> to set tomcatAuthentication="false" as an attribute on the connector 
> element in server.xml.
> 
> Microsoft docs say: AUTH_USER:        
> 
> The name of the user as it is derived from the authorization header sent 
> by the client, before the user name is mapped to a Windows account. This 
> variable is no different from REMOTE_USER. If you have an authentication 
> filter installed on your Web server that maps incoming users to 
> accounts, use LOGON_USER to view the mapped user name.
> 
> Regards,
> 
> Rainer
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Question-on-workers.properties-file-tp28599711p28610057.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to