How do I restrict Apache/SVN access to specific users (LDAP/file-based authentication)?

前端 未结 3 834
自闭症患者
自闭症患者 2020-12-28 23:58

I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and a flat-file.

It\'s working great except that any LDAP use

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 00:06

    This was actually a lot easier than I thought it would be. I added this to my location:

    
      ...
      AuthzSVNAccessFile "conf/svn-authz.txt"
    

    In that file, I just specified normal SVN permissions (the system doesn't seem to distinguish between file users and LDAP users at this point):

    [groups]
    @admin = haren
    
    ###
    ### Deny all but administrators to the tree
    ###
    
    [/]
    * =
    @admin = rw
    
    
    ###
    ### Allow more specific people on a per-repository basis below
    ###
    
    [repo1:/]
    ldap-user1 = rw
    file-user1 = rw
    
    [repo2:/]
    ldap-user2 = rw
    file-user2 = rw
    

    I'm still playing around with the LDAP group syntax to get that part working. Any suggestions there are appreciated.

提交回复
热议问题