<?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>Engineer Tim &#187; trixbox</title>
	<atom:link href="http://engineertim.com/category/trixbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://engineertim.com</link>
	<description>Engineers Blog</description>
	<lastBuildDate>Thu, 10 Jun 2010 16:53:43 +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>trixbox 2.8.0.4 xen image available on xenforge</title>
		<link>http://engineertim.com/voip/trixbox-2-8-0-4-xen-image-available-on-xenforge/</link>
		<comments>http://engineertim.com/voip/trixbox-2-8-0-4-xen-image-available-on-xenforge/#comments</comments>
		<pubDate>Mon, 24 May 2010 19:23:37 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[VOIP]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xenforge]]></category>
		<category><![CDATA[engineer tim]]></category>
		<category><![CDATA[engineertim]]></category>
		<category><![CDATA[engineertim.com]]></category>
		<category><![CDATA[xenforge.org]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=186</guid>
		<description><![CDATA[


I finally put together a xen image for trixbox 2.8.0.4  This is fully updated and is current as of today, 5-24-2010.  The xen image for trixbox and others can be downloaded from XenForge.org here  I have not tested this image that thoroughly.  
Thank you,
Engineer Tim
]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
google_ad_slot = "0240984122";
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>I finally put together a xen image for trixbox 2.8.0.4  This is fully updated and is current as of today, 5-24-2010.  The xen image for trixbox and others can be downloaded from XenForge.org <a href="http://xenforge.org">here</a>  I have not tested this image that thoroughly.  </p>
<p>Thank you,<br />
Engineer Tim</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/voip/trixbox-2-8-0-4-xen-image-available-on-xenforge/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>XenForge.org is online, come and get them!!</title>
		<link>http://engineertim.com/linux/xenforge-org-is-online-come-and-get-them/</link>
		<comments>http://engineertim.com/linux/xenforge-org-is-online-come-and-get-them/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 22:20:34 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xenforge]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=109</guid>
		<description><![CDATA[I had so many requests for my trixbox Xen image that I decided to create a new site.  XenForge.org is this site.  My hope is that people will be able to share their own Xen images with other users as well as use the ones that I create.  This site is also [...]]]></description>
			<content:encoded><![CDATA[<p>I had so many requests for my trixbox Xen image that I decided to create a new site.  <a href="http://xenforge.org">XenForge.org</a> is this site.  My hope is that people will be able to share their own Xen images with other users as well as use the ones that I create.  This site is also not just limited to Xen based images but all images that can be portable and use some form of virtualization technology will be welcome.  The only criteria is that no copyright violations or sharing of copyrighted material happens.  This means OpenSource and derivatives only.  </p>
<p>Currently XenForge offers the following.<br />
Xen Image downloads via Bittorrent links.<br />
The ability to add your own torrent file to the site for others to download.<br />
Forums to discuss the Xen images and config options.  </p>
<p>We hope to be able to offer the means to post torrent files directly to our torrent server from a user.  This is something that is currently being looked at.  Right now users can submit a image for approval and we will be happy to generate the torrent and seed it directly.  This is a manual process right now.</p>
<p>Feel free to join us on XenForge if you have the need for some Xen images.</p>
<p>Thank you,<br />
Engineer Tim</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/xenforge-org-is-online-come-and-get-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>trixbox 2.8 Xen fix/install</title>
		<link>http://engineertim.com/linux/trixbox-2-8-xen-fixinstall/</link>
		<comments>http://engineertim.com/linux/trixbox-2-8-xen-fixinstall/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 23:24:04 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=98</guid>
		<description><![CDATA[



For this to work, you need to have the install media for CentOS, I use the  CentOS 5.3 i386 DVD.  You should also have a read the trixbox-xen.pdf on this site.
CentOS specific stuff we need to do.
mount -oloop CentOS-5.3-i386-bin-DVD.iso /var/www/html/centos
make sure this is browsable in a web browser.  You will need to [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
/* Engineertim 200x90 */
google_ad_slot = "4567243520";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>For this to work, you need to have the install media for CentOS, I use the  CentOS 5.3 i386 DVD.  You should also have a read the trixbox-xen.pdf on this site.</p>
<p><strong>CentOS specific stuff we need to do.</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mount -oloop CentOS-5.3-i386-bin-DVD.iso /var/www/html/centos</div></div>
<p>make sure this is browsable in a web browser.  You will need to be able to serve the installer these files.</p>
<p>We need to copy off the vmliuz and initrd.img from the images/xen folder for our use during the install.  I like to serve all of my xen specific stuff from a nfs mount so that I can access these files from different xen servers without issues.  How you do it is up to you.  These files MUST be accessible by the computer that is going to boot the Xen DomU for trixbox28.  For ease of following this doc, I will user /srv/xen/trixbox28 as my directory for these files.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir /srv/xen/trixbox28<br />
cd /var/www/html/centos/images/xen<br />
cp initrd.img vmlinuz /srv/xen/trixbox28/</div></div>
<p><strong>Trixbox Specific Repo Setup.</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir /var/www/html/trixbox</div></div>
<p>We have to create a trixbox folder to serve the rpms from for the installer.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir /mnt/iso<br />
mount -oloop trixbox-2.8.0.iso /mnt/iso</div></div>
<p>We need to mount the trixbox-2.8.0 iso so we can get the rpms and the comps.xml file off.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /mnt/iso/trixbox<br />
cp *.rpm /var/www/html/trixbox/</div></div>
<p>Now we need to grab the comps.xml file for making the trixbox repo on our web server.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /mnt/iso/repodata<br />
cp comps.xml /var/www/html/trixbox/<br />
cd /var/www/html/trixbox/</div></div>
<p>We need to add a couple of rpms to our new trixbox repo for xen.  This will ensure the xen kernel and dahdi kmod files will work right out of the box. Make sure you are in /var/www/html/trixbox when doing the wget.  Please also make sure to use your closest mirror by going to http://www.centos.org/modules/tinycontent/index.php?id=30</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://mirror.nic.uoregon.edu/centos/5.3/updates/i386/RPMS/kernel-xen-2.6.18-128.1.10.el5.i686.rpm</div></div>
<p>We also need the kmod-dahdi from the trixbox repo.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://yum.trixbox.org/trixbox/2.8/test/kmod-dahdi-linux-xen-2.2.0-4_trixbox.2.6.18_128.1.10.el5.i686.rpm</div></div>
<p>Now lets create our repo for our installer.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">createrepo -g ./comps.xml ./</div></div>
<p>if the createrepo is not found, install it with yum and try again.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yum -y createrepo</div></div>
<p>Now we create our install file. I call mine trixbox28.install, the contents are listed below.  Yours may differ. Of particular note is the kernel, ramdisk, and ks=http://192.168.1.216/trixbox.ks lines.  The file trixbox.ks is our kickstart file, which we will have to make changes to from my original one in my xen guide.</p>
<p>kernel = &#8220;/srv/xen/trixbox28/vmlinuz&#8221;<br />
ramdisk = &#8220;/srv/xen/trixbox28/initrd.img&#8221;<br />
extra = &#8220;text ks=http://192.168.1.216/trixbox.ks&#8221;<br />
name = &#8220;trixbox&#8221;<br />
memory = &#8220;512&#8243;<br />
disk = [ 'tap:aio:/srv/xen/trixbox.img,xvda,w', ]<br />
vif = [ 'bridge=xenbr0', ]<br />
vcpus=1<br />
on_reboot = &#8216;destroy&#8217;<br />
on_crash = &#8216;destroy&#8217;</p>
<p>Save this file in /etc/xen/ </p>
<p>Now we need to edit the trixbox.ks file or ks.cfg from my trixbox-xen guide.  We need to change the first line for the url to now point to our centos install media.<br />
url &#8211;url http://192.168.1.216/centos<br />
please make sure to use the ip address for your web server that is serving the centos install media.</p>
<p>We also need to add one additional repo (trixbox) to the trixbox.ks file.  This is done with the repo line.  Add this just before the %packages statement in the trixbox.ks file.  Be sure to change the IP address and path to reflect the trixbox repo we created from above.  We also need to add the kmod-dahdi-linux-xen so it gets installed and not install the kmod-dahdi-linux package.</p>
<p>#Add the repo information<br />
repo &#8211;name=trixbox &#8211;baseurl=http://192.168.1.216/trixbox/<br />
%packages<br />
@Core<br />
@Trixboxcore<br />
kernel<br />
kernel-xen<br />
#add kmod-dahdi-linux-xen<br />
kmod-dahdi-linux-xen<br />
#remove the one for the other kernel so they don&#8217;t conflict possibly<br />
-kmod-dahdi-linux<br />
postfix<br />
-sendmail</p>
<p>Now save your trixbox.ks or ks.cfg file with these changes.</p>
<p>Now start the install process for trixbox28.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">xm create -c trixbox28.install</div></div>
<p>Your installer should start and ask you for your local as well as a password for root.</p>
<p>You may, more than likely, see a few error messages fly by when the installer starts going.  These are ok to ignore.</p>
<p>Once the install has finished it will shutdown and you will need to start it with your actual trixbox28 xen config.  Mine is listed below, again yours might differ.</p>
<p>name = &#8220;trixbox28&#8243;<br />
memory = &#8220;512&#8243;<br />
disk = [ 'tap:aio:/srv/xen/trixbox.img,xvda,w', ]<br />
vif = [ 'bridge=xenbr0', ]<br />
bootloader=&#8221;/usr/bin/pygrub&#8221;<br />
vcpus=1<br />
on_reboot = &#8216;restart&#8217;<br />
on_crash = &#8216;restart&#8217;</p>
<p>You should see no errors with dhadi,<br />
Starting dahdi:  Loading DAHDI hardware modules:<br />
  wct4xxp:  [  OK  ]<br />
  wcte12xp:  [  OK  ]<br />
  wct1xxp:  [  OK  ]<br />
  wcte11xp:  [  OK  ]<br />
  wctdm24xxp:  [  OK  ]<br />
  opvxa1200:  [  OK  ]<br />
  wcfxo:  [  OK  ]<br />
  wctdm:  [  OK  ]<br />
  wcb4xxp:  [  OK  ]<br />
  wctc4xxp:  [  OK  ]<br />
  xpp_usb:  [  OK  ]</p>
<p>No hardware timing source found in /proc/dahdi, loading dahdi_dummy<br />
Running dahdi_cfg:  [  OK  ]</p>
<p>Firstboot scripts will run and you should be good to go.<br />
Let me know any issues, questions or concerns either by email by posting a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/trixbox-2-8-xen-fixinstall/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>trixbox Xen Install Guide</title>
		<link>http://engineertim.com/linux/trixbox-xen-install-guide/</link>
		<comments>http://engineertim.com/linux/trixbox-xen-install-guide/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 19:28:16 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[DomU]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=33</guid>
		<description><![CDATA[I have put together a install guide for use with trixbox 2.6.2.1 and Xen.  This guide will walk you through installing trixbox in a Xen DomU.  I hope people find it useful.
Thank you,
Engineer Tim






Download trixbox-xen
]]></description>
			<content:encoded><![CDATA[<p>I have put together a install guide for use with trixbox 2.6.2.1 and Xen.  This guide will walk you through installing trixbox in a Xen DomU.  I hope people find it useful.</p>
<p>Thank you,<br />
Engineer Tim<br />
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
/* Engineertim 200x90 */
google_ad_slot = "4567243520";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<br />
<a href='http://engineertim.com/wp-content/uploads/2009/02/trixbox-xen.pdf'>Download trixbox-xen</a></p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/trixbox-xen-install-guide/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>BFD (Brute Force) rule for Asterisk</title>
		<link>http://engineertim.com/linux/bfd-brute-force-rule-for-asterisk/</link>
		<comments>http://engineertim.com/linux/bfd-brute-force-rule-for-asterisk/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:28:53 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://sporkme.com/engineertim.com/?p=16</guid>
		<description><![CDATA[I whipped up a BFD rule to try and defend against sip attacks.  This watches for failed logins in the /var/log/asterisk/full log and then blocks them.  I set the TRIG level low so you might need to change this to something you are more comfortable with.  
 
Drop this file in /usr/local/bfd/rules/
Name the file asterisk
 
 
# failed logins [...]]]></description>
			<content:encoded><![CDATA[<p class="Body">I whipped up a BFD rule to try and defend against sip attacks.  This watches for failed logins in the /var/log/asterisk/full log and then blocks them.  I set the TRIG level low so you might need to change this to something you are more comfortable with.  </p>
<p class="Body"> </p>
<p class="Body">Drop this file in /usr/local/bfd/rules/</p>
<p class="Body">Name the file asterisk</p>
<p class="Body"> </p>
<p class="Body"> </p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># failed logins from a single address before ban<br />
# uncomment to override conf.bfd trig value<br />
TRIG=&quot;5&quot;<br />
<br />
# file must exist for rule to be active<br />
REQ=&quot;/usr/sbin/asterisk&quot;<br />
<br />
if [ -f &quot;$REQ&quot; ]; then<br />
LP=&quot;/var/log/asterisk/full&quot;<br />
TLOG_TF=&quot;asterisk&quot;<br />
TMP=&quot;/usr/local/bfd/tmp&quot;<br />
<br />
## ASTERISK<br />
ARG_VAL=`$TLOG_PATH $LP $TLOG_TF |grep &quot;Wrong password&quot; /var/log/asterisk/full | awk '{NF=NF-3} { print $NF}'| tr -d '\'\' `<br />
fi</div></div>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/bfd-brute-force-rule-for-asterisk/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Rebuild Zaptel Script</title>
		<link>http://engineertim.com/linux/rebuild-zaptel-script/</link>
		<comments>http://engineertim.com/linux/rebuild-zaptel-script/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:27:42 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[zaptel]]></category>

		<guid isPermaLink="false">http://sporkme.com/engineertim.com/?p=14</guid>
		<description><![CDATA[So you want to recompile zaptel on trixbox.  I have put together a script that might help.  I have used this on a few custom installs and it seems to work.  However, don’t kill me if it screws something up.  You will need to start zaptel and amportal once the script finishes.  I don’t do [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to recompile zaptel on trixbox.  I have put together a script that might help.  I have used this on a few custom installs and it seems to work.  However, don’t kill me if it screws something up.  You will need to start zaptel and amportal once the script finishes.  I don’t do this for you since I like to watch for errors on startup.<br />
<a rel="attachment wp-att-26" href="http://engineertim.com/?attachment_id=26">rebuild-zaptel.sh.txt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/rebuild-zaptel-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing trixbox CE</title>
		<link>http://engineertim.com/trixbox/securing-trixbox-ce/</link>
		<comments>http://engineertim.com/trixbox/securing-trixbox-ce/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:25:47 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[trixbox]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://sporkme.com/engineertim.com/?p=9</guid>
		<description><![CDATA[I have created a small guide to help users secure their trixbox CE installs.  This guide is in PDF format and should be readable on just about any system.  This is by no means a definitive guide, but should be used as s way to help users.
securing_trixbox_ce_ver1
]]></description>
			<content:encoded><![CDATA[<p>I have created a small guide to help users secure their trixbox CE installs.  This guide is in PDF format and should be readable on just about any system.  This is by no means a definitive guide, but should be used as s way to help users.<br />
<a href='http://engineertim.com/wp-content/uploads/2008/12/securing_trixbox_ce_ver1.pdf'>securing_trixbox_ce_ver1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/trixbox/securing-trixbox-ce/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>mod_auth_mysql trixbox</title>
		<link>http://engineertim.com/trixbox/mod_auth_mysql-trixbox/</link>
		<comments>http://engineertim.com/trixbox/mod_auth_mysql-trixbox/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:16:43 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[trixbox]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://sporkme.com/engineertim.com/?p=4</guid>
		<description><![CDATA[You want to password protect the user/maint on your trixbox server?   Give this a shot!!]]></description>
			<content:encoded><![CDATA[<p class="Body"> </p>
<p class="Body">You want to password protect the user/maint on your trixbox server?   Give this a shot!!</p>
<p class="Body"> </p>
<p class="Body"><span class="style_1">yum install mod_auth_mysql</span></p>
<p class="Body"> </p>
<p class="Body">Now, inside /etc/httpd/conf.d/auth_mysql.conf</p>
<p class="Body">put the following, or something like it.</p>
<p class="Body"> </p>
<p class="Body"><span class="style_1">LoadModule mysql_auth_module modules/mod_auth_mysql.so<br />
</span></p>
<p class="Body"><span class="style_1">&lt;Directory /var/www/html&gt;<br />
</span></p>
<p class="Body"><span class="style_1">    AuthName &#8220;Authentication Required&#8221;<br />
</span></p>
<p class="Body"><span class="style_1">    AuthType Basic<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMYSQLEnable on<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLUser root<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLPassword passw0rd<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLDB userauth <br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLUserTable users<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLNameField user_name<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLPasswordField user_passwd<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLGroupTable groups<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLGroupField user_group<br />
</span></p>
<p class="Body"><span class="style_1">    require group user<br />
</span></p>
<p class="Body"><span class="style_1">    require valid-user<br />
</span></p>
<p class="Body"><span class="style_1">&lt;/Directory&gt;<br />
</span></p>
<p class="Body"><span class="style_1"><br />
</span></p>
<p class="Body"><span class="style_1">&lt;Directory /var/www/html/maint&gt;<br />
</span></p>
<p class="Body"><span class="style_1">    AuthName &#8220;Authentication Required&#8221;<br />
</span></p>
<p class="Body"><span class="style_1">    AuthType Basic<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMYSQLEnable on<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLUser root<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLPassword passw0rd<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLDB userauth<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLUserTable users<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLNameField user_name<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLPasswordField user_passwd<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLGroupTable groups<br />
</span></p>
<p class="Body"><span class="style_1">    AuthMySQLGroupField user_group<br />
</span></p>
<p class="Body"><span class="style_1">    require group admin<br />
</span></p>
<p class="Body"><span class="style_1">&lt;/Directory&gt;</span></p>
<p class="Body"> </p>
<p class="Body"> </p>
<p class="Body"> </p>
<p class="Body">Here is the schema for the userauth mysql database.  Copy and paste this into a file called userauth.schema.sql</p>
<p class="Body"> </p>
<p class="paragraph_style"><span class="style_2">&#8211; MySQL dump 10.10<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211; Host: localhost    Database: userauth<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211; Server version5.0.22<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET NAMES utf8 */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40103 SET TIME_ZONE=&#8217;+00:00&#8242; */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE=&#8217;NO_AUTO_VALUE_ON_ZERO&#8217; */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211; Current Database: `userauth`<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">CREATE DATABASE /*!32312 IF NOT EXISTS*/ `userauth` /*!40100 DEFAULT CHARACTER SET latin1 */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">USE `userauth`;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211; Table structure for table `groups`<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">DROP TABLE IF EXISTS `groups`;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">CREATE TABLE `groups` (<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  `user_name` char(30) NOT NULL,<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  `user_group` char(20) NOT NULL,<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  PRIMARY KEY  (`user_name`,`user_group`)<br />
</span></p>
<p class="paragraph_style"><span class="style_2">) ENGINE=MyISAM DEFAULT CHARSET=latin1;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211; Table structure for table `users`<br />
</span></p>
<p class="paragraph_style"><span class="style_2">&#8211;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">DROP TABLE IF EXISTS `users`;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">CREATE TABLE `users` (<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  `user_name` char(30) NOT NULL,<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  `user_passwd` char(20) NOT NULL,<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  `extension` int(10) NOT NULL,<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  `email` char(50) NOT NULL,<br />
</span></p>
<p class="paragraph_style"><span class="style_2">  PRIMARY KEY  (`user_name`)<br />
</span></p>
<p class="paragraph_style"><span class="style_2">) ENGINE=MyISAM DEFAULT CHARSET=latin1;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2"><br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;<br />
</span></p>
<p class="paragraph_style"><span class="style_2">/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;</span></p>
<p class="paragraph_style"> </p>
<p class="paragraph_style"> </p>
<p class="Body">Now create the database and import the schema.</p>
<p class="paragraph_style_1">mysqladmin -uroot -p create userauth</p>
<p class="paragraph_style_1">mysql -uroot -p userauth &lt; userauth.schema.sql</p>
<p class="paragraph_style_2"> </p>
<p class="Body">Now you need to create some users.  I don’t recommend that you use the older maint/password if your server is facing the internet.  I am going to create a engineertim login that is in both the user and admin group.   For my one user, I will create a separate login called kerry.</p>
<p class="Body">login to mysql and use the following commands, replace engineertim and kerry with your own users.</p>
<p class="Body"><span class="style_1">mysql -uroot -p<br />
</span></p>
<p class="Body"><span class="style_1">mysql&gt; use userauth;<br />
</span></p>
<p class="paragraph_style_3"><span class="style_1">INSERT INTO `userauth`.`users` (`user_name` ,`user_passwd` ,`extension` ,`email`) VALUES (&#8216;engineertim&#8217;, ENCRYPT(&#8216;letmein&#8217;),&#8221;,&#8221; );<br />
</span></p>
<p class="paragraph_style_3"><span class="style_1"><br />
</span></p>
<p class="paragraph_style_3"><span class="style_1">INSERT INTO `userauth`.`users` (`user_name` ,`user_passwd` ,`extension` ,`email`) VALUES (&#8216;kerry&#8217;, ENCRYPT(&#8216;letmein&#8217;),&#8221;,&#8221; );<br />
</span></p>
<p class="paragraph_style_3"><span class="style_1"><br />
</span></p>
<p class="paragraph_style_3"><span class="style_1">INSERT INTO `groups` VALUES (&#8216;engineertim&#8217;,'user&#8217;),(&#8216;engineertim&#8217;,'admin&#8217;),(&#8216;kerry&#8217;,'user&#8217;);<br />
</span></p>
<p class="paragraph_style_3"><span class="style_1">mysql&gt; exi</span><span class="style_3">t<br />
</span></p>
<p class="paragraph_style_3"><span class="style_3"><br />
</span></p>
<p class="paragraph_style_3"><span class="style_3">You now need to edit the /etc/httpd/conf/httpd.conf and add a comment to the last line that should be a Include.<br />
</span></p>
<p class="paragraph_style_3"><span class="style_1">#Include /etc/trixbox/httpdconf/*</span><span class="style_3"><br />
</span></p>
<p class="paragraph_style_3"><span class="style_3"><br />
</span></p>
<p class="paragraph_style_3"><span class="style_3">Restart apache for everything to take affect.<br />
</span></p>
<p class="paragraph_style_3"><span class="style_1">service httpd restart</span><span class="style_3"><br />
</span></p>
<p class="paragraph_style_3"><span class="style_3"><br />
</span></p>
<p class="paragraph_style_3"><span class="style_3">Now try and login to your trixbox with the new username and passwords.  If you have issues, you can remove the comment from httpd.conf, restart apache and use the old login while you debug.  You might also want to use tbm-phpmyadmin.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/trixbox/mod_auth_mysql-trixbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.269 seconds -->
