Enable password in both commit and checkout

不问归期 提交于 2019-12-30 12:17:06

问题


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 my code only and not asking password for svn checkout process. seems to be I have not enable the user name password for read process for svn server. How can I enable this feature.


回答1:


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>


来源:https://stackoverflow.com/questions/6000007/enable-password-in-both-commit-and-checkout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!