Re: programmatically login using LDAP and impersonation
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Nov 2006 22:06:53 +0000 (UTC)
In Windows 2003 domains you can impersonat an account by using the UPN (user@domain)
e.g.
WindowsIdentity id = new WindowsIdentity(username);
id.Impersonate();
---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com
I'm on a network system that has some pretty strict policies that I
can not change. My criteria is to use forms login for extranet users,
against a sql server database and impersonate an account that is on an
intranet Active Directory.
Saying it a different way, I need to impersonate an intranet Active
directory account that must be authenticated using Kerberos
authentication.
I'm stuck at this point trying to figure out how to programticly
impersonate the account that will be used to access the sql server. It
will only allow windows authentication, our system uses LDAP windows
auth, that runs thru a kerberos portal.
*sigh* The only thing I can think of is to programaticly log in the
intranet account, get the authentication ticket assign that ticket to
the user, then using the login name and password they provided check
the database and determine authorization from there. Is there another
way, am I missing something? If I'm not missing something where can I
get the information that I need?
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.
- Follow-Ups:
- Re: programmatically login using LDAP and impersonation
- From: Joe Kaplan
- Re: programmatically login using LDAP and impersonation
- References:
- Prev by Date: Re: programmatically login using LDAP and impersonation
- Next by Date: Re: programmatically login using LDAP and impersonation
- Previous by thread: Re: programmatically login using LDAP and impersonation
- Next by thread: Re: programmatically login using LDAP and impersonation
- Index(es):
Relevant Pages
|
|