R
Rich
We have an aspnet app that allows the user to change their password. We are
using windows authentication on win2003.
In the sample code below the first call to WriteInfo call properly echos the
logged in user.
The second call (post ChangePassword) however lists the identity as NT
AUTHORITY\NETWORK SERVICE.
How can we ensure that the identity is not switched during this call?
identity = WindowsIdentity.GetCurrent()
ApplicationLog.WriteInfo("identity before ChangePassword" & identity.Name)
entry.Invoke("ChangePassword", New Object() {oldPassword, newPassword})
identity = WindowsIdentity.GetCurrent()
ApplicationLog.WriteInfo("identity after ChangePassword" & identity.Name)
Thanks
Rich M.
using windows authentication on win2003.
In the sample code below the first call to WriteInfo call properly echos the
logged in user.
The second call (post ChangePassword) however lists the identity as NT
AUTHORITY\NETWORK SERVICE.
How can we ensure that the identity is not switched during this call?
identity = WindowsIdentity.GetCurrent()
ApplicationLog.WriteInfo("identity before ChangePassword" & identity.Name)
entry.Invoke("ChangePassword", New Object() {oldPassword, newPassword})
identity = WindowsIdentity.GetCurrent()
ApplicationLog.WriteInfo("identity after ChangePassword" & identity.Name)
Thanks
Rich M.