English 中文(简体)
主要参考文件:ValidateCredentials在综合系统部署后停止在零件内进行罚款。
原标题:PrincipalContext.ValidateCredentials stops validating after IIS deployment works fine in cassini

我有以下的密码,以测试针对反倾销的简单文本用户名/密码,如果我用视频演播室击F5,并通过WCFCLent对其进行审判,那么,一旦我部署到国际航空研究学院并尝试同样的功能,Valid Credentials就永远不会回去;是否有安全智慧,需要为申请库所管理的身份确定?

我试图将申请集合身份确定给我自己的账户(多半行政),仅仅是为了检验这一问题,但这样做无助于解决问题,因此,我就失去了解决这一问题的轨道。

该网站(Custom API)设有匿名网站。

try
{
    // create a "principal context" - e.g. your domain (could be machine, too) 
    using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, DomainName))
    {
        // validate the credentials
        if (pc.ValidateCredentials(UserName, Password))
        {
            IsValid = true;
            break;
        }
    }
}
catch (Exception)
{
    LoggingControler.LogWarning(null, "Unreachable Domain: " + Domain);
}

我再次走过了事,这完全是因为Windows的权利。 网络服务公司拥有足够的实施权:<代码> 如果我把申请集合身份改为域名管理人的身份,则该守则就发挥了作用。

如果有人能够告诉我,如何建立一个有适当权利的有限用户账户,以实施<条码>。

最佳回答
问题回答




相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签