[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RV: P+A RE: Some doubts

From: Gonzalez Diaz, Xoan <G2485_at_caixagalicia.es>
Date: 2007-10-05 13:39:17 CEST

 

Rapidly, since I am too busy now ...

 

1. Install Apache 2.2 and Subversion (don't forget to download adequate binaries to this version ...)
2. Modify httpd.conf:

 

LoadModule ldap_module modules/mod_ldap.so

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authnz_ldap_module modules/mod_authnz_ldap.so

LoadModule dav_module modules/mod_dav.so

 

You have to copy mod_dav_svn.so from Subversion bin folder.

 

3. At the end of httpd.conf (modify according to your needs):

<Location "/svn">

  DAV svn

  

  SVNListParentPath on

  SVNParentPath "Drive:/YourFolderContainingRepositories"

  

  # You can download from http://svn.collab.net/repos/svn/trunk/tools/xslt/

                  # Copy to something like C:\Program Files\Apache Software Foundation\Apache2.2\htdocs

 

  SVNIndexXSLT "/svnindex.xsl"

  

 

  AuthType Basic

  AuthBasicProvider ldap

  AuthzLDAPAuthoritative on

  

  AuthName "Enter login and password"

 

 

  # The LDAP query URL

  # Format: scheme://host:port/basedn?attribute?scope?filter

  # The URL below will search for all objects recursively below the basedn

  # and validate against the sAMAccountName attribute

  # AuthLDAPURL "ldap://srvdomain2.lcl:389/DC=masonshoe,DC=lcl?sAMAccountName?sub?(objectClass=*)"

  

  AuthLDAPURL "ldap://organization.lcl:389/DC=organization,DC=lcl?sAMAccountName?sub?(objectClass=*)"

                  

  # Active Directory requires an authenticating DN to access records

  # This is the DN used to bind to the directory service

  # This is an Active Directory user account

  # User who makes the connection to AD

  AuthLDAPBindDN "DOMAIN\user"

  

  

  # This is the password for the AuthLDAPBindDN user in Active Directory

  AuthLDAPBindPassword apassword

  

  Require valid-user

  

  AuthzSVNAccessFile svnaccessfile.txt

    

</Location>

 

4. Restart Apache and try http://yourserver/svn/yourrepository
5. Pray
6. Now you have to define your permissions in svnaccesfile.txt at C:\Program Files\Apache Software Foundation\Apache2.2

 

 

Hope this helps,

 

Xoan

________________________________

De: Chandra Sekhar A [mailto:chandrasekhara@sathguru.com]
Enviado el: viernes, 05 de octubre de 2007 13:04
Para: Gonzalez Diaz, Xoan
Asunto: P+A RE: Some doubts

 

Hi,

 

Can you please send your apache configuration file and any instlation guide. I am unable to install using ldap.

 

Please help me .

 

Regards,

A.Chandra Sekhar

 

________________________________

From: Gonzalez Diaz, Xoan [mailto:G2485@caixagalicia.es]
Sent: Friday, October 05, 2007 1:11 PM
To: users@subversion.tigris.org
Subject: Some doubts

 

Hi all,

 

After a lot of hours it seems that my configuration of Apache 2.2 + Subversion 1.4.5 + authentication against LDAP (Active Directory) is being successful using mod_authnz_ldap from Apache. My installation consist of one repository with a lot of projects.

I am using path-based authorization ... and I am wondering if is there any way to match a directory in the whole tree of directories...

I know [/directory] match all directories "/directory" in all the repositories, but I want to match all directories named "/directory" in one repository regardless of their depth in the tree...

Is this possible?

 

Regards,

 

Xoan

 

 

 

 Xoan González Díaz

 Área de Arquitectura

 

 E-mail: g2485 (at) caixagalicia.es <mailto:%20g2485@caixagalicia.es>

 xoan.gonzalez (at) tecnocom.es <mailto:xoan.gonzalez@tecnocom.es>

           

 

image001.jpg
Received on Fri Oct 5 13:46:07 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.