<?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>Jared Heinrichs &#187; OpenVpn-als</title>
	<atom:link href="http://jaredheinrichs.com/category/operating-system/ubuntu-linux/openvpn-als/feed" rel="self" type="application/rss+xml" />
	<link>http://jaredheinrichs.com</link>
	<description>A Winnipeg &#34;How to&#34; Blog on Software and Technology</description>
	<lastBuildDate>Tue, 31 Jan 2012 20:27:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install openvpn-als on Ubuntu Linux SSL VPN</title>
		<link>http://jaredheinrichs.com/how-to-install-openvpn-als-on-ubuntu-linux-ssl-vpn.html</link>
		<comments>http://jaredheinrichs.com/how-to-install-openvpn-als-on-ubuntu-linux-ssl-vpn.html#comments</comments>
		<pubDate>Wed, 28 Oct 2009 12:37:07 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[OpenVpn-als]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/how-to-install-openvpn-als-on-ubuntu-linux-ssl-vpn.html</guid>
		<description><![CDATA[This is a complete walkthrough for installing openvpn-als on linux, and synchronizing the user database with a windows domain controller running Active Directory. I used debian lenny, but this should work equally well with ubuntu server. Log into your new &#8230; <a href="http://jaredheinrichs.com/how-to-install-openvpn-als-on-ubuntu-linux-ssl-vpn.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a complete walkthrough for installing openvpn-als on linux, and synchronizing the user database with a windows domain controller running Active Directory. I used debian lenny, but this should work equally well with ubuntu server. </p>
<p> <span id="more-1773"></span>
<p>Log into your new system as root (i know, i know, but it&#8217;s easier. If you don&#8217;t feel comfortable logging in as root, just prepend sudo to all the commands below.) </p>
<p>First add the extra repositories to apt, and change it over from lenny to stable (ubuntu users, ignore the first line here) </p>
<ol>
<li>sed -i.bak &#8216;s#lenny#stable#&#8217; /etc/apt/sources.list </li>
<li>sed -i.bak &#8216;s#main#main contrib non-free#&#8217; /etc/apt/sources.list </li>
<li>aptitude update </li>
</ol>
<p>Now install the needed dependencies: </p>
<ol>
<li>aptitude install sun-java6-jdk ant junit subversionand grab the current svn trunk version of ALS svn co https://openvpn-als.svn.sourceforge.net/svnroot/openvpn-als/adito/trunk /opt/openvpn-als </li>
<li>ALS needs the tools.jar (about 12.5mb) that is distributed with the JDK to be placed in the $ADITO_HOME\adito\lib folder. On my system I had to do this, but you may be different&#8230; </li>
<li>cp /usr/lib/jvm/java-6-sun-1.6.0.12/lib/tools.jar /opt/openvpn-als/adito/lib/ </li>
</ol>
<p>now run the installer </p>
<ul>
<li>cd /opt/openvpn-als &amp;&amp; ant install </li>
</ul>
<p>You&#8217;ll see alot of text scroll by as the javac does it&#8217;s magic, the it&#8217;ll stop and give you a web address to go to, so open a web borwser and go to the url provided. If you dont have DNS set up yet, then you can substitute the hostname for the IP fo the machine. e.g. <a href="http://192.168.1.10:28080">http://192.168.1.10:28080</a></p>
<p>you should get something like this:    <br /><a href="http://sourceforge.net/apps/trac/openvpn-als/attachment/wiki/MiscWikiFiles/1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://jaredheinrichs.com/wp-content/uploads/2009/10/clip_image0021.gif" width="604" height="465" /></a></p>
<p>Only you won&#8217;t get the &quot;use current certificate&quot; option &#8211; you only get this if you re-run the installer. </p>
<p>Choose &quot;create new certificate&quot;, and enter a passphrase, then fill in the certificate details and click next. </p>
<p><b>Step 2 &#8211; user database</b>     <br /><a href="http://sourceforge.net/apps/trac/openvpn-als/attachment/wiki/MiscWikiFiles/deb_install_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://jaredheinrichs.com/wp-content/uploads/2009/10/clip_image0041.gif" width="479" height="472" /></a>     <br />Choose Active directory, and fill in the details:     <br /><a href="http://sourceforge.net/apps/trac/openvpn-als/attachment/wiki/MiscWikiFiles/deb_install_2_1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://jaredheinrichs.com/wp-content/uploads/2009/10/clip_image0061.gif" width="485" height="474" /></a>     <br /><b></b></p>
<p><b>Domain:</b> Your Active directory domain, as displayed in the &quot;active direcotry users and computers&quot; mmc snapin </p>
<p><b>Service Account Name:</b> this is the username of a standard user in the company.local -&gt; users OU. It is not a full LDAP DN as the documentation suggests. </p>
<p><b>Service Account password:</b> the password for the above account. It is recommended to set the password to never expire, and prevent the user fom changing the password when creating the account (or set it now from the account tab of the users properties). </p>
<p>Note that for this to work your DNS must be working, i.e. you should be able to ping dc AND dc.domain.local from your ALS server. If you have problems at this point examine the contents of the /opt/openvpn-als/adito/logs/adito.log file. I would suggest adding all your DC&#8217;s to your /etc/hosts file jic. </p>
<p><a href="http://sourceforge.net/apps/trac/openvpn-als/attachment/wiki/MiscWikiFiles/deb_install_2_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://jaredheinrichs.com/wp-content/uploads/2009/10/clip_image008.gif" width="477" height="530" /></a>     <br />On the OU filter tab, you should add the OU&#8217;s that your users and groups exist in as LDAP DN strings. In my case all my users are in an OU off the root called Comany Users, and all my groups are in an OU called Company groups, so i added: </p>
<p>OU=Company Users,DC=company,DC=local</p>
<p>OU=Comapny Groups,DC=company,DC=local</p>
<p>On the options tab I had to increase the &quot;Max Group Cache Objects&quot; because we have a lot of groups, but I&#8217;d leave everything as default to start with, as you can rerun the installer if you have problems later. </p>
<p><b>Step 3 &#8211; Superuser.</b>     <br /><a href="http://sourceforge.net/apps/trac/openvpn-als/attachment/wiki/MiscWikiFiles/deb_install_2_3.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image010" border="0" alt="clip_image010" src="http://jaredheinrichs.com/wp-content/uploads/2009/10/clip_image010.gif" width="481" height="477" /></a></p>
<p>On this screen you should choose an account from AD to be your openvpn-als admin account. This is the accout that you use to edit the configuration of openvpn-als. It doesn&#8217;t have to be a domain admin account, but I wouldn&#8217;t use a personal account, as multiple administrators may need to use it. I created a new user called aadmin for the task. NOTE: I wouldn&#8217;t use the same account that you used above, as you may have to (in fact you should) change the password of this user every so often. </p>
<p><b>Step 4 &#8211; Webserver.</b>     <br />Choose the ports &amp; IP that you ant the server to listen on. If you leave the default 443, you will be able to browse to the site without having to specify a port, i.e. <a href="https://yourserver">https://yourserver</a>, instead of <a href="https://yourserver:portnumber">https://yourserver:portnumber</a></p>
<p><b>Step 5 &#8211; Proxies</b>     <br />Configure proxy information as needed </p>
<p><b>Step 6 &#8211; Summary</b>     <br />Check over the information provided, and finish. </p>
<p>At this point the installer will finish: </p>
<p><a href="http://sourceforge.net/apps/trac/openvpn-als/attachment/wiki/MiscWikiFiles/deb_install_final.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image012" border="0" alt="clip_image012" src="http://jaredheinrichs.com/wp-content/uploads/2009/10/clip_image012.gif" width="601" height="138" /></a></p>
<p>and you will get your cursor back in the terminal window. </p>
<p>Now we need to build the client and install the service. These are both done with ant. To see the possible ant options, use the command </p>
<ul>
<li>ant -projecthelp </li>
</ul>
<p>from within the /opt/adito-svn folder:    <br /><a href="http://sourceforge.net/apps/trac/openvpn-als/attachment/wiki/MiscWikiFiles/deb_install_ant_opts.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image014" border="0" alt="clip_image014" src="http://jaredheinrichs.com/wp-content/uploads/2009/10/clip_image014.gif" width="644" height="239" /></a></p>
<p>We need to install the agent, and the service, so run the follwing commands, one after the other: </p>
<ol>
<li>ant install-agent </li>
<li>ant install-service </li>
<li>now you should be able to start the service with the command </li>
<li>/etc/init.d/openvpn-als start </li>
</ol>
<p>and browse to <a href="https://yourserver">https://yourserver</a> to log into openvpn-als (with the aadmin superuser from earlier). </p>
<p>Now you&#8217;ll need to configure some applications&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-to-install-openvpn-als-on-ubuntu-linux-ssl-vpn.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

