[horde] Horde + vpopmail/MySQL + Passwd Not working
Suhag Desai
spdesai at gnvfc.net
Sat May 5 04:29:52 UTC 2007
Dear All,
My HORDE/IMP Working fine except passwd.
Wheneve user try to change password the below error generated
"Failure in changing password on Example Vpopmail Server: Incorrect Password"
I have searched lots of in archive and feel that as per general opinion its due to encrption method mismatch between mysql and php. I have used all the encryption method in backend.php and lib/Driver/vpopmail.php but not solved.
vpopmail.php
$defaults = Horde::getDriverConfig('', 'sql');
$this->_params['hostspec'] = isset($params['hostspec']) ? $params['hostspec'] : '192.168.10.71';
$this->_params['protocol'] = isset($params['protocol']) ? $params['protocol'] : 'tcp';
$this->_params['username'] = isset($params['username']) ? $params['username'] : 'root';
$this->_params['password'] = isset($params['password']) ? $params['password'] : 'suhag1';
$this->_params['database'] = isset($params['database']) ? $params['database'] : 'vpopmail';
$this->_params['port'] = isset($params['port']) ? $params['port'] : '3306';
/* Defaults to match Auth::sql default. */
$this->_params['table'] = isset($params['table']) ? $params['table'] : 'vpopmail';
$this->_params['encryption'] = isset($params['encryption']) ? $params['encryption'] : 'crypt';
$this->_params['name'] = isset($params['name']) ? $params['name'] : 'pw_name';
$this->_params['domain'] = isset($params['domain']) ? $params['domain'] : 'pw_domain';
$this->_params['passwd'] = isset($params['passwd']) ? $params['passwd'] : 'pw_passwd';
$this->_params['clear_passwd'] = isset($params['clear_passwd']) ? $params['clear_passwd'] : 'pw_clear_passwd';
$this->_params['use_clear_passwd'] = isset($params['use_clear_passwd']) ? $params['use_clear_passwd'] : true;
$this->_params['show_encryption'] = isset($params['show_encryption']) ? $params['show_encryption'] : true;
BACKEND.PHP
$backends['vpopmail'] = array (
'name' => 'Example Vpopmail Server',
'preferred' => '',
'password policy' => array(
'minLength' => 3,
'maxLength' => 8,
'maxSpace' => 0,
'minUpper' => 0,
'minLower' => 0,
'minNumeric' => 0
),
'driver' => 'vpopmail',
'params' => array(
'phptype' => 'mysql',
'hostspec' => '192.168.10.71',
'username' => 'root',
'password' => 'suhag1',
'encryption' => 'crypt',
'database' => 'vpopmail',
'table' => 'vpopmail',
'port' => '3306',
'name' => 'pw_name',
'domain' => 'pw_domain',
'passwd' => 'pw_passwd',
'clear_passwd' => 'pw_clear_passwd',
'use_clear_passwd' => true,
'show_encryption' => true,
'protocol' => 'tcp'
)
);
Thanks
suhag
More information about the horde
mailing list