Roundcube Community Forum

 

Resolved - Password plugins

Started by remrem, June 26, 2009, 07:44:01 AM

Previous topic - Next topic

sumit9451

If you need my ftp account for mail i can give :) But please help :) Please please it has a week i am trying on ..

sumit9451

Do i have to create password database in msql if yes then how .. Please provide me steps if possible from starting with database and please...

fms

Quote from: sumit9451;21637Hello i tried this
I want use it with

$rcmail_config['password_driver'] = 'sql';

$rcmail_config['password_db_dsn'] = 'mysql://comp35_rnd02:3aRqSzgezi@localhost/com35_rnd02';

$rcmail_config['password_query'] = 'UPDATE mailbox SET password=%p WHERE username=%u AND password=%o AND domain=%d LIMIT 1';

this i get cannot save the password or sometime blank page.. pLease help

Try this:


$rcmail_config['password_db_dsn'] = 'mysql://<user>:<password>@unix(/tmp/mysql.sock)/<database>';
$rcmail_config['password_query'] = &quot;UPDATE `mailbox` SET `password` = %c, modified=now() WHERE `username` = %u LIMIT 1&quot;;


In your case:

$rcmail_config['password_db_dsn'] = 'mysql://comp35_rnd02:3aRqSzgezi@unix(/tmp/mysql.sock)/your-database-name';
$rcmail_config['password_query'] = "UPDATE `mailbox` SET `password` = %c, modified=now() WHERE `username` = %u LIMIT 1";
Francisco

sumit9451

ITs saying not able to connect database .. Cannot save password. !

fms

#19
Are you sure
your login on database
is "comp35_rnd02"
and your password is "3aRqSzgezi" ?

First of all, you should try to assure you can log in and can access the database.

Try to use heidisql (http://www.heidisql.com) to test if you can connect to the database.
Francisco

sumit9451

YEs i can access it .. i have tried can you send me once again step by step instruction from starting so i can try once again ... please i used simplescript to uplaod roundcube mail script..  this is my mysql server status

* Server: Localhost via UNIX socket
    * Server version: 5.0.81-community-log
    * Protocol version: 10
    * User: comp35_rnd02@localhost
    * MySQL charset: UTF-8 Unicode (utf8)

Web server

    * Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
    * MySQL client version: 5.0.81
    * PHP extension: mysqli

fms

Where are your users? on what database?

Lets say:
1) your mysql-user: comp35_rnd02
2) your mysql-password:3aRqSzgezi
3) your mysql-database: postfix

So, user comp35_rnd02 should have rights to access postfix database from localhost (assuming RoundCube is running on same machine where mysql is)

#mysql
mysql> GRANT ALL ON postfix.* TO comp35_rnd02@localhost IDENTIFIED BY '3aRqSzgezi'; FLUSH PRIVILEGES;
exit


So, your password-plugin config is something like this:
/usr/local/www/roundcube/config/password/config.inc.php

$rcmail_config['password_db_dsn'] = 'mysql://comp35_rnd02:3aRqSzgezi@unix(/tmp/mysql.sock)/postfix';
$rcmail_config['password_query'] = "UPDATE `mailbox` SET `password` = %c, modified=now() WHERE `username` = %u LIMIT 1";
Francisco

rosali

@fms: The problem of sumit9451 is, that he is using the imap server of his host. His webspace is controlled by cpanel. I don't think that he has access to postfix database. I'm not familiar with cpanel. I don't know if it is even possible to code a suiteable driver for the current password plugin. MySQL - at least with the credential posted by sumit 9451 - has only access to the RoundCube database.
Regards,
Rosali

fms

humm ok Rosali.

In this case, I dont know a solution for him.
Francisco

sumit9451

SO tell me the way ... is this not for cpanel .. what you need  just tell me so i can find and tell you.. pzzzzzzzzzzzzzz

sumit9451

i have one idea if you support me ... tell me where should i install roundcube manually and i have full control for cpanel...

sumit9451


rosali

You don't understand the structure:

RoundCube is a IMAP server client.
The backend is a IMAP server.
The IMAP server or a backend of the IMAP server administers users and passwords.
Really deep insights to your imap server and the user/password administration are necessary to code a php script to jump into it.
At the moment no skilled php programmer and cpanel user has coded a password change driver ...
Regards,
Rosali

yinzhen

#28
hello,
 
i use roundcube 0.3.2.30 and have a problem with the Password Plugin. If try to change a Password, there is always the 'internalerror' Message. But if i try out the wrong 'curpasswd' , roundcube detect that it is the wrong psw. and put out the 'passwordincorrect' message.

Seems like Roundcube cant write to the DB.
I use mysql, postfix

There is a error in the log:

apache2: MDB2 Error: not found (-4): _doQuery: [Error message: Could not execute statement] [Last executed query: SELECT update_passwd('qtr$hjhtdjrtdjrdjrtz345z54rt', '[email protected]')] [Native code: 1305] [Native message: FUNCTION roundcubemail.update_passwd does not exist]

yinzhen

Quote from: yinzhen;25965hello,
 
i use roundcube 0.3.2.30 and have a problem with the Password Plugin. If .......

uff. a solution.....
first i discovered that the old changepswd plugin (0.2.1) work. so i copied some lines. but in the end (like first page in this thread) it works with:

$rcmail_config['password_db_dsn'] = 'mysqli://username:gfd534PASSgdfGGERR53@localhost/vmail';

$rcmail_config['password_query'] = "UPDATE `mailbox` SET `password` = %c, modified=now() WHERE `username` = %u LIMIT 1";