自动验证 IIS 6.0 中的虚拟目录
我们有一个网站,用户提供指向网站上虚拟目录的 HTML 链接。 (想想 www.website.com/dir1;dir1 实际上是不同服务器的虚拟目录。)虚拟目录链接到的服务器需要身份验证,但是所需的用户名和密码是不变的。
每当用户尝试访问从该虚拟目录提取资源的页面时,该网页都会要求进行身份验证。 我们不希望用户每次进入网站时都必须输入身份验证信息。 我们无法控制作为虚拟目录源的服务器,但可以完全控制虚拟目录的设置。
如何设置虚拟目录,以便访问虚拟目录的网页自动提供身份验证信息?
如果您需要更多信息,请告诉我!
We have a website whose users supply HTML links to a virtual directory on the website. (Think www.website.com/dir1; dir1 is actually a virtual directory to a different server.) The server that the virtual directory links to requires authentication, however the username and password needed is constant.
Whenever a user tries to access a page that draws a resource from that virtual directory, the webpage asks for authentication. We don't want the user to have to enter in the authentication info every time they enter the site. We have no control over the server that is the source of the virtual directory, but have total control over the virtual directory's settings.
How can we set up the virtual directory so that a webpage that accesses the virtual directory automatically supplies the authentication info?
Please let me know if there's more info you need!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,除非您共享会话信息,否则您无法将身份验证从一台服务器转移到另一台服务器。 谷歌搜索会话状态服务器以获取更多信息。
然而,这可能不是您想要的。
您唯一的其他选择是完全开放第二台服务器上的资源,或者将另一台服务器上的目录设置为第一台服务器上的另一个虚拟目录。 这样一切都从第一台服务器进行身份验证。
Unfortunately there isn't a way for you to transfer your authentication from one server to another, unless you share your session information. Do a google search for session state server for more information on this.
However, this may not be what you want.
Your only other options are to completely open up the resources on the 2nd server, or set up the directory on the other server as another virtual directory on the first server. This way everything is authenticated from the 1st server.