Current time: 12-23-2024, 10:03 AM Hello There, Guest! (LoginRegister)


Post Reply 
Password problem in mail_users
Author Message
butko Offline


Posts: 2
Joined: Mar 2010
Reputation: 0
Post: #1
Password problem in mail_users
After upgrading from 1.0.2 to 1.0.4 last night, everything went fine. But when i try to log in to my mail account it says "wrong password or unknown user". It's the same for all users, Ispcp login works just fine.
I compared the mail_users table in my backup ispcp database to find that the encrypted passwords are the same. However, when i set the same password for my mail in ispcp it changes encrypted password in database. As if the encryption algorithm changed. And then the login works.
There is an option to reenter everyone's password in ispcp, but as i have dozen of domains on this server and probably 20-30 mail accounts it would be quite a problem. For now i have restored the backup of 1.0.2, and now everything is ok. Anybody had similar problems?

Thank you for your time.

P.S. I am running a debian lenny 32 bit
03-21-2010 01:03 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Password problem in mail_users
Hi

I assume the db-key files did not change (they keep the key to en+decrypt the passwords).

The algorythm should not have changed - so we need to find the reason for this behavour....


/J
03-21-2010 06:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #3
RE: Password problem in mail_users
Quote:I assume the db-key files did not change (they keep the key to en+decrypt the passwords).

Your assumption is faulty. This is precisely his problem, his keys have changed.
03-21-2010 08:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Password problem in mail_users
Ok, then my assumption was more a hint...

but why did the keys change - did he go his own upgrade way?

/J
03-21-2010 08:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #5
RE: Password problem in mail_users
The key files are manually preserved (by copying them over /tmp/ispcp) during the update procedure. I bet he forgot to copy them...
03-21-2010 08:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
butko Offline


Posts: 2
Joined: Mar 2010
Reputation: 0
Post: #6
RE: Password problem in mail_users
Well, maybe i didn't copy them, but i followed the upgrade procedure very carefully so i don't know exactly what happened.
I managed to resolve the problem by decrypting all the passwords (followed this thread: http://www.isp-control.net/forum/thread-9529.html), and encrypting them with the new key.

Thanks!


(03-21-2010 08:41 PM)kilburn Wrote:  The key files are manually preserved (by copying them over /tmp/ispcp) during the update procedure. I bet he forgot to copy them...
03-23-2010 02:35 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: Password problem in mail_users
ok, there are several ways leading to Rome.... :-)

I wonder if it also worked if you just copied the old db-key files to the new ispcp tree...

well - next time :-)

/J
03-23-2010 03:35 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)