account api vpasswd error

Need help? Ask here.

Moderator: Moderators

account api vpasswd error

Postby sm1970 » Mon Jul 21, 2014 9:32 am

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= ... =vpasswd&d[u]=mailbox@example.com&d[p]=newpass&d[vp]=oldpass

Should I be encrypting oldpass somehow?
sm1970
 
Posts: 2
Joined: Mon Jul 21, 2014 9:18 am

Re: account api vpasswd error

Postby Seth » Mon Jul 21, 2014 9:58 am

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: 265
Joined: Sun Aug 30, 2009 10:44 pm
Location: Nevada

Re: account api vpasswd error

Postby Seth » Mon Jul 21, 2014 10:06 am

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: 265
Joined: Sun Aug 30, 2009 10:44 pm
Location: Nevada

Re: account api vpasswd error

Postby Seth » Mon Jul 21, 2014 10:12 am

It should be fixed now.
Seth Mattinen, Roller Network LLC
Seth
Site Admin
 
Posts: 265
Joined: Sun Aug 30, 2009 10:44 pm
Location: Nevada

Re: account api vpasswd error

Postby sm1970 » Mon Jul 21, 2014 10:22 am

just tried and it's working, thank
sm1970
 
Posts: 2
Joined: Mon Jul 21, 2014 9:18 am


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron