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

Re: Adding ldap group support to subversion

From: Branko ÄŒibej <brane_at_wandisco.com>
Date: Fri, 12 Jul 2013 14:50:26 +0200

On 12.07.2013 13:54, 刘新星 wrote:
> Thank you for your suggestions!
>
> mod_ldap for performance improvement is a further consideration.
>
> Actually I want to add ldap support for mod_authz_svn most.
> As far as I can see, when we need ldap authentication, we would take
> these combination 'apache + subversioin'.
> Is it a good idea to move ldap.c from libsvn_subr to mod_authz_svn ?

First of all, there should be no ldap.c in Subversion. If you want to
use LDAP, use the apr-util LDAP API. See:

http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/include/apr_ldap.h.in?view=markup

From the above it follows that libsvn_subr is not the right place to put
LDAP support. That can be, at best, a server feature, so you're basiclly
looking at adding it to svnserve and nowhere else, using the LDAP
support provided by apr-util.

I am strongly against the idea of adding LDAP support to mod_authz_svn.
There is already a mod_ldap, it doesn't make sense to duplicate
functionality. If mod_ldap has performance problems -- well then, that's
the place to solve them. It's open source after all.

Adding /group/ support to mod_authz_svn is completely orthogonal to
LDAP. Let's not mix the two issues. And frankly, I'd rather spend time
adding proper group- and role-based authorization to the repository than
heaping more stuff onto the current config-file-based authz layer.

-- Brane

-- 
Branko ÄŒibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-07-12 14:51:05 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.