Re: Persist impersonated NT credentials across pages
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 21 Apr 2006 14:33:04 +0000 (UTC)
you can always cache the WindowsIdentity with System.Web.Cache....
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hello,
I am trying to build a web app that sits "on top" of SharePoint, but I
am having trouble with the Windows login. Here is what I want to
accomplish:
1. The user will log into my application using non-NT credentials
(stored in
DB).
2. My code then determines if this person is (for simplicity's sake) a
User
or Admin.
3. If a User, I want to log into the Windows domain using the SP_USER
domain
account.
4. If Admin, login using SP_ADMIN.
5. Then, I will link over to the SharePoint portal, having the SP_USER
or
SP_ADMIN credentials "automagically" passed.
I am having problems with steps 3 and 4. When you manually log into a
page using NT credentials--then link over to SharePoint--the Windows
credentials are automatically passed.
However, impersonated credentials fall out of context immediately
after that code block is finished executing. (The source code that I
used is similar to:
http://support.microsoft.com/default.aspx?scid=kb;en-us;306158.)
So my question, what API calls are needed to either:
- Store or otherwise persist the impersonated credentials to
out-of-context
pages
OR
- Programmatically perform a TRUE Windows domain login without user
intervention, so that credentails are automatically passed to another
page
without a Windows login prompt?
Thank you!
Eric
.
- Prev by Date: Re: Forms authentication credentials fail
- Next by Date: Re: Authentication from Active Directory and Database based user d
- Previous by thread: Re: Authentication from Active Directory and Database based user detai
- Next by thread: Custom Membership Provider - AD AND SQL
- Index(es):
Relevant Pages
|