Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2009, 03:15 AM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default How to authenticate with Active Directory?

I am developing an application in ASP.NET. I need to do two things:

1- The user who logges in the application (through my login.aspx page) must also be authenticated by Active Directory since every user is also registered on AD
and has the same user name.

2- After login, the application must run under his AD account instead of anonymous user, IUSR_MachineName.

any code example will be highly appreciated. Thanks
__________________
BaburMan
 
Old September 5th, 2009, 06:35 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look here: http://www.google.com/search?hl=en&s...ory+pro&aqi=g2

You'll find useful articles like this one:

http://msdn.microsoft.com/en-us/library/ms998360.aspx

The IUSR_MachineName is not used by default by ASP.NET. Instead, it uses Network Service. To impersonate the user, look at the identity element: http://msdn.microsoft.com/en-us/library/72wdk8cc.aspx

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 7th, 2009, 09:05 AM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Smile Thanks a lot.

Thanks a lot!

Very helpful articles. Going to implement them in the next few hours.
__________________
BaburMan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 01:26 AM
About Active Directory apalmero VB How-To 1 April 8th, 2005 04:06 PM
Trying to Authenticate with Active Directory DrewPeterson89 C# 1 April 6th, 2005 10:39 AM
About Active Directory apalmero VS.NET 2002/2003 1 November 9th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.