You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jasper Bal | AdSolutions <Ja...@adsolutions.com> on 2010/10/27 14:32:21 UTC

combine basic authentication with LDAP on SVN

Hi All,

 

I've successfully setup a svn server using Active Directory for
authentication. Some of my users are from a different office and do not
exist in the AD. I would like to authenticate them using the standard
password file instead of adding them to AD.

 

I am aware of the AuthzLDAPAuthoritative off directive, but cannot find
any documentation on its use except in combination with anonymous login.

 

The problem might be that both kinds of authentication are handled in
the same module (authz_svn_module). Do I need to load a different module
to make the fall through possible?

 

Can someone point me to the right documentation?

 

Cheers,

Jasper


RE: combine basic authentication with LDAP on SVN

Posted by Jasper Bal | AdSolutions <Ja...@adsolutions.com>.
Seems the user test was in AD as well... Users that are definitely not
in AD work!!

Thanks all.

-----Original Message-----
From: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com] 
Sent: woensdag 27 oktober 2010 17:06
To: Jasper Bal | AdSolutions; users@subversion.apache.org
Subject: RE: combine basic authentication with LDAP on SVN

I've done exaclty that. I used the following

AuthType Basic
AuthBasicProvider svn-admins ldap-ln1ads01 file

svn-admins and ldap-ln1ads01 are aliases defined with
AuthnProviderAlias, but the idea is the same. You can combine them. Of
course using file then you will need the AuthUserFile to point to your
password file.

Giulio

P.S. Please do not post in HTML
>sorry, stupid outlook

RE: combine basic authentication with LDAP on SVN

Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
I've done exaclty that. I used the following

AuthType Basic
AuthBasicProvider svn-admins ldap-ln1ads01 file

svn-admins and ldap-ln1ads01 are aliases defined with AuthnProviderAlias, but the idea is the same. You can combine them. Of course using file then you will need the AuthUserFile to point to your password file.

Giulio

P.S. Please do not post in HTML






Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03

________________________________



        From: Jasper Bal | AdSolutions [mailto:JasperB@adsolutions.com]
        Sent: 27 October 2010 15:32
        To: users@subversion.apache.org
        Subject: combine basic authentication with LDAP on SVN



        Hi All,



        I've successfully setup a svn server using Active Directory for authentication. Some of my users are from a different office and do not exist in the AD. I would like to authenticate them using the standard password file instead of adding them to AD.



        I am aware of the AuthzLDAPAuthoritative off directive, but cannot find any documentation on its use except in combination with anonymous login.



        The problem might be that both kinds of authentication are handled in the same module (authz_svn_module). Do I need to load a different module to make the fall through possible?



        Can someone point me to the right documentation?



        Cheers,

        Jasper



RE: combine basic authentication with LDAP on SVN

Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
I've done exaclty that. I used the following

AuthType Basic
AuthBasicProvider svn-admins ldap-ln1ads01 file

svn-admins and ldap-ln1ads01 are aliases defined with AuthnProviderAlias, but the idea is the same. You can combine them. Of course using file then you will need the AuthUserFile to point to your password file.

Giulio

P.S. Please do not post in HTML






Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03

________________________________



        From: Jasper Bal | AdSolutions [mailto:JasperB@adsolutions.com]
        Sent: 27 October 2010 15:32
        To: users@subversion.apache.org
        Subject: combine basic authentication with LDAP on SVN



        Hi All,



        I've successfully setup a svn server using Active Directory for authentication. Some of my users are from a different office and do not exist in the AD. I would like to authenticate them using the standard password file instead of adding them to AD.



        I am aware of the AuthzLDAPAuthoritative off directive, but cannot find any documentation on its use except in combination with anonymous login.



        The problem might be that both kinds of authentication are handled in the same module (authz_svn_module). Do I need to load a different module to make the fall through possible?



        Can someone point me to the right documentation?



        Cheers,

        Jasper


Re: combine basic authentication with LDAP on SVN

Posted by Mark Phippard <ma...@gmail.com>.
On Wed, Oct 27, 2010 at 10:32 AM, Jasper Bal | AdSolutions
<Ja...@adsolutions.com> wrote:

> I’ve successfully setup a svn server using Active Directory for
> authentication. Some of my users are from a different office and do not
> exist in the AD. I would like to authenticate them using the standard
> password file instead of adding them to AD.
>
> I am aware of the AuthzLDAPAuthoritative off directive, but cannot find any
> documentation on its use except in combination with anonymous login.
>
> The problem might be that both kinds of authentication are handled in the
> same module (authz_svn_module). Do I need to load a different module to make
> the fall through possible?
>
> Can someone point me to the right documentation?

CollabNet Subversion Edge supports this out of the box and also
provides a web UI for managing those usernames and passwords that are
not in LDAP.

http://www.open.collab.net/products/subversion/

If you want to go your own on this, the directives we use wind up
looking like this:

LoadModule ldap_module lib/modules/mod_ldap.so
LoadModule authnz_ldap_module lib/modules/mod_authnz_ldap.so

<AuthnProviderAlias ldap ldap-users>
  AuthLDAPUrl "ldaps://xxx.xxx.sxxxp.collab.net:636/ou=xxx,dc=collab,dc=net?uid?sub?objectClass=*"
"SSL"

  AuthLDAPBindDN "cn=xxx,dc=collab,dc=net"
  AuthLDAPBindPassword "xxxxx"

</AuthnProviderAlias>


<AuthnProviderAlias file csvn-file-users>
  AuthUserFile "/u1/csvn/data/conf/svn_auth_file"
</AuthnProviderAlias>

<Location /svn/>
   DAV svn
   SVNParentPath "/u1/repositories"
   SVNReposName "CollabNet Subversion Repository"
  AuthzSVNAccessFile "/u1/csvn/data/conf/svn_access_file"
  SVNListParentPath On
  Allow from all
  AuthType Basic
  AuthName "CollabNet Subversion Repository"
  AuthBasicProvider csvn-file-users ldap-users
  Require valid-user
</Location>


-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/