I have two virtual directories (VD). Both have anonymous access disabled and window's integrated authentication on. I need a user to authenticate into one VD and then do a ServerXMLHTTP Post to the other VD. I need the ServerXMLHTTP post to carry the users credentials from the first VD to the second so the user can authenticate there as well. I can make this work on two VDs on the same server if I run proxycfg.exe to tell it that we have no proxy servers. However, it never works if the VDs are on different servers. I run the following to set it up.
c:\proxycfg -d -p "<local>" "bypass list"
Can anyone tell me why I can't get the credentials to pass on to a different server? I always get an access denied error from the second VD this way. Also, I tried this with a .Net web service and got the same results even after I explicitly assigned the users credentials to the proxy object with the below code.
oProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;