In SVN how do I override automatic Windows domain authentication

后端 未结 2 803
暗喜
暗喜 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:  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\\AppData\Roaming\Subversion\servers.

    [groups]
    mydomain = *.mydomain
    
    [mydomain]
    http-auth-types=basic;digest
    

提交回复
热议问题