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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP Password update hook

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

Tags:
  1. Haioken

    Haioken Registered

    Joined:
    Feb 27, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hi,

    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

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page