开发者

Enable password in both commit and checkout

I setup a svn repository according to this r开发者_StackOverflow社区esource 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.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