.pdf)
WHM Plugins
passwd function from within your custom script:
/xml-api/passwd function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/passwd
passwd function from within your custom script:
/json-api/passwd function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/passwd
passwd function takes the following variables as input.
These variables are required: 1 (default value) — Change the MySQL password.
0 — Do not change the MySQL password.
passwd function. system
ftp
mail
mysql
1 — yes.
0 — no.
https://example.com:2087/xml-api/passwd?user=bob&pass=r3allyc0pml3xp@ss!234
in WebHost Manager will produce output similar to:
<passwd>
<passwd>
<rawout>
Changing password for bob
Password for bob has been changed
Updating ftp passwords for bob
Ftp password files updated.
Ftp vhost passwords synced
</rawout>
<services>
<app>system</app>
</services>
<services>
<app>ftp</app>
</services>
<services>
<app>mail</app>
</services>
<services>
<app>mySQL</app>
</services>
<status>1</status>
<statusmsg>Password changed for user bob</statusmsg>
</passwd>
</passwd>
https://example.com:2087/json-api/passwd?user=gus&pass=r3allyc0pml3xp@ss!234
in WebHost Manager will produce output similar to:
{
"passwd":[
{
"status":1,
"services":[
{
"app":"system"
},
{
"app":"ftp"
},
{
"app":"mail"
},
{
"app":"mySQL"
}
],
"statusmsg":"Password changed for user gus",
"rawout":"Changing password for gus\nPassword for gus has been changed\n
Updating ftp passwords for gus\nFtp password files updated.\n
Ftp vhost passwords synced\n"
}
]
}