Is there a way to "bind" Windows Authentication Mode to a Membership Provider?
Edit:
I think I can weld this: I want to use Windows Authentication Mode, but be able to get a list of users like you with Membership.GetAllUsers()
.
I am trying to develop a solution for intranet use so all users will be authenticated. I guess I'm looking for the best of both world solutions.
Here is the gist (I'll edit later for clarification)
- I want to use Windows Authentication Mode. But then
Membership.GetUser()
there isnull
. - I need a persistent foreign key in my data to reference the authenticated user. Also I need to have the email address of the users for notifications; Windows auth does not provide this.
- Any requests to ActiveDirectory will require WindowsIdentity impersonation. IT will not provide a "system" account for this use.
Are there any examples or solutions that fit my needs?
0
a source to share