Creating pop-accounts with CMD_API_POP

kristian

Verified User
Joined
Nov 4, 2005
Messages
440
Location
Norway
Hi,

When creating a pop-account, you pass a password as described:

passwd - the password for the account

Since it doesn't say if this is a cleartext-password or an encrypted password, I'll assume it's the cleartext it wants. Is it possible to pass the encrypted (with standard unix crypt()) version somehow (I have lots and lots of accounts I need to "convert")?

Any other way I could solve this, if the API can't handle it?

Thanks for any help,
 
Hello,

Yes, it's need the plaintext. The command is the exact same as the method in DA for creating account, just with a different parseable return value.

If you have multiple account with pre-crypted passwords, then by far, the easiest method to restore them is to simply manualy add them to the /etc/virtual/domain.com/passwd file.

Format:
user1:crypted1
user2:crypted2
etc..

John
 
Back
Top