<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Default Password Scheme - Can It Be Set to MD5]]></title>
		<link>https://forum.iredmail.org/topic1301-default-password-scheme-can-it-be-set-to-md5.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic1301.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Default Password Scheme - Can It Be Set to MD5.]]></description>
		<lastBuildDate>Tue, 12 Jul 2011 15:06:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post10500.html#p10500</link>
			<description><![CDATA[<p>Got it to work..</p><p>I changed:<br />$rcmail_config[&#039;password_ldap_encodage&#039;] = &quot;ssha&quot;;<br />to<br />$rcmail_config[&#039;password_ldap_encodage&#039;] = &quot;clear&quot;;</p><p>in /usr/share/apache2/roundcubemail-0.3.1/plugins/password/config.inc.php</p><p>Is that the best way to do it?</p><p>Regards // Tomas</p>]]></description>
			<author><![CDATA[null@example.com (Spångberg)]]></author>
			<pubDate>Tue, 12 Jul 2011 15:06:17 +0000</pubDate>
			<guid>https://forum.iredmail.org/post10500.html#p10500</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post10499.html#p10499</link>
			<description><![CDATA[<p>Hm.. next problem..<br />Now I can&#039;t change passwords from Round Cube, is there a way to make Round Cube to use plain text as well?</p><p>Edit: I can change it but it changes back to SSHA</p><p>// Tomas</p>]]></description>
			<author><![CDATA[null@example.com (Spångberg)]]></author>
			<pubDate>Tue, 12 Jul 2011 13:27:36 +0000</pubDate>
			<guid>https://forum.iredmail.org/post10499.html#p10499</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post10493.html#p10493</link>
			<description><![CDATA[<p>Thanks!<br />Now I just need a way to fetch the plain text password from the console (with ldapsearch?) but maybe that&#039;s another topic..</p><p>// Tomas</p>]]></description>
			<author><![CDATA[null@example.com (Spångberg)]]></author>
			<pubDate>Tue, 12 Jul 2011 09:02:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post10493.html#p10493</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post10488.html#p10488</link>
			<description><![CDATA[<div class="quotebox"><cite>Spångberg wrote:</cite><blockquote><p>I added default_pw_scheme = PLAIN to settings.ini and restarted apache2 but passwords for new users are still SSHA.</p></blockquote></div><p>&#039;default_pw_scheme&#039; in settings.ini is deprecated, update libs/settings.py instead:<br /></p><div class="codebox"><pre><code># Default password scheme: SSHA, SHA, PLAIN.
# Must be a string. SSHA is recommended.
# To store passwords in plain text, please change below setting to &#039;PLAIN&#039;,
# no addition changes are required in iredmail, dovecot will detect password
# scheme automatically.
LDAP_DEFAULT_PASSWD_SCHEME = &#039;SSHA&#039;</code></pre></div><p>If you&#039;re using iRedAdmin-Pro-MySQL, update below setting in libs/settings.py instead:<br /></p><div class="codebox"><pre><code># Default password scheme: MD5, PLAIN.
#
# Passwords of new accounts (admin, user) will be crypted by specified scheme.
# - MD5: MD5 based salted password hash. e.g. &#039;$1$ozdpg0V0$0fb643pVsPtHVPX8mCZYW/&#039;.
# - PLAIN: Plain text.
#
# Reference:
#   - For dovecot-1.1.x, 1.2.x: http://wiki.dovecot.org/Authentication/PasswordSchemes
#   - For dovecot-2.x: http://wiki2.dovecot.org/Authentication/PasswordSchemes
SQL_DEFAULT_PASSWD_SCHEME = &#039;MD5

# Prefix &#039;{PLAIN}&#039; in plain passwords: True, False.
#
# Required by dovecot if you want to store passwords as plain text.
# Password scheme can be overridden for each password by prefixing it with
# {SCHEME}, for example: {PLAIN}my_password.
# It&#039;s recommended to prefix it if you have some passwords stored in MD5 or
# other scheme, so that dovecot can detect scheme for each passwords.
SQL_PASSWD_PREFIX_SCHEME = True</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 12 Jul 2011 07:33:12 +0000</pubDate>
			<guid>https://forum.iredmail.org/post10488.html#p10488</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post10483.html#p10483</link>
			<description><![CDATA[<p>you have to change your password after that change as the old hash is stored</p><p>to be shure restart openldap</p>]]></description>
			<author><![CDATA[null@example.com (mike.f)]]></author>
			<pubDate>Tue, 12 Jul 2011 07:16:53 +0000</pubDate>
			<guid>https://forum.iredmail.org/post10483.html#p10483</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post10482.html#p10482</link>
			<description><![CDATA[<p>Hi</p><p>Did you ever find a solution to this? I have the same problem but using iRedAdmin-Pro-LDAP-1.6.1.<br />I added default_pw_scheme = PLAIN to settings.ini and restarted apache2 but passwords for new users are still SSHA.<br />Suggestions?</p><p>Cheers!<br />// Tomas</p>]]></description>
			<author><![CDATA[null@example.com (Spångberg)]]></author>
			<pubDate>Tue, 12 Jul 2011 07:03:42 +0000</pubDate>
			<guid>https://forum.iredmail.org/post10482.html#p10482</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5818.html#p5818</link>
			<description><![CDATA[<p>Function &quot;generatePasswd&quot; is defined in libs/ldaplib/ldaputils.py, invoked in libs/ldaplib/user.py and admin.py.</p><p>iRedAdmin will read &quot;default_pw_scheme&quot; from settings.ini, if not defined, it will use &#039;SSHA&#039;. So the source code is ok. Not sure why it doesn&#039;t work for you. <img src="https://forum.iredmail.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 11 Oct 2010 04:30:30 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5818.html#p5818</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5817.html#p5817</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>grep -ir &#039;generatepasswd&#039; *</p></blockquote></div><br /><p>Aha!!</p><p>libs/ldaplib/ldaputils.py:def generatePasswd(password, pwscheme=&#039;SSHA&#039;):<br />libs/ldaplib/user.py:&nbsp; &nbsp; &nbsp;self.passwd = ldaputils.generatePasswd(result[1], pwscheme=cfg.general.get(&#039;default_pw_scheme&#039;, &#039;SSHA&#039;))<br />libs/ldaplib/user.py:&nbsp; &nbsp; &nbsp;self.passwd = ldaputils.generatePasswd(result[1], pwscheme=cfg.general.get(&#039;default_pw_scheme&#039;, &#039;SSHA&#039;))<br />libs/ldaplib/admin.py:&nbsp; self.passwd = ldaputils.generatePasswd(result[1], pwscheme=cfg.general.get(&#039;default_pw_scheme&#039;, &#039;SSHA&#039;))</p>]]></description>
			<author><![CDATA[null@example.com (iredmailnerd)]]></author>
			<pubDate>Mon, 11 Oct 2010 03:56:00 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5817.html#p5817</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5813.html#p5813</link>
			<description><![CDATA[<p>That&#039;s strange. Restarting apache is enough.<br />I tested it with v1.2.0 too, but works for me here.</p><p>Can you please try below commands and paste output here:<br /></p><div class="codebox"><pre><code># cd /path/to/iRedAdmin-Pro-1.2.0/
# grep -ir &#039;generatepasswd&#039; *</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 11 Oct 2010 03:06:42 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5813.html#p5813</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5811.html#p5811</link>
			<description><![CDATA[<p>I have the following setting:</p><p># Default password scheme: SSHA, PLAIN.<br /># SSHA is recommended.<br />default_pw_scheme = SHA</p><p>When I save the test user&#039;s password, I see the following output in the LDIF info displayed the URL:</p><p>....<br />uid: test3 <br />userPassword: <span style="color:#FF0000">{SSHA}</span>7/nxSBIiyutGm76YCvaaa2td4Y04ix+EBYFS+A==</p><p>Is there anything I need to do other than restart Apache?</p>]]></description>
			<author><![CDATA[null@example.com (iredmailnerd)]]></author>
			<pubDate>Mon, 11 Oct 2010 02:03:13 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5811.html#p5811</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5809.html#p5809</link>
			<description><![CDATA[<p>I tested SSHA, SHA, PLAIN with setting in settings.ini like below, all are ok for me.<br /></p><div class="codebox"><pre><code>[general]
...
default_pw_scheme = SHA</code></pre></div><p>After changed password, you can verify it by accessing this URL:<br /><a href="http://your_server.com/iredadmin/export/ldif/user/username@domain.ltd">http://your_server.com/iredadmin/export … domain.ltd</a></p><p>It will show raw LDIF data of user &quot;username@domain.ltd&quot;, you can verify the value of attribute &quot;userPassword&quot;. If it&#039;s SHA, it will be something like this:<br /></p><div class="quotebox"><blockquote><p>userPassword: <span style="color:red">{SHA}</span>P0XUy2zIiczjpwUU8c/CWFrEWj8=</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 11 Oct 2010 01:54:15 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5809.html#p5809</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5807.html#p5807</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>iredmailnerd wrote:</cite><blockquote><p>So, restarting Apache should implement the change?  If so, I tried that and it didn&#039;t work.</p></blockquote></div><p>Which version of iRedAdmin-Pro are you using? I need this version number to confirm &amp; fix it.</p><p>Thanks very much for your feedback. <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><br /><p>You&#039;re welcome.&nbsp; <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; I&#039;m using version 1.2.0.</p>]]></description>
			<author><![CDATA[null@example.com (iredmailnerd)]]></author>
			<pubDate>Mon, 11 Oct 2010 01:32:34 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5807.html#p5807</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5806.html#p5806</link>
			<description><![CDATA[<div class="quotebox"><cite>iredmailnerd wrote:</cite><blockquote><p>So, restarting Apache should implement the change?  If so, I tried that and it didn&#039;t work.</p></blockquote></div><p>Which version of iRedAdmin-Pro are you using? I need this version number to confirm &amp; fix it.</p><p>Thanks very much for your feedback. <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 11 Oct 2010 01:29:02 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5806.html#p5806</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5804.html#p5804</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Don&#039;t use SHA. SSHA is better than SHA (SSHA = SHA + salt)</p></blockquote></div><p>Thanks.&nbsp; I know it&#039;s better.&nbsp; I&#039;m just testing something with one user account, temporarily.</p><p>So, restarting Apache should implement the change?&nbsp; If so, I tried that and it didn&#039;t work.</p>]]></description>
			<author><![CDATA[null@example.com (iredmailnerd)]]></author>
			<pubDate>Mon, 11 Oct 2010 00:57:30 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5804.html#p5804</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default Password Scheme - Can It Be Set to MD5]]></title>
			<link>https://forum.iredmail.org/post5803.html#p5803</link>
			<description><![CDATA[<p>Don&#039;t use SHA. SSHA is better than SHA (SSHA = SHA + salt)</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 11 Oct 2010 00:55:12 +0000</pubDate>
			<guid>https://forum.iredmail.org/post5803.html#p5803</guid>
		</item>
	</channel>
</rss>
