In SVN how do I override automatic Windows domain authentication

后端 未结 2 797
暗喜
暗喜 2020-12-06 02:15

I have a build server that is not part of a Windows domain trying to connect to a VisualSVN server running HTTPS via apache with domain login via Active Directory. When I t

相关标签:
2条回答
  • 2020-12-06 03:02

    The solution I found was to disable the http-auth-type 'negotiate'. This prevents Windows credentials being automatically shared.

    I verified this using a command-line override, it asked for password for the user on the command-line:

    svn ls --username=domainuser --config-option servers:global:http-auth-types=basic;digest https://subversion.mydomain/svn/repo1/
    Authentication realm: <https://subversion.mydomain/svn/repo1/> VisualSVN Server
    Password for 'domainuser': 
    

    (Note for Cygwin users: If you use SVN under Windows via Cygwin then you will need to add quotes to your command like this: $ svn ls --username=domainuser --config-option "servers:global:http-auth-types=basic;digest" https://subversion.mydomain/svn/repo1/ -- Otherwise the semicolon will be treated as a command delimiter.)

    To configure this more permanently you can make a servers config file entry for all matching servers. For Win7 that's C:\Users\<User>\AppData\Roaming\Subversion\servers.

    [groups]
    mydomain = *.mydomain
    
    [mydomain]
    http-auth-types=basic;digest
    
    0 讨论(0)
  • 2020-12-06 03:07

    Instead of disabling negotiate in client's config, I'd suggest using Windows Credential Manager to store the other account's credentials for Single Sign-On.

    The following instruction shows how to put other domain credentials to access VisualSVN Server into Windows Credential Manager:

    1. Start | Control Panel | Credential Manager,

    2. Click 'Add a Windows Credential',

    3. As 'Internet or network address' enter the FQDN of VisualSVN Server's machine,

    4. As 'Username' enter the <DOMAIN>\<username> of user account that exists in domain and has access rights to VisualSVN Server,

    5. Complete the password field and click OK,

    6. Verify that you can authenticate to VisualSVN Server under the selected user account after completing the above steps.

    0 讨论(0)
提交回复
热议问题