Enable password in both commit and checkout

后端 未结 1 1216
面向向阳花
面向向阳花 2021-01-16 03:26

I setup a svn repository according to this resource http://anandafit.info/2010/11/03/setup-a-subversion-server/

But server ask user name and password when I commit m

相关标签:
1条回答
  • 2021-01-16 03:37

    The link you post suggest this Apache configuration:

    <Location /svn/svnproject>
        DAV svn
        SVNPath /home/svn/svnproject
        AuthType Basic
        AuthName "Svnproject Repository"
        AuthUserFile /etc/subversion/passwd
        <LimitExcept GET PROPFIND OPTIONS REPORT>
            Require valid-user
        </LimitExcept>
    </Location>
    

    The LimitExcept block is there to make checkout allowed without logging in, I'd replace it with just Require valid-user:

    <Location /svn/svnproject>
        DAV svn
        SVNPath /home/svn/svnproject
        AuthType Basic
        AuthName "Svnproject Repository"
        AuthUserFile /etc/subversion/passwd
        Require valid-user
    </Location>
    
    0 讨论(0)
提交回复
热议问题