Current time: 05-01-2024, 07:59 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Password Changer Roundcube 0.3 Stable
Author Message
tango Offline
Member
***

Posts: 461
Joined: Jun 2007
Reputation: 0
Post: #41
RE: [HowTo] Password Changer Roundcube 0.3 Stable
Thanks,

It was like you said the error that I, the
Code:
$ rcmail_config [ 'plugins'] = array ( 'ispcp_pw_changer')
I entered even though I should edit it, according to the instructions I have understood it
12-28-2009 01:21 AM
Find all posts by this user Quote this message in a reply
ronniee Offline


Posts: 2
Joined: Jan 2010
Reputation: 0
Post: #42
RE: [HowTo] Password Changer Roundcube 0.3 Stable
(12-28-2009 01:21 AM)tango Wrote:  Thanks,

It was like you said the error that I, the
Code:
$ rcmail_config [ 'plugins'] = array ( 'ispcp_pw_changer')
I entered even though I should edit it, according to the instructions I have understood it

Hi,

I use Roundcube 0.3.1 and I don't know how to activate the "password" plugin.

in the /roundcumebail/plugins/password are the files:
-rw-r--r-- 1 root root 6853 2009-10-09 19:04 config.inc.php
drwxr-xr-x 2 root root 4096 2009-10-31 15:20 drivers
drwxr-xr-x 2 root root 4096 2009-10-31 15:20 localization
-rw-r--r-- 1 root root 1809 2009-09-19 11:01 password.js
-rw-r--r-- 1 root root 8492 2009-10-06 13:00 password.php
-rw-r--r-- 1 root root 7014 2009-10-09 19:04 README

in the main.inc.php i have:
// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array();

I need to enter every plugin separatly?

thanks
01-04-2010 12:49 AM
Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #43
RE: [HowTo] Password Changer Roundcube 0.3 Stable
Hi ronniee...
At first you have to use the ispcp_pw_changer... Not everthing else!!!.
Look on the first site of this thread.

Then you have to use the folder "ispcp_pw_changer" not "password".

And yes... You activate the plugins separatly like this
Code:
$rcmail_config['plugins'] = array ('ispcp_pw_changer', 'plugin_2', 'plugin_3')
(This post was last modified: 01-04-2010 01:37 AM by TheCry.)
01-04-2010 01:35 AM
Find all posts by this user Quote this message in a reply
ronniee Offline


Posts: 2
Joined: Jan 2010
Reputation: 0
Post: #44
RE: [HowTo] Password Changer Roundcube 0.3 Stable
thanks for your quick answer

now the plugin is activated, but he can't save the password

something wrong with the database connection?
but he knows the current password, when i put something else, the error message is wrong current password

I found in the log:
Code:
[03-Jan-2010 20:12:33 +0200]: DB Error: MDB2 Error: not found Query: _doQuery: [Error message: Could not execute statement] [Last executed query: SELECT update_passwd('$1$aaaaaaaaaaaaaa', 'aaaa@xxx.xx')] [Native code: 1305] [Native message: FUNCTION roundcubemail.update_passwd does not exist]  in /var/www/neo/roundcubemail/program/include/rcube_mdb2.php on line 627 (POST /roundcubemail/?_task=settings&_action=plugin.password-save?_task=&_action=)
i use plugin "password" from the 0.3.1 version Roundcube, because I don't have ISPCP, only Postfix+Postfixadmin+Dovecot+Roundcube.

thanks
(This post was last modified: 01-04-2010 02:56 AM by ronniee.)
01-04-2010 02:54 AM
Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #45
RE: [HowTo] Password Changer Roundcube 0.3 Stable
(01-04-2010 02:54 AM)ronniee Wrote:  because I don't have ISPCP
Then you have to contact the right support.
I can't help you if you aren't using ispCP. Die password changer is only for ispCP omega.
(This post was last modified: 01-04-2010 04:05 AM by TheCry.)
01-04-2010 03:23 AM
Find all posts by this user Quote this message in a reply
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #46
RE: [HowTo] Password Changer Roundcube 0.3 Stable
or better change to ispCP Big Grin
01-04-2010 03:24 AM
Find all posts by this user Quote this message in a reply
remontti Offline


Posts: 1
Joined: Mar 2010
Reputation: 0
Post: #47
RE: [HowTo] Password Changer Roundcube 0.3 Stable
pt_BR Apanhei um monte no ISP 1.0.4, consegui com q funcionasse da seguinte formar, alterando o sql.php em /var/www/ispcp/gui/tools/roundcube/plugins/ispcp_pw_changer/drivers para :

En Tongue
I got a lot in the ISP 1.0.4, get with q works like this, changing the sql.php in / var / www / ispCP / gui / tools / roundcube / plugins / ispcp_pw_changer / drivers for:




Code:
<?php

/**
* SQL Password Driver
*
* Driver for passwords stored in ispCP database
*
* @version 1.0
* @author Sascha alias TheCry
*
*/

function password_save($passwd)
{
    $rcmail = rcmail::get_instance();
    $sql = "UPDATE `mail_users` SET `mail_pass` = %p, status = 'change' WHERE `mail_addr` = %u LIMIT 1";

    if ($dsn = $rcmail->config->get('password_db_dsn')) {
// #1486067: enable new_link option
if (is_array($dsn) && empty($dsn['new_link']))
$dsn['new_link'] = true;
else if (!is_array($dsn) && !preg_match('/\?new_link=true/', $dsn))
$dsn .= '?new_link=true';

        $db = new rcube_mdb2($dsn, '', FALSE);
        $db->set_debug((bool)$rcmail->config->get('sql_debug'));
        $db->db_connect('w');
    }
    if ($err = $db->is_error())
        return PASSWORD_ERROR;

    $sql = str_replace('%u', $db->quote($_SESSION['username'],'text'), $sql);
    $sql = str_replace('%p', $db->quote($passwd,'text'), $sql);

    $res = $db->query($sql);

    if (!$db->is_error()) {
     if ($db->affected_rows($res) == 1)
require('../../include/ispcp-functions.php');
send_request();
return PASSWORD_SUCCESS; // This is the good case: 1 row updated
    }

    return PASSWORD_ERROR;
}

?>

TheCry (author)
http://github.com/TheCry/ispCP-roundcube...rs/sql.php
03-06-2010 03:38 AM
Find all posts by this user Quote this message in a reply
rAdKy Offline
Junior Member
*

Posts: 18
Joined: Feb 2010
Reputation: 0
Post: #48
RE: [HowTo] Password Changer Roundcube 0.3 Stable
Error message is:
Could not save new password.

????
Where I can view the error logs? Why is that error?
03-16-2010 02:50 AM
Find all posts by this user Quote this message in a reply
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #49
RE: [HowTo] Password Changer Roundcube 0.3 Stable
My friend...
I need more informations...
Which ispCP version, which roundcube version. Are you using courier or dovecot?
03-16-2010 06:20 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #50
RE: [HowTo] Password Changer Roundcube 0.3 Stable
You can enable the Debug-Modus in Roundcube to get more Infos.

Greez BeNe
03-16-2010 06:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)