# HG changeset patch # User Martin Bornhold # Date 2016-08-01 13:30:38 # Node ID 0b49cf7414d06d08bb0b39c3010a44d8a7e6c127 # Parent 7ad6515920d0c6bad82cb7eb78c1a55aeff6989b svn: Add rhodecode realm to subversion configuration generation. diff --git a/rhodecode/svn_support/templates/mod-dav-svn.conf.mako b/rhodecode/svn_support/templates/mod-dav-svn.conf.mako --- a/rhodecode/svn_support/templates/mod-dav-svn.conf.mako +++ b/rhodecode/svn_support/templates/mod-dav-svn.conf.mako @@ -33,7 +33,7 @@ # following directives implement a fake authentication that allows every # username/password combination. AuthType Basic - AuthName None + AuthName ${rhodecode_realm} AuthBasicProvider anon Anonymous * Require valid-user @@ -50,7 +50,7 @@ AuthType Basic - AuthName None + AuthName ${rhodecode_realm} AuthBasicProvider anon Anonymous * Require valid-user diff --git a/rhodecode/svn_support/utils.py b/rhodecode/svn_support/utils.py --- a/rhodecode/svn_support/utils.py +++ b/rhodecode/svn_support/utils.py @@ -23,6 +23,7 @@ import os from pyramid.renderers import render +from rhodecode.lib.utils import get_rhodecode_realm from rhodecode.model.db import RepoGroup from . import config_keys @@ -62,6 +63,7 @@ def _render_mod_dav_svn_config( 'parent_path_root': parent_path_root, 'repo_group_paths': repo_group_paths, 'svn_list_parent_path': list_parent_path, + 'rhodecode_realm': get_rhodecode_realm(), } # Render the configuration template to string.