cPanel XMLAPI - passwd


DESCRIPTION

This function changes the passwd of a domain owner (cPanel) or reseller (WHM) account.


VARIABLES

INPUT

user
Username of the user whose password should be changed.

pass
New password for that user.

OUTPUT

passwd
Password container.

rawout
Rawmessage output.

services
List of services the password has been updated for

ftp
Whether or not the password was updated for ftp (1 = Yes, 0 = No).

mail
Whether or not the password was updated for mail (1 = Yes, 0 = No).

mysql
Whether or not the password was updated for MySQL (1 = Yes, 0 = No).

system
Whether or not the password was updated in the system password file (1 = Yes, 0 = No).

status
Whether or not the operation completed successfully (1 = Yes, 0 = No).

statusmsg
Details of the success or failure.


EXAMPLES

Calling this URL in WebHost Manager: /xml-api/passwd?user=bob&pass=r3allyc0pml3xp@ss!234

will produce something 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>
                        <ftp>1</ftp>
                        <mail>1</mail>
                        <mysql>1</mysql>
                        <system>1</system>
                </services>
                <status>1</status>
                <statusmsg>Password Changed</statusmsg>
        </passwd>

</passwd>


COPYRIGHT

Copyright 2007 cPanel Inc.