[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sarge et subversion



mariano.georges@free.fr a écrit :
«Relancez Apache2, et votre nouveau dépôt Subversion sera accessible par
l'URL http://hostname/repos»; ne fonctionne pas pour moi
Chez moi, ca foctionne.

Voici ma configuration d'apache2 (pour une authentification par ldap). SVN est sur un serveur virtuel devel et j'utilise mod_macro pour configurer mes serveurs. J'ai 2 dépôts svn : private et public (d'où l'utilisation de SVNParentPath)


<Macro MyLdapAuth $group>
     AuthType Basic
     AuthName devel
     AuthLDAPBindDN uid=xxxxxxx,ou=sysUsers,dc=mydom
     AuthLDAPBindPassword xxxxxxxxxx
     AuthLDAPGroupAttribute memberUid
     AuthLDAPGroupAttributeIsDN off
     AuthLDAPURL ldap://127.0.0.1:389/dc=mydom?uid?sub?(objectClass
=*)
     require valid-user
     require group cn=$group,ou=Groups,dc=mydom
</Macro>

<VirtualHost *>
DirectoryIndex index.jsp index.htm index.html
ServerName devel
ServerAlias devel.mydom

TransferLog /var/log/apache2/devel/access.log
ErrorLog /var/log/apache2/devel/error.log

<Location /svn/>
  DAV svn
  SVNParentPath /farm/svn
  <LimitExcept GET PROPFIND OPTIONS REPORT>
     Use MyLdapAuth "Developpers"
     Require valid-user
  </LimitExcept>
</Location>
</VirtualHost>

J'oubliais : attention aux droits.
chown -Rf www-data /farm/svn

Ainsi je fais  :

svn import http://devel/svn/private/project projectdir - m "Import initial"

svn co http://devel/svn/private/project

...

En revanche, je cherche à configurer viewcvs.
Quelqu'un a des infos la-dessus ???

SG



Reply to: