473,394 Members | 1,738 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,394 software developers and data experts.

Urgent: Connecting to active directory using cached credentials

Hello,

I'm hoping to find out if it is possible to connect
within an ASP.NET application to Active Directory with
the credentials of the person who accessed the ASP.NET
application via IIS, using windows integrated
authentication.

I've tried using ADO, ADSI, and Directory Services, but I
have yet to find a way to connect to active directory
with the security token created by IIS, when the user
accesses the ASP.NET application with windows integrated
authentication.

Being able to do this is a pretty urgent problem, so any
help anyone could provide would be extremely appreciated.

Thank you!
-Chris
Nov 18 '05 #1
3 1966
> I'm hoping to find out if it is possible to connect
within an ASP.NET application to Active Directory with
the credentials of the person who accessed the ASP.NET
application via IIS, using windows integrated
authentication.

I've tried using ADO, ADSI, and Directory Services, but I
have yet to find a way to connect to active directory
with the security token created by IIS, when the user
accesses the ASP.NET application with windows integrated
authentication.

Being able to do this is a pretty urgent problem, so any
help anyone could provide would be extremely appreciated.


I also posted this question to general.adsi.

-Chris
Nov 18 '05 #2
Are u interested in Forms or wINDOWS aUTHENTICATION?'
<an*******@discussions.microsoft.com> wrote in message
news:0a****************************@phx.gbl...
I'm hoping to find out if it is possible to connect
within an ASP.NET application to Active Directory with
the credentials of the person who accessed the ASP.NET
application via IIS, using windows integrated
authentication.

I've tried using ADO, ADSI, and Directory Services, but I
have yet to find a way to connect to active directory
with the security token created by IIS, when the user
accesses the ASP.NET application with windows integrated
authentication.

Being able to do this is a pretty urgent problem, so any
help anyone could provide would be extremely appreciated.


I also posted this question to general.adsi.

-Chris

Nov 18 '05 #3
Hi Chris:

The problem you are probably facing is the one hop limit of NTLM
authentication. The user's credentials make one hop from the browser
to the web server, and the web server can use those credentials
impersonate the user on the web server. However, the server cannot use
those credentials to make a second hop to the AD controller.

One way around this is to move up one step from impersonation to
delegation.

See:
How To Configure an ASP.NET Application for a Delegation Scenario.
http://support.microsoft.com/default...b;en-us;810572

HTH

--
Scott
http://www.OdeToCode.com/

On Wed, 6 Oct 2004 23:28:48 -0700, "Chris L" <ri********@hotmail.com>
wrote:
Hello,

I'm hoping to find out if it is possible to connect
within an ASP.NET application to Active Directory with
the credentials of the person who accessed the ASP.NET
application via IIS, using windows integrated
authentication.

I've tried using ADO, ADSI, and Directory Services, but I
have yet to find a way to connect to active directory
with the security token created by IIS, when the user
accesses the ASP.NET application with windows integrated
authentication.

Being able to do this is a pretty urgent problem, so any
help anyone could provide would be extremely appreciated.

Thank you!
-Chris


Nov 18 '05 #4

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

Similar topics

3
by: Jay | last post by:
I have an asp.net application that needs to fill a series of checkboxes with usernames from a particular group in Active Directory. Could someone please point me in the right direction in regards...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
7
by: Gordon Smith | last post by:
I have four (4) ASP.NET Web applications/Web sites on a IIS/6 - Windows Server 2003 production server. 3 of them work fine. I just installed the 4th one and it's Application_Start event is not...
9
by: Patrick | last post by:
I have an ASP.NET page that searches for someone in the corporate Active Directory. It had been working fine until recently when I changed from Basic Authentication on IIS6 back to Integrated...
6
by: varkey.mathew | last post by:
Dear all, Bear with me, a poor newbie(atleast in AD).. I have to authenticate a user ID and password for a user as a valid Active Directory user or not. I have created the IsAuthenticated...
0
by: Eagle | last post by:
Hi all. I have an intranet under Win2000 with windows XP clients. My intranet works with authentication mode="Windows", under a domain, so active directory manage the accounts. Now I need...
0
by: J Ames | last post by:
Please, if this is the incorrect forum for this question, let me know which forum is most appropriate. I want to make sure I get visibility with the proper gurus! I have a .NET console app that...
18
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
3
by: nomad | last post by:
Hi, I need to be able to check the logon credentials of a Windows XP machine, so I can then check these against active directory so that I can pull off their groups, which can then be checked in...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.