简体   繁体   English

GeckoFX(C#)-以编程方式登录到SharePoint(NTLM)

[英]GeckoFX (C#) - Programmatically login to SharePoint (NTLM)

I am currently attempting to use GeckoFx version 33 to automatically login to a SharePoint 2010 instance. 我目前正在尝试使用GeckoFx版本33自动登录到SharePoint 2010实例。 I have attempted to following the suggestions from this post without much luck. 我尝试遵循这篇文章的建议没有多大运气。 Any help would be appreciated. 任何帮助,将不胜感激。

Thanks. 谢谢。

You might search for how to enable NTLM authenticaiton in Firefox. 您可能会搜索如何在Firefox中启用NTLM身份验证。 The same steps should work in GeckoFX. 相同的步骤应该在GeckoFX中起作用。

This SuperUser question seems to cover enabling the relevant features in Firefox: https://superuser.com/questions/664656/how-to-configure-firefox-for-ntlm-sso-single-sign-on 这个SuperUser问题似乎涵盖了在Firefox中启用相关功能的信息: https : //superuser.com/questions/664656/how-to-configure-firefox-for-ntlm-sso-single-sign-on

It seems that you need to add the relevant URIs to the network.automatic-ntlm-auth.trusted-uris property. 似乎您需要将相关的URI添加到network.automatic-ntlm-auth.trusted-uris属性。

Of course you'll need to do this programatically. 当然,您需要以编程方式执行此操作。 For example: 例如:

string intranet_domains = @"my_intranet_domain.com, my_other_intranet_domain.com";
Gecko.GeckoPreferences.User("network.automatic-ntlm-auth.trusted-uris") = intranet_domains;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM