Symptoms
When attempting to add hosting to a domain using the Plesk RPC API the following message is displayed:Domain adding was failed. Error: Unable to update hosting preferences. Unable to create system user: Usage : usermng add 'user' 'password' 'homedir' usermng del 'user' 'homedir' ('homedir' MUST be in HTTPD_VHOST_D) usermng mod 'user' 'newuser' (homedirs is not modifying inside) usermng home 'user' 'homedir' (old homedir move to 'homedir') usermng shell 'user' ("Login Disabled" | "Login Enabled") usermng passwd 'user' 'password' usermng exist 'user' usermng quota 'user' 'quota' ('quota' set in bytes) usermng access (on|off) (users from stdin (delimiter - \\n) usermng --isquotable usermng --remove-all usermng --quota-state 'user'
Even though the same RPC packet works with Plesk for Linux.
Resolution
Most likely the Linux-format shell parameter is used:Example:
<shell> /bin/false </shell>
On a windows machine this parameter takes different values:
"Login Disabled" or "Login Enabled"
Exapmle:
<shell> "Login Disabled" </shell>