<?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>Ze Fish. Ooooh, fishy, fishy, fishy fish !</title>
	<atom:link href="http://boobah.info/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://boobah.info</link>
	<description>How Much is t3h phish ?</description>
	<lastBuildDate>Tue, 15 Jun 2010 20:03:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>System error 1219 has occurred.</title>
		<link>http://boobah.info/?p=173</link>
		<comments>http://boobah.info/?p=173#comments</comments>
		<pubDate>Sun, 13 Jun 2010 11:01:09 +0000</pubDate>
		<dc:creator>drade</dc:creator>
				<category><![CDATA[Job]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[system error 1219]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://boobah.info/?p=173</guid>
		<description><![CDATA[A witty haiku for this particular windows feature.

&#8211; Nick Sweeney
       &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -
       ABORTED effort:
       Close all that you have.
       You ask [...]]]></description>
			<content:encoded><![CDATA[<p>A witty haiku for this particular windows feature.</p>
<blockquote><p>
&#8211; Nick Sweeney<br />
       &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -<br />
       ABORTED effort:<br />
       Close all that you have.<br />
       You ask way too much.
</p></blockquote>
<p>Using Microsoft Windows for the past, oh i don&#8217;t know, let&#8217;s circle it to 20 years, they never cease to amaze me with their built-in functionality &#8220;features&#8221;.</p>
<p>One of these great features, which i recently stumbled upon, is that the user is unable to map two different shares on the same server using two different sets of credentials.</p>
<p>More particularly, when you try to map a network drive as follows (the same problem occurs when trying to map it via &#8220;Windows Explorer&#8221;):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\net use x: \\SMBSERVER\sharename1 password1 <span style="color: #000000; font-weight: bold;">/</span>USER:username1
C:\net use z: \\SMBSERVER\sharename2 password2 <span style="color: #000000; font-weight: bold;">/</span>USER:username2</pre></div></div>

<p>You will receive the following error:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">System error 1219 has occurred.
&nbsp;
Multiple connections to a server or shared resource by the same user, using more
than one user name, are not allowed. Disconnect all previous connections to the
server or shared resource and try again..</pre></div></div>

<p>Easy way to circumvent this particular idiocy is to either map those drives by mapping one using the servers IP address and the other one by using it&#8217;s host name.</p>
<p>For example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\net use x: \\SMBSERVER\sharename1 password1 <span style="color: #000000; font-weight: bold;">/</span>USER:username1
C:\net use z: \\1.2.3.4\sharename2 password2 <span style="color: #000000; font-weight: bold;">/</span>USER:username2</pre></div></div>

<p>Or you can simply map this hosts IP address to two different host names, and use those instead (assuming that the SMBSERVER1 and SMBSERVER2 host names are mapped to the same IP address).</p>
<p>For example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\net use x: \\SMBSERVER\sharename1 password1 <span style="color: #000000; font-weight: bold;">/</span>USER:username1
C:\net use z: \\SMBSERVER1\sharename2 password2 <span style="color: #000000; font-weight: bold;">/</span>USER:username2</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://boobah.info/?feed=rss2&amp;p=173</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian, Subversion, WebDAV, Active Directory</title>
		<link>http://boobah.info/?p=153</link>
		<comments>http://boobah.info/?p=153#comments</comments>
		<pubDate>Sun, 21 Feb 2010 12:36:50 +0000</pubDate>
		<dc:creator>drade</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[authnz]]></category>
		<category><![CDATA[dav_svn]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[webdav]]></category>

		<guid isPermaLink="false">http://boobah.info/?p=153</guid>
		<description><![CDATA[Today i had to implement WebDAV, subversion with Active Directory authentication. I started with the default debian/lenny installation of apache omitting Debian&#8217;s libapache2-svn package because i wanted to install the newest subversion release and use it&#8217;s modules instead.
Compiling subversion sources against Debian libs is pretty straightforward, I grabbed the newest source tarball from subversion&#8217;s web [...]]]></description>
			<content:encoded><![CDATA[<p>Today i had to implement <strong><a href="http://en.wikipedia.org/wiki/WebDAV">WebDAV</a></strong>, subversion with Active Directory authentication. I started with the default debian/lenny installation of <strong><a href="http://www.apache.org/">apache</a></strong> omitting Debian&#8217;s <strong>libapache2-svn</strong> package because i wanted to install the newest <strong><a href="http://subversion.apache.org/">subversion</a></strong> release and use it&#8217;s modules instead.</p>
<p>Compiling subversion sources against Debian libs is pretty straightforward, I grabbed the newest source tarball from subversion&#8217;s web site, unpacked it, and compiled the same (x.x.x represents the version, in this case the version is <strong>1.6.9</strong>).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tar xzf subversion-x.x.x.tar.gz</span>
<span style="color: #666666; font-style: italic;"># cd subversion-x-x-x</span>
<span style="color: #666666; font-style: italic;"># ./configure --prefix=/usr/local/subversion \</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">--with-apxs</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apxs2 <span style="color: #660033;">--with-apr</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apr-config \
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">--with-apr-util</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apr-config <span style="color: #660033;">--with-neon</span>=<span style="color: #000000; font-weight: bold;">/</span>usr \
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">--with-sasl</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>sasl2
<span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p>Once the compiling/installing process is over, we need to enable required apache2 modules:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># a2enmod dav_svn</span>
<span style="color: #666666; font-style: italic;"># a2enmod authnz_ldap</span></pre></div></div>

<p>After the step described above, i needed to edit/create some configuration files for newly enabled modules. First one in line was &#8220;<em>dav_svn.conf</em>&#8221; configuration file, followed by &#8220;<strong>authz</strong>&#8221; file which is mentioned after the configuration directive &#8220;<strong>AuthzSVNAccessFile</strong>&#8220;, and represents a standard subversion authorization mechanism file.</p>
<p><strong>The &#8220;<em>dav_svn.conf</em>&#8221; file:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="properties" style="font-family:monospace;">&lt;Location /svn&gt;
        DAV svn
        SVNParentPath /path/to/parent/path
        SVNListParentPath on
        AuthzSVNAccessFile /path/to/parent/path/conf/authz
&nbsp;
        AuthBasicProvider ldap
        AuthType Basic
        AuthName <span style="color: #933;">&quot;SVN&quot;</span>
        AuthLDAPURL <span style="color: #933;">&quot;ldap://IP_OF_THE_DOMAIN_CONTROLLER:389/dc=DOMAINNAME,dc=TLD?sAMAccountName&quot;</span>
        AuthLDAPBindDN <span style="color: #933;">&quot;cn=ADMINUSER,cn=Users,dc=DOMAINNAME,dc=TLD&quot;</span>
        AuthLDAPBindPassword supersecretpassword
&nbsp;
        require valid-user
&lt;/Location&gt;</pre></div></div>

<p>Apache might complain after enabling &#8220;<em>mod_authnz</em>&#8221; module, so i made it to load after &#8220;<em>dav_svn</em>&#8221; module. In order to accomplish this, i simply added the &#8220;<em>LoadModule</em>&#8221; directive into the configuration file named &#8220;<em>dav_svn.load</em>&#8220;.</p>

<div class="wp_syntax"><div class="code"><pre class="properties" style="font-family:monospace;">LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so</pre></div></div>

<p>And that is it, restarted the apache daemon and accessed our WebDAV repo !</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">http://servername/svn</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://boobah.info/?feed=rss2&amp;p=153</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archiva: The Build Artifact Repository Manager</title>
		<link>http://boobah.info/?p=123</link>
		<comments>http://boobah.info/?p=123#comments</comments>
		<pubDate>Thu, 11 Feb 2010 22:10:37 +0000</pubDate>
		<dc:creator>drade</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Archiva]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://boobah.info/?p=123</guid>
		<description><![CDATA[So, last weekend i was upgrading our main production server to a 64bit version of Debian linux distribution. One of the tasks after the upgrade was to implement Archiva: The Build Artifact Repository Manager and have it authenticate users against our Active Directory server.
The procedure is quite simple, however, the documentation provided on their site [...]]]></description>
			<content:encoded><![CDATA[<p>So, last weekend i was upgrading our main production server to a 64bit version of <strong><a href="http://www.debian.org/">Debian</a></strong> linux distribution. One of the tasks after the upgrade was to implement <strong><a href="http://archiva.apache.org/">Archiva: The Build Artifact Repository Manager</a></strong> and have it authenticate users against our <strong><a href="http://en.wikipedia.org/wiki/Active_Directory">Active Directory</a></strong> server.</p>
<p>The procedure is quite simple, however, the documentation provided on their site makes baby Jesus cry. Below i will describe the steps to get this done, as well as using <strong><a href="http://www.mysql.com/">mySQL</a></strong> instead of the default <strong><a href="http://db.apache.org/derby/">derby</a></strong> database. </p>
<p>These steps are made on Debian/Lenny, however installation/configuration of the standalone archiva package wouldn&#8217;t differ on other linux kernel based distributions.</p>
<p><strong>Ze steps:</strong></p>
<p>Download and unpack archiva to a folder of your choice, i used <code>/opt</code> for the application package and <code>/usr/local/archiva/</code> for the configuration files. This separation is done by issuing a simple <code>cp</code> or <code>mv</code> command (e.g. <code>mv /opt/archiva/conf /usr/local/archiva/</code>).</p>
<p>Instead of derby database i chose mySQL (which is running locally). To get this working i needed to edit a few files, first file to edit was <code>/etc/profile</code> where it was needed to add <code>$ARCHIVA_BASE</code> variable which will later on be used by the archiva start up script (conveniently located in <code>/opt/archiva/bin/archiva</code>). Using my favorite text editor, i added the line <code>export ARCHIVA_BASE=/usr/local/archiva</code>.</p>
<p>Next step was to configure mySQL connections. To do this, changes to the <code>jetty.xml</code> configuration file located inside the <code>/usr/local/archiva/conf/</code> directory were required.</p>
<p>The original section of the <code>jetty.xml</code> configuration file (derby database):</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">  <span style="color: #808080; font-style: italic;">&lt;!-- Archiva database --&gt;</span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;archiva&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.apache.commons.dbcp.BasicDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;driverClassName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>org.apache.derby.jdbc.EmbeddedDataSource<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;url&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>jdbc:derby:<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;SystemProperty</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;appserver.base&quot;</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;..&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>/data/databases/archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;username&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>sa<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Call</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;addConnectionProperty&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>create<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Call<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;archivaShutdown&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/archivaShutdown<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.apache.commons.dbcp.BasicDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;driverClassName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>org.apache.derby.jdbc.EmbeddedDataSource<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;url&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>jdbc:derby:<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;SystemProperty</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;appserver.base&quot;</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;..&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>/data/databases/archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;username&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>sa<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Call</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;addConnectionProperty&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>shutdown<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Call<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!-- Users / Security Database --&gt;</span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;users&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/users<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.apache.derby.jdbc.EmbeddedDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;DatabaseName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;SystemProperty</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;appserver.base&quot;</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;..&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>/data/databases/users<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>sa<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;createDatabase&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>create<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;usersShutdown&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/usersShutdown<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.apache.derby.jdbc.EmbeddedDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;DatabaseName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;SystemProperty</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;appserver.base&quot;</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;..&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>/data/databases/users<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>sa<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;shutdownDatabase&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>shutdown<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Configure<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>mySQL connection is configured as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">  <span style="color: #808080; font-style: italic;">&lt;!-- Archiva database --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;archiva&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;com.mysql.jdbc.jdbc2.optional.MysqlDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;serverName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>localhost<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;databaseName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_username<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_user_password<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;archivaShutdown&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/archivaShutdown<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;com.mysql.jdbc.jdbc2.optional.MysqlDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;serverName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>localhost<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;databaseName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_username<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_user_password<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #808080; font-style: italic;">&lt;!-- Users / Security Database --&gt;</span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;users&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/users<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;com.mysql.jdbc.jdbc2.optional.MysqlDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;serverName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>localhost<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;databaseName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_username<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_user_password<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;usersShutdown&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.mortbay.jetty.plus.naming.Resource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jdbc/usersShutdown<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;New</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;com.mysql.jdbc.jdbc2.optional.MysqlDataSource&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;url&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>jdbc:mysql://localhost/archiva<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;user&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_username<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Set</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>database_user_password<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Set<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Arg<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/New<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Configure<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Of course, i don&#8217;t need to point out that at this point there is no &#8220;archiva&#8221; database in the mySQL yet (you need to create the database, as well as the user and grant privileges to that user), nor does the archiva application come with the appropriate prepackaged connector for the mySQL database. </p>
<p>Obtain the <strong><a href="http://www.mysql.com/downloads/connector/j/">mySQL connector</a></strong>, unpack it and move the JDBC driver named <code>mysql-connector-java-5.0.8-bin.jar</code> to the appropriate directory, in this case the appropriate directory is <code>/opt/archiva/lib/</code>.</p>
<p>Next we configure the Active Directory connection. The connection is established by modifying two configuration files.</p>
<p>First we need to change the file named <code>application.xml</code> located in the <code>/opt/archiva/apps/archiva/WEB-INF/classes/META-INF/plexus/</code> directory.</p>
<p>The original file sections that need to be modified look as presented below (i omitted the commentaries, including only the sections that matter), just under the line</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!-- START SNIPPET: ldap --&gt;</span></pre></div></div>

<p>Commented sections need to be uncommented and some additions need to be done:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #808080; font-style: italic;">&lt;!-- component&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;role&gt;org.codehaus.plexus.redback.common.ldap.connection.LdapConnectionFactory&lt;/role&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;role-hint&gt;configurable&lt;/role-hint&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;implementation&gt;org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory&lt;/implementation&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;requirements&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;requirement&gt;</span>
<span style="color: #808080; font-style: italic;">          &lt;role&gt;org.codehaus.plexus.redback.configuration.UserConfiguration&lt;/role&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;/requirement&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;/requirements&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;/component--&gt;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span>
&nbsp;
<span style="color: #808080; font-style: italic;">    &lt;!-- component&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;role&gt;org.codehaus.plexus.redback.common.ldap.UserMapper&lt;/role&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;role-hint&gt;ldap&lt;/role-hint&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;implementation&gt;org.codehaus.plexus.redback.common.ldap.LdapUserMapper&lt;/implementation&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;configuration&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;email-attribute&gt;email&lt;/email-attribute&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;full-name-attribute&gt;givenName&lt;/full-name-attribute&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;password-attribute&gt;userPassword&lt;/password-attribute&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;user-id-attribute&gt;cn&lt;/user-id-attribute&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;user-base-dn&gt;o=com&lt;/user-base-dn&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;user-object-class&gt;inetOrgPerson&lt;/user-object-class&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;/configuration&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;requirements&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;requirement&gt;</span>
<span style="color: #808080; font-style: italic;">          &lt;role&gt;org.codehaus.plexus.redback.configuration.UserConfiguration&lt;/role&gt;</span>
<span style="color: #808080; font-style: italic;">        &lt;/requirement&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;/requirements&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;/component--&gt;</span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!--</span></pre></div></div>

<p>This is how the sections look after the modifications:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;component<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.plexus.redback.common.ldap.connection.LdapConnectionFactory<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;role-hint<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>configurable<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/role-hint<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;implementation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/implementation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;hostname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>hostname_or_IP_address_of_the_domain_controller<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/hostname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>389<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;baseDn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cn=Users,dc=domain,dc=tld<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/baseDn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;contextFactory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.sun.jndi.ldap.LdapCtxFactory<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/contextFactory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;bindDn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cn=Administrator,cn=Users,dc=domain,dc=tld<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/bindDn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>super_secret_password<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;requirements<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
         <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;requirement<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
           <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.plexus.redback.configuration.UserConfiguration<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
         <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/requirement<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/requirements<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/component<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;component<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.plexus.redback.common.ldap.UserMapper<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;role-hint<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ldap<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/role-hint<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;implementation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.plexus.redback.common.ldap.LdapUserMapper<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/implementation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;email-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>email<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/email-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;full-name-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cn<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/full-name-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;password-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>unicodePwd<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/password-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;user-id-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>sAMAccountName<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/user-id-attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;user-base-dn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cn=Users,dc=domain,dc=tld<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/user-base-dn<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;user-object-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>user<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/user-object-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;requirements<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;requirement<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.plexus.redback.configuration.UserConfiguration<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/role<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/requirement<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/requirements<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/component<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>After we have modified the files above, we need to create or modify the file named <code>security.properties</code> located in the <code>/opt/archiva/apps/archiva/WEB-INF/classes/org/apache/maven/archiva/</code> directory with the following entries:</p>

<div class="wp_syntax"><div class="code"><pre class="properties" style="font-family:monospace;"><span style="color: #000080; font-weight:bold;">user.manager.impl</span><span style="color: #000000;">=</span><span style="color: #008000; font-weight:bold;">ldap</span>
<span style="color: #000080; font-weight:bold;">ldap.bind.authenticator.enabled</span><span style="color: #000000;">=</span><span style="color: #008000; font-weight:bold;">true</span>
<span style="color: #000080; font-weight:bold;">redback.default.admin</span><span style="color: #000000;">=</span><span style="color: #008000; font-weight:bold;">Administrator</span>
<span style="color: #808080; font-style: italic;">#redback.default.guest=</span>
<span style="color: #000080; font-weight:bold;">security.policy.password.expiration.enabled</span><span style="color: #000000;">=</span><span style="color: #008000; font-weight:bold;">false</span></pre></div></div>

<p>That is it, start your archiva application by issuing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /opt/archiva/bin/archiva start</span></pre></div></div>

<p>Open your browser and point it to the URL<br />
<code>http://IP_of_the_box_running_archiva:8080/archiva</code></p>
<p>Log in using your Active Directory administrator account ! Voilà !</p>
]]></content:encoded>
			<wfw:commentRss>http://boobah.info/?feed=rss2&amp;p=123</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Day, New Possibilities !</title>
		<link>http://boobah.info/?p=103</link>
		<comments>http://boobah.info/?p=103#comments</comments>
		<pubDate>Thu, 04 Jun 2009 09:43:38 +0000</pubDate>
		<dc:creator>drade</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://boobah.info/?p=103</guid>
		<description><![CDATA[Today i made a vow that i will start updating this blog more oftenly. I realized that i am still feeling kind of heartbroken over my dog Megi as the painfully joyous memories stream through my body, mind and soul induced by the mellowy sounds of the accoustic version of the song &#8220;Pictures of You&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Today i made a vow that i will start updating this blog more oftenly. I realized that i am still feeling kind of heartbroken over my dog Megi as the painfully joyous memories stream through my body, mind and soul induced by the mellowy sounds of the accoustic version of the song &#8220;Pictures of You&#8221; by &#8220;The Cure&#8221; penetrate thick ether of this office i am sitting in.</p>
]]></content:encoded>
			<wfw:commentRss>http://boobah.info/?feed=rss2&amp;p=103</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goodbye My Faithful Friend</title>
		<link>http://boobah.info/?p=94</link>
		<comments>http://boobah.info/?p=94#comments</comments>
		<pubDate>Tue, 19 May 2009 20:01:53 +0000</pubDate>
		<dc:creator>drade</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://boobah.info/?p=94</guid>
		<description><![CDATA[My words cannot describe the sadness i feel right now, my sixteen year old companion, my dog megi passed away today.  My little fuzzball of happiness, you will always be in my heart.

]]></description>
			<content:encoded><![CDATA[<p>My words cannot describe the sadness i feel right now, my sixteen year old companion, my dog megi passed away today.  My little fuzzball of happiness, you will always be in my heart.</p>
<p><img class="alignleft size-medium wp-image-95" title="megi" src="http://boobah.info/wp-content/uploads/2009/05/megi-300x225.png" alt="megi" width="300" height="225" /></p>
]]></content:encoded>
			<wfw:commentRss>http://boobah.info/?feed=rss2&amp;p=94</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
