authenicate with AD and use impersation

  • Thread starter Thread starter grey
  • Start date Start date
G

grey

Could anyone help me to solve the following questions of ASP.NET
requirements.
1) Auto authentication with Active Directory (no Login screen)
2) After the user authenticated with AD, use impersation with one specificed
user to execute the apps

any sample code or site for reference.


Million thanks.
 
Hi Dear grey,

Here are some good links related to ASP.NET & Active Directory, which I have
kept for my use. But you have to go through the links and use as you need.

If there are duplicate links, please excuse me.


How To: Use Forms Authentication with Active Directory
J.D. Meier, Alex Mackman, Michael Dunner, and Srinath Vasireddy
Microsoft Corporation
================================================================
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnets

ec/html/SecNetHT02.asp

How to authenticate against the Active Directory by using Forms

authentication and Visual C# .NET
===============================================================
http://support.microsoft.com/default.aspx?scid=kb;en-us;316748

How to authenticate against the Active Directory by using forms

authentication and Visual Basic .NET
===============================================================
http://support.microsoft.com/default.aspx?scid=kb;en-us;326340

How to implement impersonation in an ASP.NET application
********************************************************
http://support.microsoft.com/default.aspx?scid=kb;en-us;306158


Using Active Directory In ASP.NET - Dump Schema Information
By Softomatix
============================================================
http://www.codeproject.com/aspnet/adsi1.asp


Using Active Directory In ASP.NET - Enumerate Active Directory Users
By Softomatix
====================================================================
http://www.codeproject.com/aspnet/adsi2.asp


ASP.NET Forms Authentication, Part 2
======================================
http://www.ondotnet.com/pub/a/dotnet/2003/01/20/formsauthp2.html


Active Directory in C# and .NET
===============================
http://www.c-sharpcorner.com/DirectoryServices.asp


HOW TO: Create An IAuthenticationModule by Using Visual C# .NET
===============================================================
http://support.microsoft.com/default.aspx?scid=kb;en-us;318786


http://www.411asp.net/home/tutorial/howto/server/activedi


**********************************************************************************************************************
Enumerating Users and Groups
http://msdn.microsoft.com/library/d...us/adam/adam/enumerating_users_and_groups.asp



Querying Microsoft Active Directory Using Microsoft .NET Framework Library
http://www.codeproject.com/dotnet/QueryADwithDotNet.asp


How to get User Data from the Active Directory
http://www.codeproject.com/csharp/GetUserFrmActDirCSharp.asp

How to query Active Directory by using a bitwise filter
http://support.microsoft.com/default.aspx?scid=kb;en-us;269181

Active Directory and .NET
http://www.csharpcorner.com/UploadF...rticleID=f432da69-47f5-4adf-9060-a8bc89104e94


Adding new Windows User Account using Active Directory
http://www.csharpcorner.com/UploadF...rticleID=909b3e54-5612-454f-a9a9-5310d52d03d3


How to restore deleted user accounts and their group memberships in Active
Directory
http://support.microsoft.com/default.aspx?scid=kb;en-us;840001

Listing Active Directory Users
http://www.csharpcorner.com/Uploadf...rticleID=1df77b53-4a4c-4891-9103-013dcafba06b

Listing all Computer in Active Directory
http://www.csharpcorner.com/UploadF...rticleID=8f1edcdb-e10a-4a7f-914f-f71f2c5cf571

Changing User Information using Active Directory
http://www.csharpcorner.com/UploadF...rticleID=223a905c-94e0-4266-a20f-75a0619807f2

Setting Up the Domain Name System for Active Directory
http://support.microsoft.com/default.aspx?scid=kb;en-us;237675


Active Directory Sample1
http://www.csharpcorner.com/UploadF...rticleID=137b2ca6-b888-435f-815e-e841c34e3102

http://www.csharpcorner.com/Article/frmDisplayArticles.aspx?SectionID=1&SubSectionID=1

HOW TO: Configure Active Directory Certificate Mapping
http://support.microsoft.com/default.aspx?scid=kb;en-us;272175

How to configure Active Directory to allow anonymous queries
http://support.microsoft.com/default.aspx?scid=kb;en-us;320528
 
¤ Could anyone help me to solve the following questions of ASP.NET
¤ requirements.
¤ 1) Auto authentication with Active Directory (no Login screen)
¤ 2) After the user authenticated with AD, use impersation with one specificed
¤ user to execute the apps
¤
¤ any sample code or site for reference.

See the following:

http://msdn.microsoft.com/library/d...-us/cpguide/html/cpconaspnetimpersonation.asp

If you don't want a logon dialog (or screen) configure your web application in IIS for Integrated
Windows security.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
its trival.

1) in iis for your vdir, disable anonymous and enable windows authenication.
2) if server 2003, set an identity for the app pool of the vdir and in the
webconfig set:

<authentication mode="Windows" />
<identity impersonate="false" />

if server 2000, in the web config set

<authentication mode="Windows" />
<identity impersonate="true" userName="domain\userid"
password="password" />

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top