Skip to content
Snippets Groups Projects

svn: Add support to basic subversion authentication in SvnRepo

1 unresolved thread

Some subversion servers in the wild disabled anonymous access and require to authenticate using a read only user account, typically with credentials anonymous/anonymous.

So add support for basic authentication in the subversion loader, credentials must be provided in the repository URL as with basic HTTP authentication.

Such repository has been submitted to Save Code Now service: https://anonymous@svn.cryptool.org/CrypTool1/


Migrated from D8585 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
2136 textwrap.dedent(
2137 """
2138 [general]
2139
2140 # Authentication realm of the repository.
2141 realm = test-repository
2142 password-db = passwd
2143
2144 # Deny all anonymous access
2145 anon-access = none
2146
2147 # Grant authenticated users read and write privileges
2148 auth-access = write
2149 """
2150 )
2151 )
  • thx

  • Merge request was accepted

  • vlorentz approved this merge request

    approved this merge request

  • Author Maintainer

    Address @vlorentz comments.

  • Build is green

    Patch application report for D8585 (id=30994)

    Rebasing onto 651e2964...

    Current branch diff-target is up to date.
    Changes applied before test
    commit 8e735c953ba594373dbcbed407ff1c2204ee8866
    Author: Antoine Lambert <anlambert@softwareheritage.org>
    Date:   Fri Sep 30 13:25:05 2022 +0200
    
        svn: Add support to basic subversion authentication in SvnRepo
        
        Some subversion servers in the wild disabled anonymous access and require
        to authenticate using a read only user account, typically with credentials
        anonymous/anonymous.
        
        So add support for basic authentication in the subversion loader, credentials
        must be provided in the repository URL as with basic HTTP authentication.

    See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/335/ for more details.

  • Author Maintainer

    Merge request was merged

  • Please register or sign in to reply
    Loading