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

svn with apache authentication with windows AD

From: <sanjeev.kumarroy_at_wipro.com>
Date: Thu, 10 Jul 2008 15:24:56 +0530

Hi,

 

 

I am a newbie to the SVN configuration stuff.

 

I have installed svn using apache2 on a Linux machine. I used
AuthzSVNAccessFile and svn-auth-file (stores htpasswd entries) for the
authentication.

Now I am able to browse the SVN links using IE from a windows machine.

 

In place of using the svn-auth-file for doing the authentication now I
want to do the authentication using the Windows Active directory.
However I am not quite sure how to go about it. I have browsed a lot for
this but didn't get a concise doc that I can follow.

 

Can anyone please help me out with this?

 

Below is a list of steps that I have followed and what works for the
basic authentication using the files I have specified above.

 

Installed apache 2

tar -zxvf httpd-2.2.9.tar.gz

cd /home/sanjeev/svn_rpm/httpd-2.2.9

./buildconf

./configure --enable-dav --enable-so

make

make install

 

 

After that I installed subversion-1.5.0:

tar -zxvf subversion-1.5.0.tar.gz

./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apache2
--with-apr-util=/usr/local/apache2 --with-neon=/usr/local/apache2

make

make install

 

 

Created a new repository:

cd /usr/local/subversion

svnadmin create repository

cd repository

ported my database in place of the db in the existing repository

 

After the installation of the svn 1.5 the following modules
(mod_authz_svn.so, mod_dav_svn.so) were created at
/usr/local/apache2/modules and entries made in automatically in the
httpd.conf file.

I also created the AuthzSVNAccessFile and the svn-auth-file in the conf
directory of the repository

 

Then I added the entries for my repository to the httpd.conf file at the
end:

<Location /test>

DAV svn

SVNParentPath /usr/local/subversion/repository

AuthzSVNAccessFile
/usr/local/subversion/repository/conf/AuthzSVNAccessFile

 

AuthType Basic

AuthName "TEST-SubversionRepository"

AuthUserFile /home/bhdc-repo/conf/svn-auth-file

 

Require valid-user

</Location>

 

Also made the changes to the port no in the httpd.conf file

After the I started the apache by issuing the command:

/usr/local/apache2/bin/apachectl start

 

I was now able to browse the svn from a windows machine using the access
link

http://20.14a.x.yy/test

 

 

I have also installed openldap-2.3.39:

cd openldap-2.3.39

./configure -prefix=/usr/local/openldap

make depend

make

make install

 

 

PS: I tried building the mod_auth_kerb-5.3.tar.gz

However I faced the following error

 

I tried to configure it by using the below command:
./configure --with-krb4=no --with-krb5=/usr/kerberos
--with-apxs=/usr/local/apache2/bin/apxs

 

However it fails with the following error:

 

checking whether we are using Heimdal... no

checking whether the GSSAPI libraries support SPNEGO... no

checking for apxs... no

checking for apxs2... no

configure: error: failed to find apache apxs executable

 

Please let me know if anyone has done the authentication for SVN running
on Linux using Microsoft's AD.

 

 

Thanks.

Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Received on 2008-07-10 18:02:40 CEST

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.