ColdFusion 中的 NTLM 身份验证
ColdFusion 中是否有推荐的(最好是免费的)方法来访问受 NTLM 身份验证保护的远程文件? cfhttp 标签似乎仅支持基本身份验证。
Is there a recommended (and preferably free) way in ColdFusion to access a remote file that is protected by NTLM authentication? The cfhttp tag appears to only support Basic authentication.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
此 CFX 标签 - CFX_HTTP5 - 应该可以满足您的需要。 它确实要花 50 美元,但也许值得这个钱? 看起来付出的代价很小。
This CFX Tag - CFX_HTTP5 - should do what you need. It does cost $50, but perhaps it's worth the cost? Seems like a small price to pay.
这是我在以下位置找到的一些代码:
http://www.bpurcell.org/downloads/ presentations/securing_cfapps_examples.zip
还有 ldap、webservices 等的示例。我将在此处粘贴 2 个文件,以便您可以有一个想法,代码看起来应该仍然可以工作。
这是您可能感兴趣的 cfc:
Here is some code I found in:
http://www.bpurcell.org/downloads/presentations/securing_cfapps_examples.zip
There are also examples for ldap, webservices, and more.. I'll paste 2 files here so you can have an idea, code looks like it should still work.
This is the cfc that might be of interest to you:
就我而言,我使用“NTLM 授权代理服务器”
http://www.tldp.org/HOWTO/Web-Browsing-Behind-ISA-Server-HOWTO-4.html
对我来说工作正常:)
In my case I fixed this problem using 'NTLM Authorization Proxy Server'
http://www.tldp.org/HOWTO/Web-Browsing-Behind-ISA-Server-HOWTO-4.html
work fine for me :)
您可以尝试按照此处的指导进行操作:http://cfsilence.com/blog/client/index.cfm/2008/3/17/ColdFusionSharepoint-Integration--Part-1--Authenticating
这就是您所做的事情:
改成
You could try following the guidance here: http://cfsilence.com/blog/client/index.cfm/2008/3/17/ColdFusionSharepoint-Integration--Part-1--Authenticating
Here is what it boils down to you doing:
Change
to
如果来自 Brandon Purcell 的使用
jrun.security.NTauth
类的代码在cf9
中不适合您(它不适合我),修复方法是使用而是使用coldfusion.security.NTAuthentication
类。 一切对我来说都很好。If the code from Brandon Purcell that uses the
jrun.security.NTauth
class doesn't work for you incf9
(it didn't for me) the fix is to use thecoldfusion.security.NTAuthentication
class instead. Everything worked fine for me.