RE: How to pass Windows login credentials to Active Directory
From: Lucas Canavan [MSFT] (lucascan_at_online.microsoft.com)
Date: 11/30/04
- Next message: arjun: "isInRole"
- Previous message: Scott Allen: "Re: dynamically load DLL exception when calling Activator.CreateInstance(type, object[])"
- In reply to: KSK: "How to pass Windows login credentials to Active Directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 30 Nov 2004 03:00:44 GMT
--------------------
>From: KSK <metridevkk@hotmail.com>
>Subject: How to pass Windows login credentials to Active
> Directory
>Message-ID: <OEKU#em1EHA.3416@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>Date: Mon, 29 Nov 2004 15:04:11 -0800
>NNTP-Posting-Host: haw-66-102-130-30.vel.net 66.102.130.30
>Lines: 1
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.security:12454
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Hi,
>I am using windows integrated authentication for my asp.net intranet
application.
>basically, I have to pass the windows username & password to login to the
Active Directory for that user to update his/her profile.
>
>I could get the name of currently logged-in user using:
>User.Identity.Name (which returns me both domain & username)
>
>How do i get the password, so that I can create a directoryentry as
follows:
>Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://test.com",
Username, pswd)
>
>
>I am a newbie, so any help is greatly appreciated!! Its urgent
>
>___
>Newsgroups brought to you courtesy of www.dotnetjohn.com
>
Hi,
The attached code sample illustrates how to allow a user to update their AD
profile via an ASP.NET page. The example allows to user to edit only their
address however it could easily be enhanced to allow editing of other
attributes also.
Note, you'll need to ensure IIS is configured for integrated windows
authentication AND your web server is setup to allow delegation.
Delegation can be tricky to setup/troubleshoot so here's some links that
should help.
326089 HOW TO: Enable Kerberos on a Non-Domain Controller for IIS Web
http://support.microsoft.com/?id=326089
How To: Implement Kerberos Delegation for Windows 2000
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht
ml/SecNetHT05.asp
Regards,
Lucas Canavan | Support Professional | Microsoft Developer Support |
B Comp (Info Sys) | MCSD | MCSD for .NET | MCDBA
This posting is provided "AS IS" with no warranties, and confers no rights.
- application/octet-stream attachment: adtest.aspx
- application/octet-stream attachment: web.config
- Next message: arjun: "isInRole"
- Previous message: Scott Allen: "Re: dynamically load DLL exception when calling Activator.CreateInstance(type, object[])"
- In reply to: KSK: "How to pass Windows login credentials to Active Directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|