<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.orcaware.com/svn/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fyodor</id>
	<title>SubversionWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.orcaware.com/svn/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fyodor"/>
	<link rel="alternate" type="text/html" href="https://www.orcaware.com/svn/wiki/Special:Contributions/Fyodor"/>
	<updated>2026-04-08T10:38:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.orcaware.com/svn/mediawiki/index.php?title=Subversion_configured_for_Windows_Active_Directory_HTTPS&amp;diff=1756</id>
		<title>Subversion configured for Windows Active Directory HTTPS</title>
		<link rel="alternate" type="text/html" href="https://www.orcaware.com/svn/mediawiki/index.php?title=Subversion_configured_for_Windows_Active_Directory_HTTPS&amp;diff=1756"/>
		<updated>2008-09-07T18:49:53Z</updated>

		<summary type="html">&lt;p&gt;Fyodor: Added link to VisualSVN Server&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you want to set up a subversion server on a windows machine that recognizes users from Microsoft Active Directory and uses secure http (https) to communicate with clients you can use the following setup as a template for your configuration. Or download VisualSVN Server from http://www.visualsvn.com/server/ - it has https and Active Directory integration working out-of-the-box.&lt;br /&gt;
&lt;br /&gt;
Steps to follow:&lt;br /&gt;
&lt;br /&gt;
1) Download and install Apache 2.2 + open SSL from http://www.apache.org. Do use Apache 2.2 instead of Apache 2.0 if you want to connect to Active Directory&lt;br /&gt;
&lt;br /&gt;
2) Download the apache 2.2 binary compatible version of svn from http://svn.tigris.org&lt;br /&gt;
&lt;br /&gt;
3) Copy all dll&#039;s and modules (.so files) from subversion/bin directory to the apache2.2 /modules directory&lt;br /&gt;
&lt;br /&gt;
4) Copy an existing svn repository or create a new repository&lt;br /&gt;
COPY:&amp;lt;pre&amp;gt;&lt;br /&gt;
cd &amp;quot;c:\program files\subversion\bin&amp;quot;&lt;br /&gt;
svnadmin hotcopy //computer/share/subversion/repositories/repo1 c:/subversion/repositories/repo1&amp;lt;/pre&amp;gt;&lt;br /&gt;
CREATE:&lt;br /&gt;
&amp;lt;pre&amp;gt;svnadmin create c:/subversion/repositories/repo1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5) Create a authorization file: svn.authz&lt;br /&gt;
&amp;lt;pre&amp;gt;### This file is an example authorization file for svnserve.&lt;br /&gt;
### Its format is identical to that of mod_authz_svn authorization&lt;br /&gt;
### files.&lt;br /&gt;
### As shown below each section defines authorizations for the path and&lt;br /&gt;
### (optional) repository specified by the section name.&lt;br /&gt;
### The authorizations follow. An authorization line can refer to a&lt;br /&gt;
### single user, to a group of users defined in a special [groups]&lt;br /&gt;
### section, or to anyone using the &#039;*&#039; wildcard.  Each definition can&lt;br /&gt;
### grant read (&#039;r&#039;) access, read-write (&#039;rw&#039;) access, or no access&lt;br /&gt;
### (&#039;&#039;).&lt;br /&gt;
[groups]&lt;br /&gt;
group1 = harry,sally&lt;br /&gt;
group2 = romeo,julia&lt;br /&gt;
group3 = sally,julia&lt;br /&gt;
&lt;br /&gt;
[/]&lt;br /&gt;
* = r&lt;br /&gt;
@group1 = rw&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
6) Create a SSL certificate&lt;br /&gt;
&lt;br /&gt;
- Openssl.exe included with this version of Apache 2.2 does not seem to be configured well on windows. In order to create a certificate, you need a well configured version of openssl. For this example configuration of subversion with https, file Openssl-0.9.7e-Win32.zip[http://support.etouch.net/cm/wiki/support.Downloads.wiki/1021721main_Openssl-0.9.7e-Win32.zip] combined with file openssl.conf[http://support.etouch.net/cm/wiki/support.Downloads.wiki/1021722main_openssl.cnf] were downloaded from support.etouch.net[http://support.etouch.net/cm/wiki/support.Downloads.wiki/home/Enabling%20SSL%20with%20Apache%20on%20Windows%202003%20for%20SamePage.html]&lt;br /&gt;
 &lt;br /&gt;
- run the following commands&lt;br /&gt;
&amp;lt;pre&amp;gt;openssl req -config openssl.cnf -new -out svn.example.com.csr&lt;br /&gt;
openssl rsa -in privkey.pem -out svn.example.com.key&lt;br /&gt;
openssl x509 -in svn.example.com.csr -out svn.example.com.cert -req -signkey svn.example.com.key -days 1000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
- copy the resulting *.cert and *.key files to the apache2.2/conf directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7) Edit apache/conf/httpd.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LoadModule dav_module modules/mod_dav.so&lt;br /&gt;
LoadModule dav_svn_module modules/mod_dav_svn.so&lt;br /&gt;
LoadModule authz_svn_module modules/mod_authz_svn.so&lt;br /&gt;
LoadModule ldap_module modules/mod_ldap.so&lt;br /&gt;
LoadModule ssl_module modules/mod_ssl.so&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VirtualHost _default_:443&amp;gt;&lt;br /&gt;
SSLEngine on&lt;br /&gt;
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL&lt;br /&gt;
SSLCertificateFile conf/svn.example.com.cert&lt;br /&gt;
SSLCertificateKeyFile conf/svn.example.com.key&lt;br /&gt;
#&amp;lt;FilesMatch &amp;quot;\.(cgi|shtml|phtml|php3?)$&amp;quot;&amp;gt;&lt;br /&gt;
#    SSLOptions +StdEnvVars&lt;br /&gt;
#&amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
#&amp;lt;Directory &amp;quot;C:/Program Files/Apache Group/Apache2/cgi&amp;quot;&amp;gt;&lt;br /&gt;
#    SSLOptions +StdEnvVars&lt;br /&gt;
#&amp;lt;/Directory&amp;gt;&lt;br /&gt;
SetEnvIf User-Agent &amp;quot;.*MSIE.*&amp;quot; \&lt;br /&gt;
         nokeepalive ssl-unclean-shutdown \&lt;br /&gt;
         downgrade-1.0 force-response-1.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#redirect /repos to /repos/&lt;br /&gt;
