<?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>Don Mason &#187; Computers</title>
	<atom:link href="http://www.nosam.com/category/computers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nosam.com</link>
	<description>My Blog...</description>
	<lastBuildDate>Tue, 14 Jul 2009 14:59:45 +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>Enabling Apache SSL via Microsoft Certificate Server</title>
		<link>http://www.nosam.com/2009/07/enabling-apache-ssl-via-microsoft-certificate-server</link>
		<comments>http://www.nosam.com/2009/07/enabling-apache-ssl-via-microsoft-certificate-server#comments</comments>
		<pubDate>Thu, 02 Jul 2009 00:09:21 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.nosam.com/?p=140</guid>
		<description><![CDATA[<p>The paths for this example are based on FreeBSD 7.2. You&#8217;ll notice extra lines inserted into the sequence of commands below. You&#8217;ll need to enter the key file password either once or twice for each command preceding an extra line. Also, replace URL with your server&#8217;s internet name (e.g. www.nosam.com) wherever it is used below since <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.nosam.com/2009/07/enabling-apache-ssl-via-microsoft-certificate-server">Enabling Apache SSL via Microsoft Certificate Server</a></span>]]></description>
			<content:encoded><![CDATA[<p>The paths for this example are based on FreeBSD 7.2. You&#8217;ll notice extra lines inserted into the sequence of commands below. You&#8217;ll need to enter the key file password either once or twice for each command preceding an extra line. Also, replace URL with your server&#8217;s internet name (e.g. www.nosam.com) wherever it is used below since this will allow you to support several virtual server certificates:</p>
<blockquote><p>
cd /usr/local/etc/apache22<br />
openssl genrsa -des3 -out URL.key 1024<br />
openssl rsa -in URL.key -out URL.pem<br />
openssl req -new -key URL.key -out URL.csr
</p></blockquote>
<p>Get a &#8220;Web Server&#8221; certificate from Microsoft Certificate Server.</p>
<ol>
<li>Using the URL.csr file contents.
<li>Download just the certificate (not the certificate chain) in &#8220;Base 64 encoded&#8221; format.
<li>Save with the filename URL.crt file into the /usr/local/etc/apache22 directory
</ol>
<blockquote><p>
    chmod 0400 /usr/local/etc/apache22/URL.pem<br />
    chmod 0400 /usr/local/etc/apache22/URL.key<br />
    chmod 0400 /usr/local/etc/apache22/URL.crt<br />
    chmod 0400 /usr/local/etc/apache22/URL.csr
</p></blockquote>
<p>Next, edit the httpd.conf file in /usr/local/etc/apache22 and uncomment the &#8220;Include&#8221; line:</p>
<blockquote><p>
    # Secure (SSL/TLS) connections<br />
    Include etc/apache22/extra/httpd-ssl.conf
</p></blockquote>
<p>Finally, edit the httpd-ssl.conf in /usr/local/etc/apache22/extra:</p>
<blockquote><p>
    SSLCertificateFile &#8220;/usr/local/etc/apache22/URL.crt&#8221;<br />
    SSLCertificateKeyFile &#8220;/usr/local/etc/apache22/URL.pem&#8221;
</p></blockquote>
<p>Restart Apache via the &#8220;apachectl restart&#8221; command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosam.com/2009/07/enabling-apache-ssl-via-microsoft-certificate-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating FreeBSD 7.x Into Windows Server 2003/2008 Active Directory As A Domain Member Server</title>
		<link>http://www.nosam.com/2008/09/making-freebsd-7x-a-windows-server-20032008-active-directory-domain-member</link>
		<comments>http://www.nosam.com/2008/09/making-freebsd-7x-a-windows-server-20032008-active-directory-domain-member#comments</comments>
		<pubDate>Sat, 20 Sep 2008 06:25:12 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.nosam.com/don/?p=65</guid>
		<description><![CDATA[<p>I have spent more than 15 hours trying to integrate FreeBSD servers and Microsoft Active Directory. Any successes have come from hours of googling and trying to patch together information from pages about several versions of FreeBSD and Samba to get a working system. These instructions represent my notes on the process and were tested on <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.nosam.com/2008/09/making-freebsd-7x-a-windows-server-20032008-active-directory-domain-member">Integrating FreeBSD 7.x Into Windows Server 2003/2008 Active Directory As A Domain Member Server</a></span>]]></description>
			<content:encoded><![CDATA[<p>I have spent more than 15 hours trying to integrate FreeBSD servers and Microsoft Active Directory. Any successes have come from hours of googling and trying to patch together information from pages about several versions of FreeBSD and Samba to get a working system. These instructions represent my notes on the process and were tested on a <strong>FreeBSD 7.1</strong> amd64 system with the <strong>Samba 3.0.34</strong> port. I also tried the 3.2.8 and 3.3.2 ports but was unable to successfully integrate with an Active Directory domain.</p>
<p>Steps:</p>
<ol>
<li>Enter: <em><strong>cd /usr/ports/security/krb5 &amp;&amp; make KRB5_HOME=/usr/local install clean</strong></em>
<ul>
<li>Don&#8217;t change any config options</li>
</ul>
</li>
<li>Enter: <em><strong>cd /usr/ports/net/samba3 &amp;&amp; make KRB5_HOME=/usr/local</strong></em> <strong><em>install clean</em></strong>
<ul>
<li>Select LDAP, ADS, CUPS, WINBIND, ACL_SUPPORT, FAM_SUPPORT, SYSLOG, UTMP, PAM_SMBPASS, DNSUPDATE, EXP_MODULES &amp; POPT. Deselect all other options.</li>
</ul>
</li>
<li>Enter: <strong><em>vi /etc/krb5.conf</em></strong>
<ul>
<li>Many sources say this step is optional. I think it&#8217;s mandatory with Windows Server 2003 &amp; 2008 servers.</li>
<li>Make it look similar to below. Wherever you see DOMAIN.INT, replace with your active directory domain &#8211; but absolutely maintain the upper and lower case as specificed below. <em>For instance, if your AD domain controller is ad1.example.dom, you would substitue &#8220;example.dom&#8221; for all occurences of &#8220;domain.int&#8221; maintaining the capitalization below.</em></li>
<li>Also replace server in &#8220;server.domain.int&#8221; with the FQDN of your active directory controller. If you have more than one, you may add additional <strong>kdc</strong> and <strong>admin_server</strong> lines for each controller, substituting the hostname for each domain controller.</li>
</ul>
</li>
<blockquote><p><strong>[logging]<br />
 default = SYSLOG:INFO:LOCAL7<br />
 default_realm = DOMAIN.INT</strong></p>
<p><strong>[libdefaults]<br />
 clock_skew = 300<br />
 default_realm = DOMAIN.INT<br />
 default_tgs_enctypes = RC4-HMAC DES-CBC-CRC DES-CBC-MD5<br />
 default_tkt_enctypes = RC4-HMAC DES-CBC-CRC DES-CBC-MD5<br />
 preferred_enctypes = RC4-HMAC DES-CBC-CRC DES-CBC-MD5<br />
 ticket_lifetime = 24000</strong></p>
<p><strong>[realms]<br />
 DOMAIN.INT = {<br />
  kdc = server.domain.int:88<br />
  admin_server = server.domain.int:464<br />
  default_domain = domain.int<br />
 }</strong></p>
<p><strong>[domain_realm]<br />
 .domain.int = DOMAIN.INT<br />
 domain.int = DOMAIN.INT</strong></p></blockquote>
<li>Enter: <strong><em>kinit Administrator</em></strong>
<ul>
<li>You should see: <em><strong>kinit: NOTICE: ticket renewable lifetime is 1 week</strong></em></li>
<li>If not, check your capitalization and the names of your <strong>kdc</strong> and <strong>admin_server</strong> entries.</li>
</ul>
</li>
<li>While you may enter: <em><strong>mv /usr/local/etc/smb.conf-dist /usr/local/etc/smb.conf &amp;&amp; vi /usr/local/etc/smb.conf</strong></em>, I suggest entering <em><strong>vi /usr/local/etc/smb.conf</strong></em> to create a blank config file and adding the following lines.
<ul>
<li>Replace <strong>DOMAIN</strong>, <strong>DOMAIN.INT</strong> and <strong>server.domain.int</strong> with the FQDN of your active directory controller. If you have more than one, you may add them to the <strong>password server</strong> line separated by spaces. Replace <strong>workgroup</strong> with the uppercase NETBIOS name of your domain, <strong>realm</strong> with the Active Directory domain, <strong>password server</strong> with the FQDN of your Active Directory domain controller, and <strong>wins server</strong> with the IP address of your WINS server if present on your network. Comment it out if you don&#8217;t have a WINS server.</li>
</ul>
</li>
<blockquote><p><strong>[global]<br />
        dos charset = ASCII<br />
        unix charset = UTF8<br />
        display charset = UTF8<br />
        workgroup = DOMAIN<br />
        realm = DOMAIN.INT<br />
        server string = FreeBSD Server %v<br />
        security = ADS<br />
        allow trusted domains = no<br />
        password server = server.domain.int<br />
        restrict anonymous = 2<br />
        client NTLMv2 auth = yes<br />
        client lanman auth = no<br />
        client plaintext auth = no<br />
        client use spnego = no<br />
        server signing = auto<br />
        log level = 10<br />
        log file = /var/log/samba/log.%m<br />
        max log size = 50<br />
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192<br />
        preferred master = no<br />
        local master = no<br />
        domain master = no<br />
        dns proxy = no<br />
        wins server = 192.168.1.x<br />
        ldap ssl = no<br />
        idmap uid = 10000-20000<br />
        idmap gid = 10000-20000<br />
        template homedir = /home/%D/%U<br />
        </strong><strong>template shell = /bin/tcsh<br />
        add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u<br />
        winbind separator = +<br />
        winbind cache time = 3600<br />
        winbind enum users = yes<br />
        winbind enum groups = yes<br />
        winbind use default domain = yes<br />
        winbind refresh tickets = yes<br />
        winbind offline logon = yes</strong></p></blockquote>
<li>Enter: <em><strong>net ads join -U </strong><strong>Administrator</strong></em>
<ul>
<li>You should be prompted for the password to the Administrator account in your Active Directory domain.</li>
</ul>
<ul>
<li>You should then see the following where <strong>DOMAIN</strong> is the NETBIOS name of your Active directory domain, <strong>FREEBSD</strong> is the hostname of your FreeBSD server, and <strong>DOMAIN.INT</strong> is your Active Directory domain used when configuring your /etc/krb5.conf file:</li>
</ul>
</li>
<blockquote><p><strong>Using short domain name &#8212; DOMAIN<br />
Joined &#8216;FREEBSD&#8217; to realm &#8216;DOMAIN.INT&#8217;</strong></p></blockquote>
<li>Enter: <em><strong>mkdir /home/DOMAIN</strong></em>
<ul>
<li>Where <strong>DOMAIN</strong> is the NETBIOS name of your Active Directory domain. The FreeBSD user /home directory is linked to /home.</li>
</ul>
</li>
<li>Enter: <em><strong>vi /etc/rc.conf</strong></em>
<ul>
<li>Add the following lines to enable the various samba servers:</li>
</ul>
</li>
<blockquote><p><strong>nmbd_enable=&#8221;YES&#8221;<br />
samba_enable=&#8221;YES&#8221;<br />
smbd_enable=&#8221;YES&#8221;<br />
winbindd_enable=&#8221;YES&#8221;</strong></p></blockquote>
<li>Enter: <em><strong>/usr/local/etc/rc.d/samba start</strong></em>
<ul>
<li>Start the Samba daemons.</li>
</ul>
</li>
<li>Enter: <strong><em>vi /etc/nsswitch.conf</em></strong>
<ul>
<li>Make the existing lines match the following by making the highlighted changes:</li>
</ul>
</li>
<blockquote><p>group: <strong>winbind</strong> files<br />
group_compat: nis<br />
hosts: files dns<br />
networks: files<br />
passwd: <strong>winbind</strong> files<br />
passwd_compat: nis<br />
shells: files<br />
services: compat<br />
services_compat: nis<br />
protocols: files<br />
rpc: files<br />
<strong>shadow: winbind files</strong></p></blockquote>
<li>Enter: <em><strong>cd<span> </span>/usr/ports/security/pam_mkhomedir &amp;&amp; make install clean</strong></em>
<ul>
<li>This port will allow your system to automatically create user directories when combined with the next step.</li>
</ul>
</li>
<li>Enter: <strong><em>vi /etc/pam.d/sshd</em></strong>
<ul>
<li>Make the existing lines match the following by adding the highlighted lines:</li>
</ul>
</li>
<blockquote><p>#<br />
# $FreeBSD: src/etc/pam.d/sshd,v 1.16 2007/06/10 18:57:20 yar Exp $<br />
#<br />
# PAM configuration for the &#8220;sshd&#8221; service</p>
<p># auth<br />
auth            sufficient      pam_opie.so             no_warn no_fake_prompts<br />
auth            requisite       pam_opieaccess.so       no_warn allow_local<br />
<strong>auth            sufficient      /usr/local/lib/pam_winbind.so</strong><br />
#auth           sufficient      pam_krb5.so             no_warn try_first_pass<br />
#auth           sufficient      pam_ssh.so              no_warn try_first_pass<br />
auth            required        pam_unix.so             no_warn try_first_pass</p>
<p># account<br />
account         required        pam_nologin.so<br />
#account        required        pam_krb5.so<br />
account         required        pam_login_access.so<br />
account         required        pam_unix.so</p>
<p># session<br />
#session        optional        pam_ssh.so<br />
<strong>session         required        /usr/local/lib/pam_mkhomedir.so</strong><br />
session         required        pam_permit.so</p>
<p># password<br />
#password       sufficient      pam_krb5.so             no_warn try_first_pass<br />
password        required        pam_unix.so             no_warn try_first_pass</p></blockquote>
<li>Enter: <em><strong>/usr/local/etc/rc.d/samba start</strong></em></li>
<li>Enter: <em><strong>/usr/local/etc/rc.d/samba start</strong></em></li>
</ol>
<p>Please comment if you would like to see any corrections made to this guide.</p>
<p>Suggested Reading Material:</p>
<ul>
<li><span><span style="color: #000000;"><a title="FreeBSD Single Sign on with Active Directory and Access Control" href="http://www.ctdx.net/2008/07/11/freebsd-single-sign-on-with-active-directory-and-access-control/" target="_blank">FreeBSD Single Sign on with Active Directory and Access Control</a> by Chris Edwards.</span></span></li>
<li><a title="There's a lot of stuff in the krb5.conf and kdc.conf files. What does it all mean, and what do I really need?" href="http://www.faqs.org/faqs/kerberos-faq/general/section-38.html" target="_blank">There&#8217;s a lot of stuff in the krb5.conf and kdc.conf files. What does it all mean, and what do I really need?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nosam.com/2008/09/making-freebsd-7x-a-windows-server-20032008-active-directory-domain-member/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
