Roundcube Community Forum

Release Support => Pending Issues => Topic started by: HTF on January 28, 2010, 04:36:45 AM

Title: Password change
Post by: HTF on January 28, 2010, 04:36:45 AM
Hi,

Is there any plug what gives password change possibility for the users?

Regards
Title: Password change
Post by: SKaero on January 28, 2010, 05:16:23 AM
RoundCube comes with a a change password plugin, check out the plugins/password/README for more information.
Title: Password change
Post by: bagu on January 28, 2010, 10:44:24 AM
It seems it don't work with hmailserver...

And the hmail_password plugin don't work (mark paswword is changed, but can still login with old password and not with the new one)
Title: Password change
Post by: HTF on January 30, 2010, 12:55:34 PM
Hi,

So is there any working solution to change the password with roundcube and hMailserver
Title: Password change
Post by: rosali on January 31, 2010, 05:57:26 AM
Yes, if you have an external hmailserver database (MySQL).

hmail_password plugin works for me and lots of others.
Title: Password change
Post by: bagu on January 31, 2010, 07:15:59 PM
I have an external database, the password seem to be changed, but when i try to log with new password, it don't work.

So i try with old, and when trying with old password, it work.
So password is not changed.

Hmail_password don't work on hmailserver 5.3.2 ?

An other thing, hmailserver 5.3.x don't use md5 encryption as default encryption now...
Is there any way to make this plugin work AND use the new encryption ?
Title: Password change
Post by: rosali on February 01, 2010, 01:01:24 AM
hmail 5.3.2 is beta. Nethertheless I installed it on a test machine. The change password plugin works for me. So it looks like some misconfiguration on your side.

There is no way I see to support others than md5 encryption. I want to have the plugin to be able running on a *NIX box. So I can't use hmail COM API which requires Windows OS.
Title: Password change
Post by: HTF on February 01, 2010, 01:44:24 AM
Quote from: rosali;25041
Yes, if you have an external hmailserver database (MySQL).

hmail_password plugin works for me and lots of others.


I've just test it and it's not working as it says 'password sucessfuly changed' and then old password still working and the new one is not, also can you help me with your 'register' plug I'm receving message 'failed to register user'?
Title: Password change
Post by: rosali on February 01, 2010, 02:29:05 AM
So it is clearly a configuration issue. What do you have in ./config/config.inc.php ::: $rcmail_config['db_hmail_password_dsn'] ? ? ?

Which Roundcube version do you use?
Title: Password change
Post by: HTF on February 01, 2010, 02:59:40 AM
Quote from: rosali;25048
So it is clearly a configuration issue. What do you have in ./config/config.inc.php ::: $rcmail_config['db_hmail_password_dsn'] ? ? ?

Which Roundcube version do you use?


Now it looks like I still have to logon once with the old password (after password change) and then at the second logon the new password is working:o

What about registration plug, do I have to set something in the config.inc.php file except domains for registration?
Title: Password change
Post by: rosali on February 01, 2010, 03:15:54 AM
Register does not work with hMail 5.3.2 yet. Wait until I have updated the drivers. Currently there is only a driver for 5.3.
Title: Password change
Post by: rosali on February 01, 2010, 04:19:44 AM
http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/4713-old-myroundcube-plugin-api-conversion-6.html

I have added the drivers now.
Title: Password change
Post by: bagu on February 01, 2010, 06:18:27 AM
Quote from: rosali;25046
hmail 5.3.2 is beta. Nethertheless I installed it on a test machine. The change password plugin works for me. So it looks like some misconfiguration on your side.

There is no way I see to support others than md5 encryption. I want to have the plugin to be able running on a *NIX box. So I can't use hmail COM API which requires Windows OS.


Hum, same problem on hmailserver 5.3.1, so it's not an hmailserver issue...
I used squirrelmail before, and the password changer worked on it.

Other thing, there is a change in database when i use this plugin, but it only encrypt the old password in md5 and save it.
So the new password is never changed.

Maybe i use an old or a wrong version of this plugin...
Can you give me a link to your version ?

EDIT : oh, i don't see the post before me...so i will try the solution...

EDIT2 : are you interested by French localisation for this plugin and for setting plugin ?
Title: Password change
Post by: rosali on February 01, 2010, 07:12:20 AM
Posted via Mobile Device

