Can MSBuild deploy using integrated authentication or only basic?

前端 未结 5 2225
离开以前
离开以前 2020-12-07 11:42

I\'m deploying a web app package from the MSBuild command line to MSDepSvc on IIS6 which is working fine with the following command using basic authentication:



        
5条回答
  •  温柔的废话
    2020-12-07 12:08

    I looked in the Microsoft.Web.Publishing.targets and saw this:

    
      
      Basic
      
      WMSVC
      ...
    
    

    So, it looks like the default is Basic authentication when running from MSBuild. Then I found this http://technet.microsoft.com/de-de/library/dd569001(WS.10).aspx

    authenticationType specifies the type of authentication to be used. The possible values are NTLM and Basic. If the wmsvc provider setting is specified, the default authentication type is Basic; otherwise, the default authentication type is NTLM.

    I haven't tried it yet, but maybe it's something like /p:AuthType=NTLM

提交回复
热议问题