473,379 Members | 1,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

authenicate with AD and use impersation

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.
Nov 23 '05 #1
4 1313
Take a look at:-
http://support.microsoft.com/default...;EN-US;Q316748
http://support.microsoft.com/default...;EN-US;Q306158
Hope that helps
**If you have more question post it.
Patrick
"grey" <jk*@jhk.com> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 23 '05 #2
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/de...y/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...b;en-us;316748

How to authenticate against the Active Directory by using forms

authentication and Visual Basic .NET
================================================== =============
http://support.microsoft.com/default...b;en-us;326340

How to implement impersonation in an ASP.NET application
************************************************** ******
http://support.microsoft.com/default...b;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...rmsauthp2.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...b;en-us;318786
http://www.411asp.net/home/tutorial/...erver/activedi
************************************************** ************************************************** ******************
Enumerating Users and Groups
http://msdn.microsoft.com/library/de...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/Ge...tDirCSharp.asp

How to query Active Directory by using a bitwise filter
http://support.microsoft.com/default...b;en-us;269181

Active Directory and .NET
http://www.csharpcorner.com/UploadFi...0-a8bc89104e94
Adding new Windows User Account using Active Directory
http://www.csharpcorner.com/UploadFi...9-5310d52d03d3
How to restore deleted user accounts and their group memberships in Active
Directory
http://support.microsoft.com/default...b;en-us;840001

Listing Active Directory Users
http://www.csharpcorner.com/Uploadfi...3-013dcafba06b

Listing all Computer in Active Directory
http://www.csharpcorner.com/UploadFi...f-f71f2c5cf571

Changing User Information using Active Directory
http://www.csharpcorner.com/UploadFi...f-75a0619807f2

Setting Up the Domain Name System for Active Directory
http://support.microsoft.com/default...b;en-us;237675
Active Directory Sample1
http://www.csharpcorner.com/UploadFi...e-e841c34e3102

http://www.csharpcorner.com/Article/...SubSectionID=1

HOW TO: Configure Active Directory Certificate Mapping
http://support.microsoft.com/default...b;en-us;272175

How to configure Active Directory to allow anonymous queries
http://support.microsoft.com/default...b;en-us;320528


Nov 23 '05 #3
On Tue, 22 Nov 2005 11:14:47 +0800, "grey" <jk*@jhk.com> wrote:

¤ 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/de...ersonation.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)
Nov 23 '05 #4
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)
"grey" <jk*@jhk.com> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stephen Yip via .NET 247 | last post by:
Dear All, I would like to perform a simple task by program (VB.Net or VC#.Net). When a user logins the windows and try to run my program, how can I use his login information (username and...
0
by: carl blanchard | last post by:
Hey everyone i have followed this example http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q172998#kb3 and i have managed to log into my website via my .net forms application, when...
0
by: LouB | last post by:
I am researching a scenario with our Web Product, and am unsure about how to do it. In product 'A', we use Forms Authenication, and it works fine. The User Initially logs on with user/password etc...
0
by: Tim | last post by:
Hello, I'm trying very (too) hard to log uses LDAP (via ADSI) to autheniticate users in an A2k2 application. We have AD and I have that working slick. We are in a tranistion from NDS to AD and...
2
by: Sven Eric | last post by:
Hi All, I try to use user-impersonation in VB.NET with a user (let's call him Bill). I'm using the LogonUser function to create the token and so on. This works --> calling...
5
by: blue_nirvana | last post by:
I have a wireless windows ce device that is NOT going to be connected to a domain. What I want is an easy and effective way to authenicate the user against the domain inside the web service. Such...
1
by: Daniel Friend | last post by:
I have a page with the Login Control. If I type the user name and password and click the enter key the page reloads without doing the login.authenicate.... if I click the actual login button,...
1
by: nygiantswin2005 | last post by:
Hi I am trying to resolve this bug that I have in this application. The code is below. It will generate this Exception System.UnauthorizedAccessException: Access to the path is denied. at...
0
by: tpeczek | last post by:
Hi I'm writing windows service which is suppose to acces IIS metabase using DirectoryServices. I'm accesing IIS using the code below: DirectoryEntry iisEntry = new DirectoryEntry(@"IIS://" +...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.