You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Harrison <pe...@nothingbutnet.co.nz> on 2003/09/23 07:29:03 UTC
Single Login Authentication with Tomcat
I was wondering it anyone knows how to do NT based one login authentication
with web applications. I was hoping there is some way a client can be
authenticated based on their system login.
Obviously there would have to be a common authentication service like LDAP or
Active Directory involved. Is there some kind of Applet or ActiveX component
which can be used to transmit something back to the server to authenticate?
Regards,
Peter
PS : I know you can have a Realms based login - the question is how to use the
system login to authenticate web apps.
Re: Single Login Authentication with Tomcat
Posted by "Frode E. Moe" <fr...@coretrek.no>.
On Tue, Sep 23, 2003 at 17:29:03 +1200, Peter Harrison wrote:
> I was wondering it anyone knows how to do NT based one login authentication
> with web applications. I was hoping there is some way a client can be
> authenticated based on their system login.
>
> Obviously there would have to be a common authentication service like LDAP or
> Active Directory involved. Is there some kind of Applet or ActiveX component
> which can be used to transmit something back to the server to authenticate?
>
Check out http://jcifs.samba.org. You can use this as a servlet filter
to do NTLM login, against a windows domain controller.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Single Login Authentication with Tomcat
Posted by Mario Ivankovits <ma...@ops.co.at>.
> There are two solutions:
> 1. Use JNDI realm to talk to Active Directory.
> 2. Collect credentials yourself and use native code to call the WinAPI
> function LogonUser.
>
> I have written a centralized authentication service. One of the modules
> that I created to authenticate users against a Windows domain uses method
2
> above.
I have used a modification of method 1. Modified JNDIrealm and user
certificates.
Thus, it is possible to also allow passwordless login for homeworker.
Maybe you might take a look at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7831. For the source and
additional infos.
Mario
Re: Single Login Authentication with Tomcat
Posted by Mario Ivankovits <ma...@ops.co.at>.
> There are two solutions:
> 1. Use JNDI realm to talk to Active Directory.
> 2. Collect credentials yourself and use native code to call the WinAPI
> function LogonUser.
>
> I have written a centralized authentication service. One of the modules
> that I created to authenticate users against a Windows domain uses method
2
> above.
I have used a modification of method 1. Modified JNDIrealm and user
certificates.
Thus, it is possible to also allow passwordless login for homeworker.
Maybe you might take a look at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7831. For the source and
additional infos.
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Single Login Authentication with Tomcat
Posted by Christopher Williams <cc...@ntlworld.com>.
> I believe somewhere on java.sun.com I saw an article about setting up
> JAAS as a tomcat realm to use NT authorisation.
>
There's a big problem with JAAS and the NTLoginModule: it gives you the
details of the currently logged on user. For a web app, this will be the
user under which Tomcat is being run, not the person who has typed in his
name and password in his browser.
There are two solutions:
1. Use JNDI realm to talk to Active Directory.
2. Collect credentials yourself and use native code to call the WinAPI
function LogonUser.
I have written a centralized authentication service. One of the modules
that I created to authenticate users against a Windows domain uses method 2
above.
Kind regards,
Chris Williams.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Single Login Authentication with Tomcat
Posted by Christopher Williams <cc...@ntlworld.com>.
> I believe somewhere on java.sun.com I saw an article about setting up
> JAAS as a tomcat realm to use NT authorisation.
>
There's a big problem with JAAS and the NTLoginModule: it gives you the
details of the currently logged on user. For a web app, this will be the
user under which Tomcat is being run, not the person who has typed in his
name and password in his browser.
There are two solutions:
1. Use JNDI realm to talk to Active Directory.
2. Collect credentials yourself and use native code to call the WinAPI
function LogonUser.
I have written a centralized authentication service. One of the modules
that I created to authenticate users against a Windows domain uses method 2
above.
Kind regards,
Chris Williams.
Re: Single Login Authentication with Tomcat
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
I believe somewhere on java.sun.com I saw an article about setting up
JAAS as a tomcat realm to use NT authorisation.
Good luck,
Adam
On 09/23/2003 07:29 AM Peter Harrison wrote:
> I was wondering it anyone knows how to do NT based one login authentication
> with web applications. I was hoping there is some way a client can be
> authenticated based on their system login.
>
> Obviously there would have to be a common authentication service like LDAP or
> Active Directory involved. Is there some kind of Applet or ActiveX component
> which can be used to transmit something back to the server to authenticate?
>
> Regards,
> Peter
>
> PS : I know you can have a Realms based login - the question is how to use the
> system login to authenticate web apps.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
Re: Single Login Authentication with Tomcat
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
I believe somewhere on java.sun.com I saw an article about setting up
JAAS as a tomcat realm to use NT authorisation.
Good luck,
Adam
On 09/23/2003 07:29 AM Peter Harrison wrote:
> I was wondering it anyone knows how to do NT based one login authentication
> with web applications. I was hoping there is some way a client can be
> authenticated based on their system login.
>
> Obviously there would have to be a common authentication service like LDAP or
> Active Directory involved. Is there some kind of Applet or ActiveX component
> which can be used to transmit something back to the server to authenticate?
>
> Regards,
> Peter
>
> PS : I know you can have a Realms based login - the question is how to use the
> system login to authenticate web apps.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Single Login Authentication with Tomcat
Posted by "Frode E. Moe" <fr...@coretrek.no>.
On Tue, Sep 23, 2003 at 17:29:03 +1200, Peter Harrison wrote:
> I was wondering it anyone knows how to do NT based one login authentication
> with web applications. I was hoping there is some way a client can be
> authenticated based on their system login.
>
> Obviously there would have to be a common authentication service like LDAP or
> Active Directory involved. Is there some kind of Applet or ActiveX component
> which can be used to transmit something back to the server to authenticate?
>
Check out http://jcifs.samba.org. You can use this as a servlet filter
to do NTLM login, against a windows domain controller.