Ranier,

Thank you for the clarification.

As far as your instruction, let me ask the following if you don't mind:

What source are you referring to?  Do you have a URL for this source?

Also, I've been trying to pickup this "AUTH_USER" from the
HttpServletRequest.  Is that not where I can pick it up from?  I thought I
could access it from the client request via the tomcat connector but I did
not know how to do that.  

That is what I'm trying to get at to pass into my authentication method. 
Again, any help/direction would be greatly appreciated.

Thanks again so much.


Rainer Jung-3 wrote:
> 
> On 19.05.2010 17:37, savoym wrote:
>>
>> 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.
> 
> Sorry the code snippet wasn' actually meant to be included. i tried to 
> answer your question below the original post.
> 
> The function is used internally, and the int value is only a return code 
> (success or not). The function returns a string the the provided buffer 
> "buf", but that's all opaque to you. Check again for what I wrote below 
> your original post.
> 
> Regards,
> 
> Rainer
> 
>> 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-tp28599711p28612937.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