[Auto-Résolu][Subversion] Aide à la configuration

Bonsoir tout le monde,

je cherche à faire un dépôt subversion sur mon PC et qu’il soit accessible de l’extérieur avec login/pass, seulement je n’y arrive pas, même pas en local. J’ai suivi pleins de tutos mais ça me donne un mal de crâne tellement certains se contredisent.

Donc voilà ce que j’ai fais pour l’instant :

mkdir ~/svn svnadmin create depot chown www-data:www-data depot htpasswd -cm /etc/apache2/dav_svn.passwd MonUser svn import MesFichiers file:///home/arnaud/svn/depot/ -m "Depot initial"

Ensuite, je me connectes sur un PC distant et je tapes :

Il réussi à tout récupérer, seulement, là ou je fais moins le malin, c’est lors du commit :frowning:

Puis : svn commit --username monUser -m "Suppresion d'un fichier" svn: Échec de la propagation (commit), détails : svn: Autorisation refusée

D’où cela peut-il venir? Il ne me demande même pas de mot de passe…

Si ça peut vous aider, voici le fichier dav_svn.conf

# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
#
# NOTE: for a setup with multiple vhosts, you will want to do this
# configuration in /etc/apache2/sites-available/*, not here.

<Location /svn>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
# Note, a literal /svn should NOT exist in your document root.
#<Location /svn>

  # Uncomment this to enable the repository
  DAV svn

  # Set this to the path to your repository
  #SVNPath /var/svn
  # Alternatively, use SVNParentPath if you have multiple repositories under
  # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
  # You need either SVNPath and SVNParentPath, but not both.
  SVNParentPath /home/monUser/svn/

  # Access control is done at 3 levels: (1) Apache authentication, via
  # any of several methods.  A "Basic Auth" section is commented out
  # below.  (2) Apache <Limit> and <LimitExcept>, also commented out
  # below.  (3) mod_authz_svn is a svn-specific authorization module
  # which offers fine-grained read/write access control for paths
  # within a repository.  (The first two layers are coarse-grained; you
  # can only enable/disable access to an entire repository.)  Note that
  # mod_authz_svn is noticeably slower than the other two layers, so if
  # you don't need the fine-grained control, don't configure it.

  # Basic Authentication is repository-wide.  It is not secure unless
  # you are using https.  See the 'htpasswd' command to create and
  # manage the password file - and the documentation for the
  # 'auth_basic' and 'authn_file' modules, which you will need for this
  # (enable them with 'a2enmod').
   AuthType Basic
   AuthName "Depot Subversion"
   AuthUserFile /etc/apache2/dav_svn.passwd

  # To enable authorization via mod_authz_svn
  # AuthzSVNAccessFile /etc/apache2/dav_svn.authz

  # The following three lines allow anonymous read, but make
  # committers authenticate themselves.  It requires the 'authz_user'
  # module (enable it with 'a2enmod').
  <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
  </LimitExcept>
</Location>

Trouvé, il fallait configuré le fichier svnserve.conf :slightly_smiling:

@+