
21st May 2009, 14:43
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
|
|
changing email password for users
anyone able or interested in making a how-to using this plugin: http://squirrelmail.org/plugin_view.php?id=25 for squirrelmail?
seeing squirrelmail comes recommended with ispcfg3 it would be great if users could change their email passwords.
what about the big players here? how do you solve this for your email users?
my few users are upset about not being able to change their passwords :-(
|

21st May 2009, 15:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
On most systems the owner of the website (client) manages the passwords for his email accounts and not the email user itself.
|

22nd May 2009, 16:37
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 1,186
Thanks: 60
Thanked 13 Times in 11 Posts
|
|
ok, I understand that point of view, but still if someone has a couple of minutes, maybe he can check the config file of this plugin?
shouldn't be that hard if one knows where/how passwords are stored for virtualusers
http://pastebin.com/f135629b1
|

22nd May 2009, 23:01
|
|
Senior Member
|
|
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 32 Times in 30 Posts
|
|
They are stored (in my case) in the database 'dbispconfig', table 'mail_user', column 'password'. But they are hashed to some obscure value. I have many names accounts that use the same password but in the database they show differently.
|

22nd May 2009, 23:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Quote:
Originally Posted by BorderAmigos
They are stored (in my case) in the database 'dbispconfig', table 'mail_user', column 'password'. But they are hashed to some obscure value. I have many names accounts that use the same password but in the database they show differently.
|
The passwords are encrypted with the default linux encryption and thats not obscure at all. It is a crypt md5 encryption with salt, so the hash is always different to prevent dictionary attacks. Its the same encryption that linux uses for passwprds in the /etc/shadow file.
|

22nd May 2009, 23:42
|
|
Senior Member
|
|
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 32 Times in 30 Posts
|
|
All encryption is obscure to someone who knows nothing about encryption  , but I've been studying it since the first post and am catching up. Is the 'salt' from ISPConfig or from elsewhere in the Linux system? (sasl?) I'm still studying that part.
edit: (Directly changing the database may mess things up, I'm just experimenting).
For the password to store in the above mentioned database it seems you would choose your PASSWORD and an 8 character salt value SALTSALT then
Code:
$password = '$1$SALTSALT$'.crypt('PASSWORD','$1$SALTSALT$');
or something similar.
What I'm curious about is if then using some php code to change the password in the database, will that automatically be read by ISPConfig, PostFix, Courier, et cetera? Or will it have to wait on a cron job or need some sort of restart or trigger before it goes into effect?
Last edited by BorderAmigos; 23rd May 2009 at 00:35.
Reason: update
|

23rd May 2009, 09:24
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
The salt is a random 8 character value, it should be different for every password.
Quote:
|
What I'm curious about is if then using some php code to change the password in the database, will that automatically be read by ISPConfig, PostFix, Courier, et cetera? Or will it have to wait on a cron job or need some sort of restart or trigger before it goes into effect?
|
For courier and smtp and ispconfig it is enough to chnage it in the database. If ispconfig will support other configurations which may need to change config files then it will not be enough to change only the db, in that case also a record will have to be written to the sys_datalog to start the server side processing of the changes.
|

8th July 2009, 11:40
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
for squirrelmail + change_sqlpass
you may need to change these in config.php
$password_encryption = 'PHPCRYPT';
$csp_salt_query = 'SELECT CONCAT(\'$1$\', SUBSTRING(SUBSTRING( PASSWORD , (LENGTH( SUBSTRING_INDEX( PASSWORD , \'$\', 2 ) ) +2 )) FROM 1 FOR 8)) FROM mail_user WHERE email = "%1"';
and remark this
//$csp_salt_static = '';
Hope this help
|

18th August 2009, 13:30
|
|
HowtoForge Supporter
|
|
Join Date: Apr 2007
Posts: 77
Thanks: 5
Thanked 3 Times in 3 Posts
|
|
Does this work with ispc3?
Does it???
__________________
You can support Howtoforge and all the people behind it too. Consider becoming a supporter. It only costs a few and has to offer so much more than it already does. Take a look here
|

21st August 2009, 04:27
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I think this is a Squirrelmail + change_sqlpass issue
it doesn't related to ISPConfig
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 23:44.
|
Recent comments
23 hours 51 min ago
23 hours 57 min ago
1 day 4 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 17 hours ago
2 days 38 min ago
2 days 4 hours ago
2 days 6 hours ago