You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arun <ar...@gmail.com> on 2008/02/01 11:29:49 UTC

Struts and Windows Authentication

Hi,

I have a web application in which I need to implement windows
authentication.
Basically there is a login screen where we can enter username and password.
These users are the users that are there in OS.
The username is like domainname\username and password is the password.
A  basic authentication dialog wil popup asking this. It should authenticate
against the domain name server.
And forward to home page with the login information.
Can anybody help me on this.?


-- 
Thanks
Arun George

Re: Struts and Windows Authentication

Posted by Arun <ar...@gmail.com>.
Martin,

 I can use ActiveDirectory for authentication directly. I prefer that
because I have less code to worry about. How to do that with tomcat I dont
know.


On 2/2/08, Martin Gainty <mg...@hotmail.com> wrote:
>
> Hi Arun-
>
> following up on Antonio's suggestion-
> did you look at setting the AD properties ?
> http://jcifs.samba.org/src/docs/ntlmhttpauth.html#props
> (and then restart the container)
>
> ?
> Martin
> ----- Original Message -----
> From: "Arun" <ar...@gmail.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Saturday, February 02, 2008 10:48 AM
> Subject: Re: Struts and Windows Authentication
>
>
> > I am using tomcat. Is it possible implement container managed security
> with
> > this?
> >
> > On Feb 1, 2008 7:42 PM, Cory D. Wiles <kw...@gmail.com> wrote:
> >
> > > At my job we authenticate our users directly using Active Directory
> using
> > > container managed security.
> > >
> > > What container are you using?
> > >
> > > On Feb 1, 2008 4:48 AM, Antonio Petrelli <an...@gmail.com>
> > > wrote:
> > >
> > > > 2008/2/1, Arun <ar...@gmail.com>:
> > > > > Hi,
> > > > >
> > > > > I have a web application in which I need to implement windows
> > > > > authentication.
> > > > > Basically there is a login screen where we can enter username and
> > > > password.
> > > > > These users are the users that are there in OS.
> > > > > The username is like domainname\username and password is the
> password.
> > > > > A  basic authentication dialog wil popup asking this. It should
> > > > authenticate
> > > > > against the domain name server.
> > > > > And forward to home page with the login information.
> > > > > Can anybody help me on this.?
> > > >
> > > > This may help you a lot:
> > > > http://jcifs.samba.org/src/docs/ntlmhttpauth.html
> > > >
> > > > Ciao
> > > > Antonio
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Cory Wiles
> > > kwylez@gmail.com
> > > http://www.corywiles.com
> > > http://alphaprevails.blogspot.com
> > >
> >
> >
> >
> > --
> > Thanks
> > Arun George
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Thanks
Arun George

Re: Struts and Windows Authentication

Posted by Martin Gainty <mg...@hotmail.com>.
Hi Arun-

following up on Antonio's suggestion-
did you look at setting the AD properties ?
http://jcifs.samba.org/src/docs/ntlmhttpauth.html#props
(and then restart the container)

?
Martin
----- Original Message -----
From: "Arun" <ar...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Saturday, February 02, 2008 10:48 AM
Subject: Re: Struts and Windows Authentication


> I am using tomcat. Is it possible implement container managed security
with
> this?
>
> On Feb 1, 2008 7:42 PM, Cory D. Wiles <kw...@gmail.com> wrote:
>
> > At my job we authenticate our users directly using Active Directory
using
> > container managed security.
> >
> > What container are you using?
> >
> > On Feb 1, 2008 4:48 AM, Antonio Petrelli <an...@gmail.com>
> > wrote:
> >
> > > 2008/2/1, Arun <ar...@gmail.com>:
> > > > Hi,
> > > >
> > > > I have a web application in which I need to implement windows
> > > > authentication.
> > > > Basically there is a login screen where we can enter username and
> > > password.
> > > > These users are the users that are there in OS.
> > > > The username is like domainname\username and password is the
password.
> > > > A  basic authentication dialog wil popup asking this. It should
> > > authenticate
> > > > against the domain name server.
> > > > And forward to home page with the login information.
> > > > Can anybody help me on this.?
> > >
> > > This may help you a lot:
> > > http://jcifs.samba.org/src/docs/ntlmhttpauth.html
> > >
> > > Ciao
> > > Antonio
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> >
> > --
> > Cory Wiles
> > kwylez@gmail.com
> > http://www.corywiles.com
> > http://alphaprevails.blogspot.com
> >
>
>
>
> --
> Thanks
> Arun George
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[OT] Re: Struts and Windows Authentication

