<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Idear: More than one encryptions for mysql]]></title>
		<link>http://www.iredmail.org/forum/topic799-idear-more-than-one-encryptions-for-mysql.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic799.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Idear: More than one encryptions for mysql.]]></description>
		<lastBuildDate>Wed, 07 Apr 2010 13:48:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3386.html#p3386</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>mcaffee wrote:</cite><blockquote><p>The main way should be the push into ProstfixAdmin repository, i can maintrain this the next years, this would not be a problem.</p></blockquote></div><p>I guess PostfixAdmin guys won&#039;t accept this patch, because all exist users should change their SQL structure, it&#039;s a big change.<br />The best way is improving iRedMail and patching postfixadmin, maintaining this patch yourself.</p></blockquote></div><p>But, if some would use the patch can use this and others not, i will contact the guys, and try to find a way. If i have some informations, i will post this.</p>]]></description>
			<author><![CDATA[null@example.com (mcaffee)]]></author>
			<pubDate>Wed, 07 Apr 2010 13:48:45 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3386.html#p3386</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3384.html#p3384</link>
			<description><![CDATA[<div class="quotebox"><cite>mcaffee wrote:</cite><blockquote><p>The main way should be the push into ProstfixAdmin repository, i can maintrain this the next years, this would not be a problem.</p></blockquote></div><p>I guess PostfixAdmin guys won&#039;t accept this patch, because all exist users should change their SQL structure, it&#039;s a big change.<br />The best way is improving iRedMail and patching postfixadmin, maintaining this patch yourself.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 07 Apr 2010 10:50:10 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3384.html#p3384</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3383.html#p3383</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>ZhangHuangbin]iRedAdmin-Pro for MySQL edition is not finished yet, but i will consider adding this feature in it, it&#039;s really useful.</p></blockquote></div><p>That sounds very good, if i can help you, please inform me.</p><div class="quotebox"><blockquote><p>My concern:</p><p>Patch PostfixAdmin should be OK, but we should maintain this patch or push it into PostfixAdmin official respository. If you can&#039;t maintain it in a long time, iRedMail users will go crazy because they don&#039;t have a FREE web-based admin panel after we change dovecot/postfix settings.</p></blockquote></div><p>The main way should be the push into ProstfixAdmin repository, i can maintrain this the next years, this would not be a problem.</p><div class="quotebox"><blockquote><p>This is why i didn&#039;t change default SQL structure in iRedMail till now, it&#039;s based on PostfixAdmin. The default SQL structure is not so good (just IMO), and i will try to modify/improve it after iRedAdmin-Pro for MySQL edition is finished.</p></blockquote></div><p>OK, i will push this up.</p>]]></description>
			<author><![CDATA[null@example.com (mcaffee)]]></author>
			<pubDate>Wed, 07 Apr 2010 10:28:48 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3383.html#p3383</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3381.html#p3381</link>
			<description><![CDATA[<p>iRedAdmin-Pro for MySQL edition is not finished yet, but i will consider adding this feature in it, it&#039;s really useful.</p><p>My concern:</p><p>Patch PostfixAdmin should be OK, but we should maintain this patch or push it into PostfixAdmin official respository. If you can&#039;t maintain it in a long time, iRedMail users will go crazy because they don&#039;t have a FREE web-based admin panel after we change dovecot/postfix settings.</p><p>This is why i didn&#039;t change default SQL structure in iRedMail till now, it&#039;s based on PostfixAdmin. The default SQL structure is not so good (just IMO), and i will try to modify/improve it after iRedAdmin-Pro for MySQL edition is finished.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 07 Apr 2010 09:19:01 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3381.html#p3381</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3380.html#p3380</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Yes, i meant you have to make postfixadmin support this.</p></blockquote></div><p>We can develope a patch for this and implement it in iredadmin.</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (mcaffee)]]></author>
			<pubDate>Wed, 07 Apr 2010 08:46:29 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3380.html#p3380</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3379.html#p3379</link>
			<description><![CDATA[<p>Yes, i meant you have to make postfixadmin support this.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 07 Apr 2010 08:22:31 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3379.html#p3379</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3378.html#p3378</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Storing multiple encryption in SQL is possible, the point is how other components can use/manage them, such as dovecot, postfix and postfixadmin (or other web-based admin panel).</p></blockquote></div><p>View phpmyadmin:</p><p>email &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password<br />dddl@xyz.cc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {CRYPT}152c3Bq1WoBTY<br />ddw3na@dd.cc&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {PLAIN-MD5}f3539c609de16d99900ebf7fb3b17557<br />dasdf3@dee33.dd&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {MD5}$1$ZZFI7q8R$XTQKdl4u4elwAgH.yH4Tc.</p><p>Dovecot:<br />password_query = SELECT email as user, password FROM view_users WHERE email=&#039;%u&#039;;</p><p>Postfix:<br />virtual-mailbox.cf<br />query = SELECT email FROM view_users WHERE email=&#039;%s&#039;;</p><p>This works very well on a old system.</p>]]></description>
			<author><![CDATA[null@example.com (mcaffee)]]></author>
			<pubDate>Wed, 07 Apr 2010 08:13:09 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3378.html#p3378</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3377.html#p3377</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Storing multiple encryption in SQL is possible, the point is how other components can use/manage them, such as dovecot, postfix and postfixadmin (or other web-based admin panel).</p></blockquote></div><p>With the view, every can use this, i have test it, is no problem, but it should be implementet in the iredadmin and postfixadmin.</p>]]></description>
			<author><![CDATA[null@example.com (mcaffee)]]></author>
			<pubDate>Wed, 07 Apr 2010 08:07:28 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3377.html#p3377</guid>
		</item>
		<item>
			<title><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3376.html#p3376</link>
			<description><![CDATA[<p>Storing multiple encryption in SQL is possible, the point is how other components can use/manage them, such as dovecot, postfix and postfixadmin (or other web-based admin panel).</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 07 Apr 2010 08:03:27 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3376.html#p3376</guid>
		</item>
		<item>
			<title><![CDATA[Idear: More than one encryptions for mysql]]></title>
			<link>http://www.iredmail.org/forum/post3375.html#p3375</link>
			<description><![CDATA[<p>I have a idear for more than one encryptions from mysql.</p><p>This should be an example, and it can be very cool for some imports like me, but i use ldap not mysql.</p><p>-- encryption table --</p><p>CREATE TABLE IF NOT EXISTS `encryption` (<br />&nbsp; `id` int(11) NOT NULL auto_increment,<br />&nbsp; `name` varchar(20) NOT NULL,<br />&nbsp; `value` varchar(20) NOT NULL,<br />&nbsp; PRIMARY KEY&nbsp; (`id`)<br />) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;</p><p>INSERT INTO `encryption` (`id`, `name`, `value`) VALUES<br />(1, &#039;Default (PLAIN MD5)&#039;, &#039;{PLAIN-MD5}&#039;),<br />(2, &#039;MYSQL Encrypt&#039;, &#039;{CRYPT}&#039;),<br />(3, &#039;Shadow Passwort&#039;, &#039;{MD5}&#039;);</p><p>-- view table --</p><p>SET SQL_MODE=&quot;NO_AUTO_VALUE_ON_ZERO&quot;;</p><p>CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_users` AS select concat(`users`.`user`,_latin1&#039;@&#039;,`domains`.`name`) AS `email`,concat(`encryption`.`value`,`users`.`password`) AS `password` from ((`users` left join `domains` on((`users`.`domain_id` = `domains`.`id`))) left join `encryption` on((`users`.`encryption_id` = `encryption`.`id`)));</p>]]></description>
			<author><![CDATA[null@example.com (mcaffee)]]></author>
			<pubDate>Wed, 07 Apr 2010 07:51:18 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post3375.html#p3375</guid>
		</item>
	</channel>
</rss>
