account api vpasswd error

Need help? Ask here.

Moderator: Moderators

Post Reply
sm1970
Posts: 2
Joined: Mon Jul 21, 2014 9:18 am

account api vpasswd error

Post by sm1970 »

I'm looking to create a form to allow mailbox users to change their password.

I'm able to connect and reset the password using passwd, but when I try to introduce verification using vpasswd I get and ERROR status returned and the following error in the API log

2014-07-21 15:32:48 ERROR: mailbox: vpasswd: Unable to validate password, incorrect MD5 crypt string.

I'm using the template from the help with the correct myuser, mykey and account

https://acc.rollernet.us/api/api.php?u= ... p]=oldpass

Should I be encrypting oldpass somehow?
Seth
Site Admin
Posts: 309
Joined: Sun Aug 30, 2009 10:44 pm
Location: Nevada
Contact:

Re: account api vpasswd error

Post by Seth »

No, the verification password does not need to be sent as an encrypted value. It may be an error on our side I'll have to check.
Seth Mattinen, Roller Network LLC
Seth
Site Admin
Posts: 309
Joined: Sun Aug 30, 2009 10:44 pm
Location: Nevada
Contact:

Re: account api vpasswd error

Post by Seth »

It's an error in our routine that checks the hash format for the API; it was overlooked when expanding crypt hash support for SHA-256 and SHA-512. It's pulling the hash for verification from the database and throwing the error when seeing type 6 (SHA-512).
Seth Mattinen, Roller Network LLC
Seth
Site Admin
Posts: 309
Joined: Sun Aug 30, 2009 10:44 pm
Location: Nevada
Contact:

Re: account api vpasswd error

Post by Seth »

It should be fixed now.
Seth Mattinen, Roller Network LLC
sm1970
Posts: 2
Joined: Mon Jul 21, 2014 9:18 am

Re: account api vpasswd error

Post by sm1970 »

just tried and it's working, thank
Post Reply