<?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>David Hrbáč &#187; CentOS 4.x</title>
	<atom:link href="http://www.hrbac.cz/category/centos/centos-4x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hrbac.cz</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 Jan 2012 21:43:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Captcha for Horde</title>
		<link>http://www.hrbac.cz/2010/12/captcha-for-horde/</link>
		<comments>http://www.hrbac.cz/2010/12/captcha-for-horde/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 12:22:54 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS 4.x]]></category>
		<category><![CDATA[CentOS 5.x]]></category>
		<category><![CDATA[horde]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=268</guid>
		<description><![CDATA[Here is small patch to implement captcha on Horde login page. We have implemeteded Text_CAPTCHA_Numeral. Package for Centos is here: http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html. Here is the patch. --- horde-webmail-1.2.8.orig/imp/login.php 2010-10-25 17:10:05.000000000 +0200 +++ horde-webmail-1.2.8/imp/login.php 2010-11-30 17:36:27.571023703 +0100 @@ -398,6 +398,7 @@ $t-&#62;set&#40;'user_vinfo', Horde::callHook&#40;'_imp_hook_vinfo', array&#40;'vdomain'&#41;, 'imp'&#41;&#41;; &#125; $t-&#62;set&#40;'password_tabindex', ++$tabindex&#41;; +$t-&#62;set&#40;'captch_tabindex', ++$tabindex&#41;; &#160; $t-&#62;set&#40;'change_smtphost', &#40;!empty&#40;$conf&#91;'server'&#93;&#91;'change_smtphost'&#93;&#41;&#41;&#41;; if &#40;$t-&#62;get&#40;'change_smtphost'&#41;&#41; &#123; @@ [...]]]></description>
			<content:encoded><![CDATA[<p>Here is small patch to implement captcha on Horde login page. We have implemeteded <a href="http://pear.php.net/package/Text_CAPTCHA_Numeral">Text_CAPTCHA_Numeral</a>. Package for Centos is here: <a href="http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html">http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html</a>. Here is the <a href='http://www.hrbac.cz/blog/wp-content/Text-CAPTCHA-Numeral-Horde.txt'>patch</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">---</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">.</span>orig<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color:#800080;">05.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">30</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">36</span><span style="color: #339933;">:</span><span style="color:#800080;">27.571023703</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">398</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">398</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">@@</span>
     <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user_vinfo'</span><span style="color: #339933;">,</span> Horde<span style="color: #339933;">::</span><span style="color: #004000;">callHook</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_imp_hook_vinfo'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'vdomain'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imp'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'password_tabindex'</span><span style="color: #339933;">,</span> <span style="color: #339933;">++</span><span style="color: #000088;">$tabindex</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'captch_tabindex'</span><span style="color: #339933;">,</span> <span style="color: #339933;">++</span><span style="color: #000088;">$tabindex</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'change_smtphost'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conf</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'server'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'change_smtphost'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'change_smtphost'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">446</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">447</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">16</span> <span style="color: #339933;">@@</span>
     <span style="color: #0000ff;">'var imp_auth = '</span> <span style="color: #339933;">.</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imp_auth</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
     <span style="color: #0000ff;">'var nomenu = '</span> <span style="color: #339933;">.</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conf</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'menu'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'always'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
 <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">-</span><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span>IMP_TEMPLATES <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/login/login.html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">// ZMENA</span>
<span style="color: #339933;">+</span><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #339933;">,</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">':/usr/share/php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Text/CAPTCHA/Numeral.php'</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$numcap</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Text_CAPTCHA_Numeral<span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">echo</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Vysledek'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$numcap</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getOperation</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' ='</span><span style="color: #339933;">,</span> <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span>IMP_TEMPLATES <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/login/login.html'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'answer'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$numcap</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAnswer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">//KONEC ZMENY</span>
&nbsp;
 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$recompose_data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #666666; font-style: italic;">/* Prepare recompose template. */</span>
&nbsp;
<span style="color: #339933;">---</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">.</span>orig<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>redirect<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color:#800080;">05.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>redirect<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">30</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">36</span><span style="color: #339933;">:</span><span style="color:#800080;">27.555023948</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">91</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">91</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">14</span> <span style="color: #339933;">@@</span>
 <span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Horde/Maintenance.php'</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #000088;">$actionID</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'compose'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'login_compose'</span> <span style="color: #339933;">:</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'actionID'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$captch</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'captch'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captch</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'answer'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$captch</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'answer'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>            _redirect<span style="color: #009900;">&#40;</span>Auth<span style="color: #339933;">::</span><span style="color: #004000;">addLogoutParameters</span><span style="color: #009900;">&#40;</span>IMP<span style="color: #339933;">::</span><span style="color: #004000;">logoutUrl</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> AUTH_REASON_FAILED<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span>
 <span style="color: #000088;">$autologin</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'autologin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000088;">$imapuser</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getPost</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'imapuser'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000088;">$pass</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getPost</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">---</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">.</span>orig<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>templates<span style="color: #339933;">/</span>login<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>html	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color:#800080;">05.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>templates<span style="color: #339933;">/</span>login<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>html	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">30</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">36</span><span style="color: #339933;">:</span><span style="color:#800080;">27.215029139</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">94</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">94</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">12</span> <span style="color: #339933;">@@</span>
       <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> tabindex<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;tag:password_tabindex /&gt;&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;direction:ltr&quot;</span> <span style="color: #339933;">/&gt;</span>
      <span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>    <span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>     <span style="color: #339933;">&lt;</span>td <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;light rightAlign&quot;</span><span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;captch&quot;</span><span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;&lt;</span>gettext<span style="color: #339933;">&gt;</span>Vysledek<span style="color: #339933;">&lt;/</span>gettext<span style="color: #339933;">&gt;&lt;/</span>strong<span style="color: #339933;">&gt;&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>     <span style="color: #339933;">&lt;</span>td <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;leftAlign&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>      <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> tabindex<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;tag:captch_tabindex /&gt;&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;captch&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;captch&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;direction:ltr&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">+</span>     <span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>    <span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>if<span style="color: #339933;">:</span>change_smtphost<span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;</span>tr style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;height: 1em;&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2010/12/captcha-for-horde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running yum-3.2.8 on CentOS 4.7 &#8211; part II.</title>
		<link>http://www.hrbac.cz/2009/07/running-yum-328-on-centos-47-part-ii/</link>
		<comments>http://www.hrbac.cz/2009/07/running-yum-328-on-centos-47-part-ii/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 13:30:39 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 4.x]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=41</guid>
		<description><![CDATA[Today I have looked again at yum 3.2.8 on Centos 4. I wanted everything to clean up, go back to unittests again. I have backported python-nose and started to clean up the source. Finally I had to make all yum tests python 2.3 compatible. Here is the result: [root@build-c4-i386 yum-3.2.8]# make test .............................................................................................................................................................. ---------------------------------------------------------------------- Ran [...]]]></description>
			<content:encoded><![CDATA[<p>Today I have looked again at yum 3.2.8 on Centos 4. I wanted everything to clean up, go back to unittests again. I have backported python-nose and started to clean up the source. Finally I had to make all yum tests python 2.3 compatible. Here is the result:</p>
<pre>[root@build-c4-i386 yum-3.2.8]# make test

..............................................................................................................................................................

----------------------------------------------------------------------

Ran 158 tests in 0.889s

OK</pre>
<p>As you can see, all tests have passed. And as usual packages are available within my testing repo.</p>
<p><a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/</a><br />
<a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2009/07/running-yum-328-on-centos-47-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running yum-3.2.8 on CentOS 4.7</title>
		<link>http://www.hrbac.cz/2009/03/running-yum-328-on-centos-47/</link>
		<comments>http://www.hrbac.cz/2009/03/running-yum-328-on-centos-47/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 22:20:15 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 4.x]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=25</guid>
		<description><![CDATA[Today I spent a few hours testing and backporting yum-3.2.8 from CentOS 5.2 to CentOS 4.7. It wasn&#8217;t so hard to backport. Most of the time I have spent on testing and searching. Code is patched to allow sets, which are supported in python 2.3 ) and that&#8217;s almost all. Final rpms are available for [...]]]></description>
			<content:encoded><![CDATA[<p>Today I spent a few hours testing and backporting yum-3.2.8 from CentOS 5.2 to CentOS 4.7. It wasn&#8217;t so hard to backport. Most of the time I have spent on testing and searching. Code is patched to allow sets, which are supported in python 2.3 <img src='http://www.hrbac.cz/blog/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ) and that&#8217;s almost all. Final rpms are available for testing here:</p>
<p><a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/</a><br />
<a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/</a></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[root@webmel4 ~]# yum update yum
Loading &quot;fastestmirror&quot; plugin
Loading &quot;installonlyn&quot; plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Reducing CentOS.Karan.Org-EL4 - Stable to included packages only
Finished
Resolving Dependencies
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Downloading header for yum to pack into transaction set.
yum-3.2.8-9.el4.hrb.2.1.1 100% |=========================|  29 kB    00:00
---&gt; Package yum.noarch 0:3.2.8-9.el4.hrb.2.1.1 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: python-iniparse for package: yum
--&gt; Processing Conflict: yum-metadata-parser conflicts yum &gt;= 3.0
--&gt; Processing Dependency: yum-fastestmirror for package: yum
--&gt; Processing Dependency: yum-metadata-parser &gt;= 1.1.0 for package: yum
--&gt; Processing Dependency: yum &amp;lt; 2.5 for package: yum-utils
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Downloading header for yum-utils to pack into transaction set.
yum-utils-1.1.10-9.el4.hr 100% |=========================| 9.7 kB    00:00
---&gt; Package yum-utils.noarch 0:1.1.10-9.el4.hrb.1 set to be updated
---&gt; Downloading header for yum-fastestmirror to pack into transaction set.
yum-fastestmirror-1.1.10- 100% |=========================| 7.0 kB    00:00
---&gt; Package yum-fastestmirror.noarch 0:1.1.10-9.el4.hrb.1 set to be updated
---&gt; Downloading header for python-iniparse to pack into transaction set.
python-iniparse-0.2.3-4.e 100% |=========================| 5.3 kB    00:00
---&gt; Package python-iniparse.noarch 0:0.2.3-4.el4.hrb set to be updated
---&gt; Downloading header for yum-metadata-parser to pack into transaction set.
yum-metadata-parser-1.1.2 100% |=========================| 4.3 kB    00:00
---&gt; Package yum-metadata-parser.i386 0:1.1.2-2.el4.hrb set to be updated
--&gt; Running transaction check
&nbsp;
Dependencies Resolved
&nbsp;
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 yum                     noarch     3.2.8-9.el4.hrb.2.1.1  hrb-testing       506 k
Installing for dependencies:
 python-iniparse         noarch     0.2.3-4.el4.hrb  hrb-testing        34 k
 yum-fastestmirror       noarch     1.1.10-9.el4.hrb.1  hrb-testing        10 k
Updating for dependencies:
 yum-metadata-parser     i386       1.1.2-2.el4.hrb  hrb-testing        24 k
 yum-utils               noarch     1.1.10-9.el4.hrb.1  hrb-testing        58 k
&nbsp;
Transaction Summary
=============================================================================
Install      2 Package(s)
Update       3 Package(s)
Remove       0 Package(s)
Total download size: 633 k
Is this ok [y/N]: y
Downloading Packages:
(1/5): yum-utils-1.1.10-9 100% |=========================|  58 kB    00:00
(2/5): yum-fastestmirror- 100% |=========================|  10 kB    00:00
(3/5): python-iniparse-0. 100% |=========================|  34 kB    00:00
(4/5): yum-3.2.8-9.el4.hr 100% |=========================| 506 kB    00:00
(5/5): yum-metadata-parse 100% |=========================|  24 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
&nbsp;
  Updating  : yum-metadata-parser          ######################### [1/9]
  Installing: python-iniparse              ######################### [2/9]
  Updating  : yum                                                    [3/9]warning: /etc/yum.conf created as /etc/yum.conf.rpmnew
  Updating  : yum                          ######################### [3/9]
  Updating  : yum-utils                    ######################### [4/9]
  Installing: yum-fastestmirror            ######################### [5/9]
  Cleanup   : yum-utils                    ######################### [6/9]
  Removing  : yum-plugin-fastestmirror     ######################### [7/9]
  Cleanup   : yum                          ######################### [8/9]
  Cleanup   : yum-metadata-parser          ######################### [9/9]
&nbsp;
Dependency Installed: python-iniparse.noarch 0:0.2.3-4.el4.hrb yum-fastestmirror.noarch 0:1.1.10-9.el4.hrb.1
Updated: yum.noarch 0:3.2.8-9.el4.hrb.2.1.1
Dependency Updated: yum-metadata-parser.i386 0:1.1.2-2.el4.hrb yum-utils.noarch 0:1.1.10-9.el4.hrb.1
Complete!</pre></div></div>

<p>Everything works fine. Now it&#8217;s time to publish and make some public QA. As you can see, it handles obsolete packages!</p>
<pre>[root@webmel4 ~]# yum install hrb-foo
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * kbs-CentOS-Extras: centos.karan.org
 * fasttrack: ftp.fi.muni.cz
 * hrb-kernel-stable: fs12.vsb.cz
 * update: ftp.fi.muni.cz
 * rpmforge: ftp-stud.fht-esslingen.de
 * hrb-testing: fs12.vsb.cz
 * base: ftp.fi.muni.cz
 * addons: ftp.fi.muni.cz
 * hrb-stable: fs12.vsb.cz
 * extras: ftp.fi.muni.cz
Reducing CentOS.Karan.Org-EL4 - Stable to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package hrb-bar.noarch 0:1-1.el4.hrb set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 hrb-bar                 noarch     1-1.el4.hrb      hrb-testing       2.1 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 2.1 k
Is this ok [y/N]: n
Exiting on user Command
Complete!</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2009/03/running-yum-328-on-centos-47/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Enable installonlyn on CentOS 4.x</title>
		<link>http://www.hrbac.cz/2008/02/enable-installonlyn-on-centos-4x/</link>
		<comments>http://www.hrbac.cz/2008/02/enable-installonlyn-on-centos-4x/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 20:10:52 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 4.x]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/blog/archives/5</guid>
		<description><![CDATA[Easy way to enable: yum -y install yum-utils; \ cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.conf /etc/yum/pluginconf.d/; \ cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.py /usr/lib/yum-plugins/]]></description>
			<content:encoded><![CDATA[<p>Easy way to enable:</p>
<pre>yum -y install yum-utils; \
cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.conf /etc/yum/pluginconf.d/; \
cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.py /usr/lib/yum-plugins/</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2008/02/enable-installonlyn-on-centos-4x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

