Solved Post /CMD_API_USER_PASSWD does not work

Access_Denied

Verified User
Joined
Sep 7, 2021
Messages
13
Hello.
For some reason, the function of changing the password through the API broke.
POST /CMD_API_USER_PASSWD

Error in the log:
not on the list: **hack-> long user/pass
The list is based on the direcadmin.conf setting: userdata=./data/users
demo mode: 0
** incorrect login

The request goes through json: Post string: username=a1wsx2qa&passwd=34c3839mwdn&passwd2=34c3839mwdn&json=yes

(username a1wsx2qa is exists on the server).
Maybe someone can tell what is wrong?
 
It's working fine here. I think you might have set enforce_difficult_passwords=1 in directadmin.conf

So, your password should have an uppercase too.

or did you use correct authentication for admin when using API ?
 
Hello.
It's working fine here. I think you might have set enforce_difficult_passwords=1 in directadmin.conf

So, your password should have an uppercase too.

or did you use correct authentication for admin when using API ?
enforce_difficult_passwords=0 in config.
Since other operations via the API are performed correctly (creating a user, changing a tariff), the authentication is correct. Manually, too, everything without errors.
 
Back
Top