Webdeploy Publish Profile password saving

前端 未结 4 2054
轮回少年
轮回少年 2021-02-14 22:08

I saved a publish profile into an .xml along wit all the login info. But when i import this XML to another computer and try to publish, it\'ll say that my password is incorrect

相关标签:
4条回答
  • 2021-02-14 22:45

    If you want the publishing profile to work across different computers, you need to save the password in plain text.

    0 讨论(0)
  • 2021-02-14 22:52

    My guess is that the program purposely obfuscates the passwords using the current PC's "salt" and generates a unique hash. Thus, preventing the passwords from being stolen via the profile publish function.

    0 讨论(0)
  • 2021-02-14 23:00

    Just to add an additional answer, this may be version specific for .pubxml, but you can add these line to ensure visual studio save the password.

    Make sure to use the ".\" prefix for a local account, and "domain\" prefix for an Active Directory account.

    <UserName>.\PubUser1</UserName>
    <UserPWD>Password1234</UserPWD>
    <_SavePWD>True</_SavePWD>
    
    0 讨论(0)
  • 2021-02-14 23:01

    As mentioned by user1785999, you can save the password in plain text, just add the password element to your .pubxml file:

        <UserName>YourName</UserName>
        <Password>YourPassword</Password>
    
    0 讨论(0)
提交回复
热议问题