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

FW: a question about the access file syntax: username aliases

From: Victor Gong <Victor_Gong_at_phoenix.com>
Date: Thu, 18 Sep 2008 17:31:31 +0800

Hi, Subersion developers
Somebody can help me the problem shown below?

Thanks


________________________________
From: Victor Gong
Sent: 2008Äê9ÔÂ17ÈÕ 15:29
To: 'users_at_subversion.tigris.org'
Subject: a question about the access file syntax: username aliases

Hi, Subversion developers
I am now using subversion 1.5 + Http 2.2.9 with LDAP authentication, it works fine.
But now, I want to do per-directory access control with LDAP authentication which someone can read and write in the special directories, others can only read them. and it cannot work with my setting: http.conf + authz.
I notice there is a file syntax: aliases in authz file, but I wandered whether my setting is correct.
Could you give me some help?


Http.conf:
<Location /H>
    DAV svn
    SVNParentPath /svn
    SVNListParentPath on

  # LDAP Authentication & Authorization is final; do not check other databases
  # AuthLDAPAuthoritative on

  # Do basic password authentication in the clear
   AuthType Basic
   AuthBasicProvider ldap
  # The name of the protected area or "realm"
   AuthName "UEFI Subversion Repository"

  # 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
  AuthLDAPBindDN "CN=LDAP_RO,CN=USERS,DC=PHOENIX,DC=COM"

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

  # 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://134.122.1.67:389/ou=phoenix,dc=phoenix,dc=com?sAMAccountName?sub?(objectClass=*)"

  # Require authentication for this Location
  Require valid-user

  AuthzSVNAccessFile /usr/local/apache2/conf/authz

</Location>
authz:
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
Victor_Gong = CN=Victor Gong,OU=Nanjing,OU=China,OU=Personnel,OU=People,OU=Phoenix,DC=phoenix,DC=com
Received on 2008-09-19 07:48:28 CEST

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

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