<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learning is an Art &#187; domain authentication</title>
	<atom:link href="http://www.singhvishwajeet.com/tag/domain-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.singhvishwajeet.com</link>
	<description>My experiences</description>
	<lastBuildDate>Thu, 10 Jun 2010 22:19:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Subversion Domain Authentication with Apache</title>
		<link>http://www.singhvishwajeet.com/2009/10/20/subversion-domain-authentication-with-apache/</link>
		<comments>http://www.singhvishwajeet.com/2009/10/20/subversion-domain-authentication-with-apache/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 16:42:16 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[domain authentication]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=195</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-3616637514641870";
/* 728x90, created 4/30/10 */
google_ad_slot = "2350940629";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><p>This article covers how to setup domain authentication for Subversion with Apache using mod_auth_sspi , I am running Apache 2.2 and Subversion 1.5. First of all you need to get SSPI module from its new home at<a title="SSPI" href="http://sourceforge.net/projects/mod-auth-sspi/" target="_blank"> sourceforge</a> , module can be directly downloaded from <a title="SSPI Download" href="http://sourceforge.net/projects/mod-auth-sspi/files/mod-auth-sspi/mod_auth_sspi%201.0.4/mod_auth_sspi-1.0.4-2.2.2.zip/download" target="_blank">here</a>. Once you have downloaded the module extract using some zip utility there will be a bin folder inside the extracted folder and inside bin folder there will a file named mod_auth_sspi.so take this file and drop it in Apache&#8217;s modules folder.</p>
<p>Once you are done with above steps we now need to modify Apache&#8217;s httpd.conf to include the domain authentication for our Subversion repository make changes to httpd.conf as shown below,  first we need to ensure that we have required modules loaded</p>
<div class="codesnip-container" >LoadModule sspi_auth_module   modules/mod_auth_sspi.so<br />
LoadModule dav_svn_module     modules/mod_dav_svn.so<br />
LoadModule authz_svn_module   modules/mod_authz_svn.so</div>
<p>To mod_dav_svn to work you need to uncomment the line which loads mod_dav module Apache look for it and uncomment if its commented.</p>
<p>Now the real magic configuration starts which will enable us to authenticate Subversion users against AD domains make changes in httpd.conf as shown below</p>
<div class="codesnip-container" >&lt;Location /svn/myrepo&gt;<br />
dav svn<br />
SVNPath &#8220;d:/svnrepos/myrepo&#8221;<br />
# Domain Authentication settings<br />
AuthName &#8220;Subversion domain&#8221;<br />
AuthType SSPI<br />
SSPIAuth On<br />
SSPIAuthoritative On<br />
SSPIDomain MYDOMAINNAME<br />
SSPIOfferBasic on<br />
SSPIOmitDomain On<br />
Require valid-user<br />
# Subversion&#8217;s authorization file<br />
AuthzSVNAccessFile &#8220;d:/svnrepos/authz&#8221;<br />
&lt;/Location&gt;</div>
<p>Once done with above changes save the file and restart Apache and try accessing the URL http://&lt;yourservername&gt;/svn/myrepo you will be prompted for authentication saying &#8220;Subversion Domain&#8221; enter your domain name without domain as we have  SSPIOmitDomain On and based on Subversion authorization file i.e authz in our scenario you will be able to see repository or you will get forbidden error.</p>
<p>We are done with setting up domain authentication, in-case you face any problem with above settings feel free to write to me.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">
<pre>LoadModule sspi_auth_module   modules/mod_auth_sspi.so
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/10/20/subversion-domain-authentication-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
