<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Configure password change for roundcubemail-0.3.1 [SOLVED]]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic942.xml" />
	<updated>2010-05-31T12:24:26Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic942-configure-password-change-for-roundcubemail031-solved.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Configure password change for roundcubemail-0.3.1 [SOLVED]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post4099.html#p4099" />
			<content type="html"><![CDATA[<p>Same.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-05-31T12:24:26Z</updated>
			<id>http://www.iredmail.org/forum/post4099.html#p4099</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Configure password change for roundcubemail-0.3.1 [SOLVED]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post4098.html#p4098" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>I added &#039;LIMIT 1&#039; in iRedMail moment ago, thanks for your remind.<br />And we use this in plugin:<br /></p><div class="quotebox"><blockquote><p>$rcmail_config[&#039;password_query&#039;] = &#039;UPDATE <span style="color: red">vmail.</span>mailbox SET password=%c,modified=NOW() WHERE username=%u LIMIT 1&#039;;</p></blockquote></div></blockquote></div><p>what is the different of using...... </p><div class="quotebox"><blockquote><p>UPDATE <span style="color: red">vmail.</span>mailbox SET password=%c,modified=NOW() WHERE username=%u LIMIT 1&#039;;</p></blockquote></div><p>???</p>]]></content>
			<author>
				<name><![CDATA[hata_ph]]></name>
				<uri>http://www.iredmail.org/forum/user1064.html</uri>
			</author>
			<updated>2010-05-31T11:07:19Z</updated>
			<id>http://www.iredmail.org/forum/post4098.html#p4098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Configure password change for roundcubemail-0.3.1 [SOLVED]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post4097.html#p4097" />
			<content type="html"><![CDATA[<p>I added &#039;LIMIT 1&#039; in iRedMail moment ago, thanks for your remind.<br />And we use this in plugin:<br /></p><div class="quotebox"><blockquote><p>$rcmail_config[&#039;password_query&#039;] = &#039;UPDATE <span style="color: red">vmail.</span>mailbox SET password=%c,modified=NOW() WHERE username=%u LIMIT 1&#039;;</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-05-31T07:49:00Z</updated>
			<id>http://www.iredmail.org/forum/post4097.html#p4097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Configure password change for roundcubemail-0.3.1 [SOLVED]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post4096.html#p4096" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>I guess you&#039;re using OpenLDAP backend, right?<br />Reference: <a href="http://iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.5.1-0.6.0#Roundcube_Webmail">http://iredmail.org/wiki/index.php?titl … be_Webmail</a></p></blockquote></div><p>I am using MySQL as backend and I have found out the way...<br />just update below setting to plugins/password/config.inc.php</p><div class="quotebox"><blockquote><p>// SQL Driver options<br />// ------------------<br />// PEAR database DSN for performing the query. By default<br />// Roundcube DB settings are used.<br />//$rcmail_config[&#039;password_db_dsn&#039;] = &#039;&#039;;<br />$rcmail_config[&#039;password_db_dsn&#039;] = <strong>&#039;mysqli://roundcube:xxx@localhost/vmail&#039;;</strong></p><p>// The SQL query used to change the password.<br />// The query can contain the following macros that will be expanded as follows:<br />//&nbsp; &nbsp; &nbsp; %p is replaced with the plaintext new password<br />//&nbsp; &nbsp; &nbsp; %c is replaced with the crypt version of the new password, MD5 if available<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;otherwise DES.<br />//&nbsp; &nbsp; &nbsp; %o is replaced with the password before the change<br />//&nbsp; &nbsp; &nbsp; %n is replaced with the hashed version of the new password<br />//&nbsp; &nbsp; &nbsp; %q is replaced with the hashed password before the change<br />//&nbsp; &nbsp; &nbsp; %h is replaced with the imap host (from the session info)<br />//&nbsp; &nbsp; &nbsp; %u is replaced with the username (from the session info)<br />//&nbsp; &nbsp; &nbsp; %l is replaced with the local part of the username<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(in case the username is an email address)<br />//&nbsp; &nbsp; &nbsp; %d is replaced with the domain part of the username<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(in case the username is an email address)<br />// Escaping of macros is handled by this module.<br />// Default: &quot;SELECT update_passwd(%c, %u)&quot;<br />//$rcmail_config[&#039;password_query&#039;] = &#039;SELECT update_passwd(%c, %u)&#039;;<br />$rcmail_config[&#039;password_query&#039;] = <strong>&#039;UPDATE mailbox SET password=%c,modified=NOW() WHERE username=%u LIMIT 1&#039;;</strong></p></blockquote></div><p><a href="http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/4944-password-plugins.html">http://www.roundcubeforum.net/7-third-p … ugins.html</a></p><br /><p>remember to activate the plugin in config/main.inc.php</p><div class="quotebox"><blockquote><p>$rcmail_config[&#039;plugins&#039;] = array(&#039;additional_message_headers&#039;, &#039;archive&#039;);</p></blockquote></div><p><a href="http://trac.roundcube.net/wiki/Doc_Plugins">http://trac.roundcube.net/wiki/Doc_Plugins</a></p>]]></content>
			<author>
				<name><![CDATA[hata_ph]]></name>
				<uri>http://www.iredmail.org/forum/user1064.html</uri>
			</author>
			<updated>2010-05-31T07:40:02Z</updated>
			<id>http://www.iredmail.org/forum/post4096.html#p4096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Configure password change for roundcubemail-0.3.1 [SOLVED]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post4095.html#p4095" />
			<content type="html"><![CDATA[<p>I guess you&#039;re using OpenLDAP backend, right?<br />Reference: <a href="http://iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.5.1-0.6.0#Roundcube_Webmail">http://iredmail.org/wiki/index.php?titl … be_Webmail</a></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-05-31T05:15:11Z</updated>
			<id>http://www.iredmail.org/forum/post4095.html#p4095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Configure password change for roundcubemail-0.3.1 [SOLVED]]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post4094.html#p4094" />
			<content type="html"><![CDATA[<p>I have just upgraded roundcubemail-0.3.1 on my iRedOS-5 and all working fine except for the plugins especially password change....do anyone know how to configure it for iRedMail?</p>]]></content>
			<author>
				<name><![CDATA[hata_ph]]></name>
				<uri>http://www.iredmail.org/forum/user1064.html</uri>
			</author>
			<updated>2010-05-31T04:39:00Z</updated>
			<id>http://www.iredmail.org/forum/post4094.html#p4094</id>
		</entry>
</feed>
