469,306 Members | 2,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Windows Domain Authentication

Dear All

Newbie question here. i design form to take input from
user(username,password). How do i autheticate if the user is Windows Domain
user and once it has authenticated successfully, how do i forward to the
success page.

Any help would be appreciated.

Regards

Zille.
Jul 19 '05 #1
5 6803
Don't use a form, just use Windows Authentication on the application/site.

You can't take a plain text password from a form, and "check" it against
Windows Authentication, AFAIK. This would be a *H*U*G*E* security hole.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Zille Hassan" <zh*****@umg.com.sa> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
Dear All

Newbie question here. i design form to take input from
user(username,password). How do i autheticate if the user is Windows Domain user and once it has authenticated successfully, how do i forward to the
success page.

Any help would be appreciated.

Regards

Zille.

Jul 19 '05 #2
You could use ADSI to do it...

Cheers
Ken
"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
: Don't use a form, just use Windows Authentication on the application/site.
:
: You can't take a plain text password from a form, and "check" it against
: Windows Authentication, AFAIK. This would be a *H*U*G*E* security hole.
:
: --
: Aaron Bertrand
: SQL Server MVP
: http://www.aspfaq.com/
:
:
:
:
: "Zille Hassan" <zh*****@umg.com.sa> wrote in message
: news:e9**************@TK2MSFTNGP11.phx.gbl...
: > Dear All
: >
: > Newbie question here. i design form to take input from
: > user(username,password). How do i autheticate if the user is Windows
: Domain
: > user and once it has authenticated successfully, how do i forward to the
: > success page.
: >
: > Any help would be appreciated.
: >
: > Regards
: >
: > Zille.
: >
: >
:
:
Jul 19 '05 #3
But how do i do it, i am really new to ASP. do i have to enable Windows
authentication from the IIS admin.

and how do i store the username and password taken from the user in session
variables

"Zille Hassan" <zh*****@umg.com.sa> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
Dear All

Newbie question here. i design form to take input from
user(username,password). How do i autheticate if the user is Windows Domain user and once it has authenticated successfully, how do i forward to the
success page.

Any help would be appreciated.

Regards

Zille.

Jul 19 '05 #4
> and how do i store the username and password taken from the user in
session
variables


I hope that even through ADSI this is impossible. A programmer should never
be able to have access to Windows passwords, for reasons that should be
obvious.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #5
On Mon, 1 Dec 2003 08:38:18 +0300, "Zille Hassan" <zh*****@umg.com.sa>
wrote:
But how do i do it, i am really new to ASP. do i have to enable Windows
authentication from the IIS admin.
Take a look at:

http://www.iisfaq.com/default.aspx?View=P78&P=145
and how do i store the username and password taken from the user in session
variables
Don't ever store the password in a session variable. You could set a
session variable for "Logged In" but with Windows authentication
there's no real reason to (at least that my feeble little mind can
come up with at the moment...). Windows knows whether you're logged
in or not.

Jeff
"Zille Hassan" <zh*****@umg.com.sa> wrote in message
news:e9**************@TK2MSFTNGP11.phx.gbl...
Dear All

Newbie question here. i design form to take input from
user(username,password). How do i autheticate if the user is Windows

Domain
user and once it has authenticated successfully, how do i forward to the
success page.

Any help would be appreciated.

Regards

Zille.


Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mark | last post: by
2 posts views Thread by Joseph Geretz | last post: by
8 posts views Thread by Nils Magnus Englund | last post: by
3 posts views Thread by =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post: by
6 posts views Thread by =?Utf-8?B?UGFyYWcgR2Fpa3dhZA==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.