RedirectMatch ^(/repos)$ $1/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Location /repos/&amp;gt;&lt;br /&gt;
  DAV svn&lt;br /&gt;
  # SVNPath c:/subversion/repositories/repo1&lt;br /&gt;
  SVNParentPath c:/subversion/repositories&lt;br /&gt;
  SVNListparentPath on&lt;br /&gt;
  Order allow,deny&lt;br /&gt;
  Allow from all&lt;br /&gt;
	&lt;br /&gt;
  AuthType Basic&lt;br /&gt;
  AuthBasicProvider ldap&lt;br /&gt;
  AuthzLDAPAuthoritative off&lt;br /&gt;
  AuthName &amp;quot;svn.example.com&amp;quot;&lt;br /&gt;
  AuthzSVNAccessFile c:/subversion/repositories/svn.authz&lt;br /&gt;
&lt;br /&gt;
  #at least one of your domain servers listens on port 3268 (besides default ldap port 389)&lt;br /&gt;
  #use the server that listens on port 3268 if you have more than one AD server. The service&lt;br /&gt;
  #on port 389 uses referrals to the other AD servers. Referrals are used anonymously. Anonymoys&lt;br /&gt;
  #binding will not work on most AD-servers.&lt;br /&gt;
  AuthLDAPURL &amp;quot;ldap://dc.example.com:3268/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  #this assumes you have created a dedicated bind user &amp;quot;apache_bind&amp;quot; on your active directory&lt;br /&gt;
  AuthLDAPBindDN &amp;quot;CN=apache_bind,CN=users,DC=example,DC=com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  #warning: this password for AD apache_bind user is in plain text!&lt;br /&gt;
  AuthLDAPBindPassword [password_for_ad_user_apache_bind]&lt;br /&gt;
&lt;br /&gt;
  #AuthLDAPFollowReferrals off&lt;br /&gt;
  &lt;br /&gt;
  AuthLDAPGroupAttributeIsDN on&lt;br /&gt;
  AuthLDAPGroupAttribute member&lt;br /&gt;
  SSLRequireSSL&lt;br /&gt;
  #require ldap-group CN=svnusers,CN=Users,DC=example,DC=com&lt;br /&gt;
  require valid-user&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8) Apply ldap patch for MS-AD&lt;br /&gt;
&lt;br /&gt;
When a Microsoft Active Directory times out, it sends a TCP RST instad of a TCP FIN to the client. There is a workaround for this MS AD bug in Apache mod_ldap, see http://www.apachelounge.com/forum/viewtopic.php?t=1995 or download http://www.anneb.dds.nl/httpd-2.2.6_ldappatch_win32_vc6.zip&lt;br /&gt;
Replace apache modules mod_lap.so and mod_authnz_ldap.so with the files from the downloaded zip file. This configuration allows you to add more than one repository in directory c:/subversion/repositories. All repositories are listed in the browser using URL https://svn.example.com/repos. User names and passwords are validated against Active Directory. Standard svn clients can not browse the list of repositories. Instead you should use the full path to a particular repository, for instance https://svn.example.com/repos/repo1.&lt;br /&gt;
&lt;br /&gt;
9) Binary files cannot be easily merged. The lock-modify-unlock versioning model seems to be the only appropriate model for these type of files. Follow the instructions in [Setting up lock-modify-unlock This description also includes client and server side configuration to accommodate for the lock-modify-unlock model for binary files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9) Force users to set svn:needs-lock property on new binary files&lt;br /&gt;
&lt;br /&gt;
Binary files cannot be merged. Versioning should follow the lock-modify-unlock model[http://svnbook.red-bean.com/en/1.4/svn.basic.vsn-models.html#svn.basic.vsn-models.lock-unlock]. You can force using this model for binary files following the description on how to setup [[Automatic lock-modify-unlock]].&lt;/div&gt;</summary>
		<author><name>Fyodor</name></author>
	</entry>
</feed>