Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

FTP Password update hook

Discussion in 'cPanel Developers' started by Haioken, Feb 27, 2017.

  1. Haioken

    Haioken Registered

    Feb 27, 2017
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    We are attempting to implement a third party hosted website development and publishing tool integrated with our cPanel servers.
    This publishing tool only publishes via FTP.
    As we'd prefer not to provide a root level FTP account to the provider, we wish to use cPanel user FTP accounts instead, however this presents a problem in that our customers can change that password.
    When the password is changed, I need an event that will fire a call to a local API of ours with the new password, which will in turn use the provider's API to change their password.
    I've attempted using the 'Universal Password Trap' that has been spoken a of a few times, however this only seems to be fired for cPanel account password changes, the script is not touched when a user's FTP password is changed.

    The Ftp and FtpUtils hooks are also not fired when this event happens.
    How can I trap and capture FTP password changes?
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice