flamewalker
Verified User
- Joined
- Aug 21, 2007
- Messages
- 64
Hello,
I am trying to migrate from one server (very old, ancient hardware) to a new DA server. The problem is I really don't want to have to manually input over 500 email accounts if I don't have to!
So, I found this:
http://www.directadmin.com/forum/showthread.php?t=14157
and modified it to take in a csv list of usernames and passwords in plaintext.
The problem seems to be that the password it is inserting is hashed, as 13 characters long, whereas the existing ones (created in DA), are over 30 characters long.
I suspect I need to change this:
Any suggestions?
TIA
PS - CentOS 5.3, all the latest updates to DA etc.
I am trying to migrate from one server (very old, ancient hardware) to a new DA server. The problem is I really don't want to have to manually input over 500 email accounts if I don't have to!
So, I found this:
http://www.directadmin.com/forum/showthread.php?t=14157
and modified it to take in a csv list of usernames and passwords in plaintext.
The problem seems to be that the password it is inserting is hashed, as 13 characters long, whereas the existing ones (created in DA), are over 30 characters long.
I suspect I need to change this:
Code:
$VAR{pass} = "$returnvalue";
$VAR{salt} = "ab";
$VAR{pass} = crypt($VAR{pass}, $VAR{salt});
Any suggestions?
TIA
PS - CentOS 5.3, all the latest updates to DA etc.