This function will suspend an account.
Calling this URL in WebHost Manager: /xml-api/suspendacct?user=bob&reason=no%20payment
will produce XML similar to:
<suspendacct>
<result status=``1'' statusmsg=``Changing Shell to /bin/false...Changing shell for bob. Shell changed. Done Locking Password...Locking password for user bob. passwd: Success Done Suspending email account logins for domain.com .... Done Notification => contactemail@domain.com via EMAIL [level => 3] Suspending FTP accounts... Updating ftp passwords for bob Ftp password files updated. Ftp vhost passwords synced bob's account has been suspended ''/>
</suspendacct>
Note that this will not delete the account, only suspend it's cPanel and email access.
Copyright 2007 cPanel Inc.