You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Denis <su...@gmail.com> on 2013/02/25 11:06:53 UTC

Does windows authentication works on Tomcat under Linux.

Hello,

     I want to use Tomcat's Windows Authentication 
<http://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html#Third_party_libraries> 
feature to have a reliable domain user name via 
HTTPServletRequest.getRemoteUser() within my servlet.

     Questions:

     1) Is Tomcat's Windows authentication supposed to work in my env?

  * Application Server: apache-tomcat-7.0.21
  * JDK version: 1.6.0_26
  * OS: Red Hat Enterprise Linux Server release 5.5 (Tikanga)

     2) Any additional setup required to be able to access domain 
username via HTTPServletRequest.getRemoteUser() within my servlet?


Re: Does windows authentication works on Tomcat under Linux.

Posted by Denis <su...@gmail.com>.
It will be helpful for those who don't have time to try-and-fail.

On 2/25/2013 2:10 PM, Mark Thomas wrote:
> On 25/02/2013 10:48, André Warnier wrote:
>> Denis wrote:
>>> Hello,
>>>
>>>     I want to use Tomcat's Windows Authentication
>>> <http://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html#Third_party_libraries> 
>>>
>>> feature to have a reliable domain user name via
>>> HTTPServletRequest.getRemoteUser() within my servlet.
>>>
>>>     Questions:
>>>
>>>     1) Is Tomcat's Windows authentication supposed to work in my env?
>>>
>>>  * Application Server: apache-tomcat-7.0.21
>>>  * JDK version: 1.6.0_26
>>>  * OS: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
>>>
>>>     2) Any additional setup required to be able to access domain
>>> username via HTTPServletRequest.getRemoteUser() within my servlet?
>>>
>>>
>> Hi.
>> I do not know either if the above is supposed to work also under Linux
>> as a platform.
>> It is not very clear in the Tomcat docs, and I have asked a couple of
>> times on the list without getting much of an answer.  (Probably because
>> few people know).
>
> It should work but I haven't tested it.
>
> I suggest opening an enhancement request for the docs to be updated to 
> include a known working Linux config. I should be able to take a look 
> at doing that once I get back from ApacheCon next week.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Re: Does windows authentication works on Tomcat under Linux.

Posted by Mark Thomas <ma...@apache.org>.
On 25/02/2013 10:48, André Warnier wrote:
> Denis wrote:
>> Hello,
>>
>>     I want to use Tomcat's Windows Authentication
>> <http://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html#Third_party_libraries>
>> feature to have a reliable domain user name via
>> HTTPServletRequest.getRemoteUser() within my servlet.
>>
>>     Questions:
>>
>>     1) Is Tomcat's Windows authentication supposed to work in my env?
>>
>>  * Application Server: apache-tomcat-7.0.21
>>  * JDK version: 1.6.0_26
>>  * OS: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
>>
>>     2) Any additional setup required to be able to access domain
>> username via HTTPServletRequest.getRemoteUser() within my servlet?
>>
>>
> Hi.
> I do not know either if the above is supposed to work also under Linux
> as a platform.
> It is not very clear in the Tomcat docs, and I have asked a couple of
> times on the list without getting much of an answer.  (Probably because
> few people know).

It should work but I haven't tested it.

I suggest opening an enhancement request for the docs to be updated to 
include a known working Linux config. I should be able to take a look at 
doing that once I get back from ApacheCon next week.

Mark


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


Re: Does windows authentication works on Tomcat under Linux.

Posted by André Warnier <aw...@ice-sa.com>.
Denis wrote:
> Hello,
> 
>     I want to use Tomcat's Windows Authentication 
> <http://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html#Third_party_libraries> 
> feature to have a reliable domain user name via 
> HTTPServletRequest.getRemoteUser() within my servlet.
> 
>     Questions:
> 
>     1) Is Tomcat's Windows authentication supposed to work in my env?
> 
>  * Application Server: apache-tomcat-7.0.21
>  * JDK version: 1.6.0_26
>  * OS: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
> 
>     2) Any additional setup required to be able to access domain 
> username via HTTPServletRequest.getRemoteUser() within my servlet?
> 
> 
Hi.
I do not know either if the above is supposed to work also under Linux as a platform.
It is not very clear in the Tomcat docs, and I have asked a couple of times on the list 
without getting much of an answer.  (Probably because few people know).

Now just in case it doesn't work, the following works fine under Linux as well as under 
Windows :
Jespa , at www.ioplex.com

You can download it and test it for 60 days free, and the final license costs are very 
moderate.
(I have no commercial interest in that, I just use it happily).

For Jespa, the answers to your questions are :
1) yes, it will work
2) apart from the setup of Jespa itself, no additional setup or change in the app is required.
The setup of Jespa does require the intervention of a sysadmin at the site though, because 
it requires creating a "Windows machine account" for Jespa. See the doc, also available 
for download.

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