Posted by Dave Newton <ne...@yahoo.com>.
--- Arun <ar...@gmail.com> wrote:
> I am using tomcat. Is it possible implement container managed security with
this?

Yes; see the Tomcat docs[1,2].

Dave

[1] http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
[2] http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html

> 
> On Feb 1, 2008 7:42 PM, Cory D. Wiles <kw...@gmail.com> wrote:
> 
> > At my job we authenticate our users directly using Active Directory using
> > container managed security.
> >
> > What container are you using?
> >
> > On Feb 1, 2008 4:48 AM, Antonio Petrelli <an...@gmail.com>
> > wrote:
> >
> > > 2008/2/1, Arun <ar...@gmail.com>:
> > > > Hi,
> > > >
> > > > I have a web application in which I need to implement windows
> > > > authentication.
> > > > Basically there is a login screen where we can enter username and
> > > password.
> > > > These users are the users that are there in OS.
> > > > The username is like domainname\username and password is the
> password.
> > > > A  basic authentication dialog wil popup asking this. It should
> > > authenticate
> > > > against the domain name server.
> > > > And forward to home page with the login information.
> > > > Can anybody help me on this.?
> > >
> > > This may help you a lot:
> > > http://jcifs.samba.org/src/docs/ntlmhttpauth.html
> > >
> > > Ciao
> > > Antonio
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> >
> > --
> > Cory Wiles
> > kwylez@gmail.com
> > http://www.corywiles.com
> > http://alphaprevails.blogspot.com
> >
> 
> 
> 
> -- 
> Thanks
> Arun George
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts and Windows Authentication

Posted by Arun <ar...@gmail.com>.
I am using tomcat. Is it possible implement container managed security with
this?

On Feb 1, 2008 7:42 PM, Cory D. Wiles <kw...@gmail.com> wrote:

> At my job we authenticate our users directly using Active Directory using
> container managed security.
>
> What container are you using?
>
> On Feb 1, 2008 4:48 AM, Antonio Petrelli <an...@gmail.com>
> wrote:
>
> > 2008/2/1, Arun <ar...@gmail.com>:
> > > Hi,
> > >
> > > I have a web application in which I need to implement windows
> > > authentication.
> > > Basically there is a login screen where we can enter username and
> > password.
> > > These users are the users that are there in OS.
> > > The username is like domainname\username and password is the password.
> > > A  basic authentication dialog wil popup asking this. It should
> > authenticate
> > > against the domain name server.
> > > And forward to home page with the login information.
> > > Can anybody help me on this.?
> >
> > This may help you a lot:
> > http://jcifs.samba.org/src/docs/ntlmhttpauth.html
> >
> > Ciao
> > Antonio
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Cory Wiles
> kwylez@gmail.com
> http://www.corywiles.com
> http://alphaprevails.blogspot.com
>



-- 
Thanks
Arun George

Re: Struts and Windows Authentication

Posted by "Cory D. Wiles" <kw...@gmail.com>.
At my job we authenticate our users directly using Active Directory using
container managed security.

What container are you using?

On Feb 1, 2008 4:48 AM, Antonio Petrelli <an...@gmail.com> wrote:

> 2008/2/1, Arun <ar...@gmail.com>:
> > Hi,
> >
> > I have a web application in which I need to implement windows
> > authentication.
> > Basically there is a login screen where we can enter username and
> password.
> > These users are the users that are there in OS.
> > The username is like domainname\username and password is the password.
> > A  basic authentication dialog wil popup asking this. It should
> authenticate
> > against the domain name server.
> > And forward to home page with the login information.
> > Can anybody help me on this.?
>
> This may help you a lot:
> http://jcifs.samba.org/src/docs/ntlmhttpauth.html
>
> Ciao
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Cory Wiles
kwylez@gmail.com
http://www.corywiles.com
http://alphaprevails.blogspot.com

Re: Struts and Windows Authentication

Posted by Antonio Petrelli <an...@gmail.com>.
2008/2/1, Arun <ar...@gmail.com>:
> Hi,
>
> I have a web application in which I need to implement windows
> authentication.
> Basically there is a login screen where we can enter username and password.
> These users are the users that are there in OS.
> The username is like domainname\username and password is the password.
> A  basic authentication dialog wil popup asking this. It should authenticate
> against the domain name server.
> And forward to home page with the login information.
> Can anybody help me on this.?

This may help you a lot:
http://jcifs.samba.org/src/docs/ntlmhttpauth.html

Ciao
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org