Hi,
I have a problem with my form authentication with LDAP. What appens:
in my web config
<authentication mode="Forms">
<identity impersonate="true"/>
And developped the authentication using ActiveDirectoryMembershipProvider, the implementation works fine, and when my user inserts his windows name and password on his machine he gets authenticated and he can work without problems.
I get some problem when the same user goes to another machine on which another user is logged in. after searching aroud i found out that what happens is the following thing:
I use the integrated security to log on the sql server to retrieve the data, and my MACHINEUSER does not have the rights to connect to the db.
I saw several post taht talks about this problem, but I still could not understand if there is a way to let impersonate to the windowsIdentity my WEBUSER or not.
Can maybe somebody tell me if what I'm trying to do is even possible or there is a work around?
cecchin
Member
17 Points
25 Posts
Impersonation with form authentication
Feb 13, 2012 12:10 PM|LINK
Hi,
I have a problem with my form authentication with LDAP. What appens:
in my web config
I get some problem when the same user goes to another machine on which another user is logged in. after searching aroud i found out that what happens is the following thing:
Page.User.Identity.Name: WEBUSER
Principal.WindowsIdentity.GetCurrent().Name: MACHINEUSER
Thread.CurrentPrincipal.Identity.Name: WEBUSER
I use the integrated security to log on the sql server to retrieve the data, and my MACHINEUSER does not have the rights to connect to the db.
I saw several post taht talks about this problem, but I still could not understand if there is a way to let impersonate to the windowsIdentity my WEBUSER or not.
Can maybe somebody tell me if what I'm trying to do is even possible or there is a work around?
thank you very much
cecchin
Member
17 Points
25 Posts
Re: Impersonation with form authentication
Feb 15, 2012 01:45 PM|LINK
Sorry I just realized i was in the wrong forum