在FinalBuilder中,如何将HTTP Get File操作与Windows身份验证一起使用? [英] In FinalBuilder, how do I use the HTTP Get File action with Windows Authentication?

查看:87
本文介绍了在FinalBuilder中,如何将HTTP Get File操作与Windows身份验证一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个FinalBuilder项目,我在其中将ASP.Net网站部署到配置为IIS中网站的远程文件夹中. 作为构建脚本的一部分,我想使用FinalBuilder操作 HTTP Get File 帮助确定我的部署是否成功.

I have a FinalBuilder project where I deploy an ASP.Net website to a remote folder, configured as a website in IIS. As part of my build script, I want to use the FinalBuilder action HTTP Get File to help determine whether my deployment was succesful.

我遇到了麻烦,因为该网站(在IIS 6下)配置为使用集成Windows身份验证,并且未启用匿名访问.

I'm having difficulty, because the website is configured (under IIS 6) to use Integrated Windows Authentication, and anonymous access is not enabled.

现在,HTTP Get File操作只有几个属性,其中一个是安全性部分,其中包含用户名和密码.太棒了,我想!我可以在其中放入一些有效的凭据,在检索我的文件时,FinalBuilder将模拟这些凭据. 原来我弄错了.我收到以下错误:

Now the HTTP Get File action, has only a handful of properties, one of which is a security section, containing a UserName and Password. Great I thought! I can just put some valid credentials in there, which FinalBuilder will impersonate, whilst retrieving my file. It turns out I was mistaken. I receive the following error:

错误检索网址:套接字错误#10061 连接被拒绝.

Error retrieving url : Socket Error # 10061 Connection refused.

如果我在未设置安全用户名和密码的情况下运行 操作,则会收到以下错误消息:

If I run the action without setting the Security Username and Password, I get the following error:

错误获取网址:HTTP/1.1 401未经授权的响应代码:401

Error retrieving url : HTTP/1.1 401 Unauthorized Response Code : 401

有些事实可以帮助解决我的问题. 我在安装Windows Server 2003的同时运行FinalBuilder 6 Professional,并将ASP.Net网站部署到公司LAN内的远程IIS6服务器上. 如果将远程服务器上的IIS配置为允许匿名访问,则可以运行HTTP Get File操作而不会出现错误.但是,在我们的情况下,不能运行具有匿名访问权限的特定站点.

Here are some facts to help with the context of my problem. I'm running FinalBuilder 6 Professional, upon a Windows Server 2003 installation, and deploying my ASP.Net website to a remote IIS6 server within our corporate LAN. If I configure IIS on the remote server to allow Anonymous access, I can run the HTTP Get File action without error. However, running this particular site with anon access is not acceptable in our situation.

任何人都可以帮助建议解决方法吗?

Can anyone help suggest a workaround?

推荐答案

对于确切的答案,我认为

For a definitive answer, I think the Finalbuilder Forum is probably your best bet.

不过,我的猜测是FB使用的HTTP库不支持Windows身份验证,并且由于无法协商通用的身份验证方法而失败了.由于"HTTP Get File操作"也不支持HTTPS,因此在您的站点上允许基本身份验证的可能解决方法不是一个好主意,因为您将通过纯文本在网络上传递凭据.

My guess, though, is that the HTTP library used by FB doesn't support Windows authentication, and is failing because no common authentication method can be negotiated. Since HTTPS isn't supported either by the 'HTTP Get File action', the possible workaround of allowing basic authentication on your site isn't a good idea, as you would be passing credentials over the network in plain text.

我能想到的唯一剩下的解决方法(除了等待将来的FB版本外)是创建自己的FB操作来检索文件.使用.NET Framework System.Net.WebClient ,那应该是微不足道的.只需从独立的EXE开始,以确保一切正常,然后使用FinalBuilder Action Studio将其重构为真实"动作(如果甚至需要:生成一个外部EXE可能就可以了).

The only remaining workaround I can think of (other than waiting for a future FB release), is creating your own FB action to retrieve the file. Using the .NET Framework System.Net.WebClient, that should be trivial. Just start with a standalone EXE to make sure everything works, then refactor it into a 'real' action using FinalBuilder Action Studio (if that's even required: spawning an external EXE may work just fine in your case).

这篇关于在FinalBuilder中,如何将HTTP Get File操作与Windows身份验证一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