See my signature. Check your config.inc.php for correct database connection string.
Title: Password change
Post by: bagu on February 01, 2010, 07:57:08 AM
Database connction work fine because no error message (i get successful message) and the password is modified (but it's still the old password, but with md5 not sha)
Title: Password change
Post by: rosali on February 01, 2010, 08:20:41 AM
Posted via Mobile Device
So it works for you now? Yes, post or PM'me translations.
Title: Password change
Post by: bagu on February 01, 2010, 08:45:27 AM
It half work (i'm really sorry)

Password is changed. But, i need to delete roundcube cookies and cache (i use firefox 3.6 and ie8) to make it work with the new password.

don't know if it's a rouncube issue or a plugin issue...

(I will compress files and send it to you as soon as i can)
Title: Password change
Post by: rosali on February 01, 2010, 12:21:58 PM
Posted via Mobile Device
Did you modify the default skin (autocomplete=off)?
Title: Password change
Post by: rosali on February 01, 2010, 12:23:28 PM
Posted via Mobile Device
Did you modify the default skin (autocomplete=off)?

Do you use remember me plugin?
Title: Password change
Post by: bagu on February 01, 2010, 12:48:58 PM
Quote from: rosali;25079
Posted via Mobile Device
Did you modify the default skin (autocomplete=off)?

Do you use remember me plugin?


No for the two questions.
Setting and hmail_password are the only plugin i use and i use default skin only
Title: Password change
Post by: rosali on February 01, 2010, 04:14:30 PM
Could you please test if attached plugin version solves the problem?
Title: Password change
Post by: bagu on February 01, 2010, 04:46:18 PM
First change :
I need to clear cache, but may be my fault (plugin changed without restart browser session)
Second change :
I get "Imap connexion error" (in french)

I need to set password and restart the server (only hmailserver don't correct the problem)

Frustrating....
Title: Password change
Post by: rosali on February 01, 2010, 05:36:03 PM
No, it is not your fault. The old database session is not wiped out. There must be a change in CORE I missed.

Try this ... you won't see the successfully changed message ...
Title: Password change
Post by: rosali on February 01, 2010, 05:42:29 PM
OOps ... comment line 63

//$rcmail->output->command('display_message', $res, 'error');

!!! Now it works for me!

I will explain soon why this happened!
Title: Password change
Post by: rosali on February 02, 2010, 01:30:30 AM
This one should be working now. For some reason the old version did not wipe out the old session from the database.
Title: Password change
Post by: bagu on February 02, 2010, 05:52:58 AM
Small question, when you say :

// comment in the following line to use database instead of hMailserver COM API (Windows OS only)
$rcmail_config['db_hmail_password_dsn']

You say i must comment or uncomment when i am on windows ?
(i am on windows with an external database)

Because i still need to erase cookie to get an acces with new password.
Title: Password change
Post by: rosali on February 02, 2010, 06:47:14 AM
Comment, if you are on windows. On my machine no relevant cookies are left on IE7/8 and Firefox. Cross-check by adding ...

[html]

[/html>

... into ./skins/default/templates/login.html just before the closing body tag.
Title: Password change
Post by: bagu on February 02, 2010, 08:05:45 AM
When i comment the line, i get this message when logout :

Code: [Select]
La page n'est pas redirigée correctement

Firefox a détecté que le serveur redirige la demande pour cette adresse d'une manière qui n'aboutira pas.

    *   La cause de ce problème peut être la désactivation ou le refus
          des cookies.

Cookies are enable, so the last line is not the problem...

And just after, if i want to log, i get an imap connection error. So i must reset the password with hmail manager, and reboot the server AND erase cookie to regain access.

Again, after server reboot AND cookie erase, i regain connexion

But i can still acces with outlook

There is an error message in log :
[02-Feb-2010 14:09:34 +0100]: IMAP Error: Empty startup greeting (localhost:143) (POST /rm/?_task=&_action=login)

EDIt : with the alert, i get a message :

mailviewsplitterv=165; rc_sess=********; voted_polls[12]=1; NewBBPlusLastVisit=1264699242; layout=horizontal; PHPSESSID=******; popunder=yes; popundr=yes

And when i go to cookie manager of firefox there is prefsviewsplitter and mailviewsplitterv.
I regain connection when i erase these two cookie...I really don't understand why...
Title: Password change
Post by: rosali on February 02, 2010, 09:25:17 AM
As you see there is no password cookie ...

Regarding the empty startup greeting this has been fixed in trunk. Please use current SVN release.

I do not speek french, so I don't understand the firefox message.

Can you access it after you close browser instead of rebooting/clearing?
Title: Password change
Post by: SKaero on February 02, 2010, 11:08:49 AM
The empty startup greeting was fixed in 3.1 and did not allow the user to login at all, it sounds like a different problem to me. http://trac.roundcube.net/ticket/1486085
Title: Password change
Post by: bagu on February 02, 2010, 12:07:32 PM
Quote from: rosali;25146

Can you access it after you close browser instead of rebooting/clearing?

No, i can't...
I don't understant why, but i must erase all rouncube related cookies (even if password or session are not into it) to be able to log in...

My roundcube version is the last release (Version 0.3.1-20091031) and there is non modification except one (i just remember it)

I think the log in problem come from it...
Let me explain...I have one roundcube installation and i have many domain which use it...Before, i use squirrelmail and with squirrelmail, if i log in from http://www.bagu.biz with user bagu, there is a plugin with auto complete the username to log in with bagu@bagu.biz without any need to declare every domain...(too long, and hard to maintain)

So, when i install rouncube, i have search to have the same possibility, and i found this solution :

In main.inc.php i put this code :
Code: [Select]
$host = $_SERVER['HTTP_HOST'];
$refer_array = str_replace('www.', '', $host);

So, i modify these parameters :
Code: [Select]
$rcmail_config['username_domain'] = $refer_array;
$rcmail_config['mail_domain'] = $refer_array;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';

Is these modifications wrong or can it be the origin of the bug ?

Thanks and sorry for wasting your time.
Title: Password change
Post by: HTF on February 02, 2010, 07:52:01 PM
Hi,

Quote
Require hmailemail database version 5300 Detected database 5310


Can you help me with this error of the register plugin,
I'm using hmailserver 5.3.1 and MySQL 5.1.42
Title: Password change
Post by: rosali on February 03, 2010, 12:44:36 AM
Download latest plugin version and register appropriate driver in ./config/config.inc.php

/* driver */
$rcmail_config['register_driver'] = 'hmail_sql_db_5310';
Title: Password change
Post by: HTF on February 03, 2010, 03:02:24 AM
Quote from: rosali;25171
Download latest plugin version and register appropriate driver in ./config/config.inc.php

/* driver */
$rcmail_config['register_driver'] = 'hmail_sql_db_5310';


It says user successful created but login fails and I cannot find it both in MySQL database and hMailserver  domain account node

Regs
Title: Password change
Post by: rosali on February 03, 2010, 06:01:51 AM
Give me remote access (IMAP test account, FTP full permissions, PHPMyAdmin). PM'me.
Title: Password change
Post by: rosali on February 03, 2010, 06:22:33 AM
@ bagu: I can reproduce the issue now. Hope to solve it today evening ... I think if I do not redirect to login page immeditely after password change it should do the trick.
Title: Password change
Post by: bagu on February 03, 2010, 07:20:43 AM
If i can help for test, say me...

P.S. : if you want i can make french translations witch are missing for every plugins of myroundcube...
Title: Password change
Post by: rosali on February 03, 2010, 01:08:03 PM
@ bagu: YEP, translations are welcome.

Test again (new version attached).
Title: Password change
Post by: HTF on February 03, 2010, 03:46:29 PM
Quote from: rosali;25195
Test again (new version attached).


I've just tested it and at the first time was ok but then when I changed the password to the previous one I had to loged in twice with old password then I refreshed browser and it started accept new password.
Title: Password change
Post by: HTF on February 03, 2010, 06:17:40 PM
Quote from: rosali;25180
Give me remote access (IMAP test account, FTP full permissions, PHPMyAdmin). PM'me.


PM has been sent
Title: Password change
Post by: rosali on February 04, 2010, 01:35:50 AM
@ HTF

You can confirm that it works after a simple page reload? It works on IE without this reload. I could add a javascript reload, if that is the last remaining problem with Firefox.
Title: Error runing
Post by: ptester on February 21, 2010, 02:53:50 AM
I have installed password plugin as the instructions (I think!) but it doesn't give me the option to change password in webmail.

The bit I was confused by is section 2
2: change your database connection string in: \plugins\hmail_password\config\config.inc.php.dist
   then copy it as \plugins\hmail_password\config\config.inc.php
   **config.inc.php.dist must be present in the folder

$rcmail_config['db_hmail_password_dsn'] = 'mysql://:@/?new_link=true';

What should I change?, should I add my mailserver.org.uk ??


Thanks
Title: Password change
Post by: JohnDoh on February 21, 2010, 05:28:50 AM
you need to set the connection string for the database which holds your passwords, this is seperate from your RoundCube database.

copy \plugins\hmail_password\config\config.inc.php.dist and rename it so \plugins\hmail_password\config\config.inc.php. Keep both the .dist and .php files in the dir but in the .php one change the value of $rcmail_config['db_hmail_password_dsn'] to the details needs to connect to your email user database.
Title: Password change
Post by: ptester on February 21, 2010, 08:08:46 AM
sorry for sounding silly, but I am still not clear what details I need to change !
$rcmail_config['db_hmail_password_dsn'] = 'mysql://root:@localhost/hmailserver?new_link=true';

only mailserver details I know are:
mail.mydomain.co.uk

Do I need to find out more info from my ISP?
Many thanks for your help
--------------


you need to set the connection string for the database which holds your passwords, this is seperate from your RoundCube database.

copy \plugins\hmail_password\config\config.in c.php.dist and rename it so \plugins\hmail_password\config\config.in c.php. Keep both the .dist and .php files in the dir but in the .php one change the value of $rcmail_config['db_hmail_password_dsn'] to the details needs to connect to your email user database.
Title: Password change
Post by: JohnDoh on February 21, 2010, 08:46:52 AM
ahhh ok. see changing your email password has nothing to do with your IMAP server (there is just no way over IMAP to change passwords). So the various password changer plugins available for roundcube need to connect directly to what ever it is which stores your email usernames and passwords. In the case of this plugin that needs to a database. I'm guessing your ISP runs your email for you so try telling them you have installed a webmail on your hosting and you would like to be able to change your email password and ask if there is some method or API available for this. If there is then have a look at the various password changers available for RC and see if there is one which uses the method you need.
Title: Password change
Post by: dimago on February 24, 2010, 07:38:31 AM
Hello,

I have my user and passwords sotres in linux.. and now? what kind of driver I need use to change the password plugin???

I have got the page to change password, but, certain I need any configuration to go to my MTA and changes the password.

The webmail site runs in server 1, MTA postfix runs in server 2 and mysql roundcube database runs in server 3..

Can I use the password plugin to change the password for users with this scenario?

thanks
Title: Password change
Post by: dimago on February 24, 2010, 02:46:30 PM
Hello all..

OK now, but when I try to change password, by RD, I get this error..

[24-Fev-2010 16:44:04] Tempo esgotado para conexão (110):


Conection Timed Out

If I test poppassd by telnet, it´s works..

Thanks..
Title: Password change
Post by: dimago on February 24, 2010, 04:19:58 PM
OMG

Sorry, my mistake... in pop_host I put wrong server IP

192.168.0.1

192.158.0.1

:(

Thanks anyway
Title: Password change
Post by: aehimself on February 24, 2010, 09:05:09 PM
Quote from: rosali;25209
@ HTF

You can confirm that it works after a simple page reload? It works on IE without this reload. I could add a javascript reload, if that is the last remaining problem with Firefox.

Hello there,

I exactly have the same problem. It seems the password is being cached somewhere and I cannot logon with my new one until I manually delete the session ID from the database itself.
I tried the plugin at Plugin_Repository ? Roundcube Webmail (http://trac.roundcube.net/wiki/Plugin_Repository) and I downloaded the one what you posted at 02-03-2010, 07:08 PM... both does the same. The session stays in Roundcube's MySQL table and I must use my old password to be able to log in.

Looking forward for the working script; would be awesome to have :)

Edit: Forgot to mention.. using Roundcube 0.3.1 and hMailServer 5.3.2 B1769... used plugins trunk 3239 (should be the latest?)
Title: Password change
Post by: dimago on February 24, 2010, 11:05:20 PM
Hey

I will help you..

Do you have yours webmail users and pass stored in local linux? you need to create a user in your mail server??? like useradd dimago ???

If yes, you should use poppassd plugin..

You need to download the packge, can be RPM.. install it.. search at google by poppassd + rpm

After this, we will configure this dude to run...

when it´s ok, we will continue...

Diego
Title: Password change
Post by: aehimself on February 25, 2010, 12:26:57 PM
dimago,

No, I have a Windows box with hMailServer running on it...
So poppassd is not an option for me :(
I'm using the hMailPassword plugin with Roundcube and it's working fine - it only caches the old password and a browser restart is required before the new password can be used. Until then users are able to log in - using the old password.