<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Idear: More than one encryptions for mysql]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic799.xml" />
	<updated>2010-04-07T13:48:45Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic799-idear-more-than-one-encryptions-for-mysql.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3386.html#p3386" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcaffee]]></name>
				<uri>http://www.iredmail.org/forum/user1294.html</uri>
			</author>
			<updated>2010-04-07T13:48:45Z</updated>
			<id>http://www.iredmail.org/forum/post3386.html#p3386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3384.html#p3384" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-04-07T10:50:10Z</updated>
			<id>http://www.iredmail.org/forum/post3384.html#p3384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3383.html#p3383" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcaffee]]></name>
				<uri>http://www.iredmail.org/forum/user1294.html</uri>
			</author>
			<updated>2010-04-07T10:28:48Z</updated>
			<id>http://www.iredmail.org/forum/post3383.html#p3383</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3381.html#p3381" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-04-07T09:19:01Z</updated>
			<id>http://www.iredmail.org/forum/post3381.html#p3381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3380.html#p3380" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcaffee]]></name>
				<uri>http://www.iredmail.org/forum/user1294.html</uri>
			</author>
			<updated>2010-04-07T08:46:29Z</updated>
			<id>http://www.iredmail.org/forum/post3380.html#p3380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3379.html#p3379" />
			<content type="html"><![CDATA[<p>Yes, i meant you have to make postfixadmin support this.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-04-07T08:22:31Z</updated>
			<id>http://www.iredmail.org/forum/post3379.html#p3379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3378.html#p3378" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcaffee]]></name>
				<uri>http://www.iredmail.org/forum/user1294.html</uri>
			</author>
			<updated>2010-04-07T08:13:09Z</updated>
			<id>http://www.iredmail.org/forum/post3378.html#p3378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3377.html#p3377" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcaffee]]></name>
				<uri>http://www.iredmail.org/forum/user1294.html</uri>
			</author>
			<updated>2010-04-07T08:07:28Z</updated>
			<id>http://www.iredmail.org/forum/post3377.html#p3377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3376.html#p3376" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-04-07T08:03:27Z</updated>
			<id>http://www.iredmail.org/forum/post3376.html#p3376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Idear: More than one encryptions for mysql]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post3375.html#p3375" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcaffee]]></name>
				<uri>http://www.iredmail.org/forum/user1294.html</uri>
			</author>
			<updated>2010-04-07T07:51:18Z</updated>
			<id>http://www.iredmail.org/forum/post3375.html#p3375</id>
		</entry>
</feed>
