Hi, I am trying to call a python flask http API to reset password in roundcube settings/password by supplying the current password and entering new password. Configuration settings that I made:
In /etc/roundcube/plugins/password/config.inc.php changes made:
$config['password_httpapi_url'] = 'http://host:5000/change_user_password'; // required
$config['password_httpapi_method'] = 'POST'; // default
$config['password_httpapi_var_user'] = 'username'; // optional
$config['password_httpapi_var_curpass'] = 'curpass'; // optional
$config['password_httpapi_var_newpass'] = 'newpass'; // optional
2. root@cloudv2:/etc/roundcube/plugins/password# in config.inc.php set:
// Default password hashing/crypting algorithm.
// Possible options: des-crypt, ext-des-crypt, md5-crypt, blowfish-crypt,
// sha256-crypt, sha512-crypt, md5, sha, smd5, ssha, samba, ad, dovecot, clear.
// For details see password::hash_password() method.
$config['password_algorithm'] = 'sha';
// Password prefix (e.g. {CRYPT}, {SHA}) for passwords generated
// using password_algorithm above. Default: empty.
$config['password_algorithm_prefix'] = '{SSHA}';
// Roundcube DB settings are used.
$config['password_db_dsn'] = '$pgsql://$dbuser:$dbpassword@$dbserver$5432/$dbname';
In /etc/roundcube/plugins/password# cat config.inc.php
<?php
// Password Plugin options
// -----------------------
// A driver to use for password change. Default: "sql".
// See README file for list of supported driver names.
$config['password_driver'] = 'httpapi';
restarted apache.....is not calling the api call
how to go about ..pl. guide
The api never gets called. I have tried calling using curl from the server where roundcube is configured. It works but NOT from the mailbox settings/password change ui.