<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Christian,</tt><br>
<br>
On 11/21/2012 10:15 PM, Christian Cambier wrote:
<blockquote
cite="mid:159A725B01BDB746ADDB7F32CC64AC876DBE5F@mail.voxtron.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="MS Exchange Server version
6.5.7638.1">
<title>Password in plaintext vs encrypted</title>
<!-- Converted from text/plain format -->
<p><font size="2">Hello.<br>
<br>
When I add a user using the OpenSIPS control panel it stores
the password in plaintext in the 'password' column<br>
<br>
When I add a user using the /usr/sbin/opensipsctl utility<br>
e.g. /usr/sbin/opensipsctl add 1009 99<br>
it stores the password encrypted in the 'ha1' column<br>
</font></p>
</blockquote>
opensipsctl adds the plain text passwd only if the
STORE_PLAINTEXT_PW variable is 1 (see opensipsctlrc file)<br>
<blockquote
cite="mid:159A725B01BDB746ADDB7F32CC64AC876DBE5F@mail.voxtron.com"
type="cite">
<p><font size="2">
<br>
never mind whether <br>
store_plaintext_pw is set to 0 or 1<br>
in /etc/opensips/opensipsctlrc<br>
</font></p>
</blockquote>
Are you sure the proper RC file is used or your setting is not
override by another RC file ?<br>
<blockquote
cite="mid:159A725B01BDB746ADDB7F32CC64AC876DBE5F@mail.voxtron.com"
type="cite">
<p><font size="2">
<br>
How can I have passwords stored in hashed form with the
Control Panel as well?<br>
</font></p>
</blockquote>
In config/tools/users/user_management/local.inc.php, see the
$config->passwd_mode switch - you need to change it to 1.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
</body>
</html>