Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    1

    Question Securely roll out email accounts/pw to remote users

    Hi all,

    I consider to switch to a provider who is using cPanel. On our old system I programmed in php my own email account management system.

    The unique thing about it is that people we create an email account with a roll out mechanism. The system sends out an email to the client's old email account with a link to obtain his new email password. This link leads then to a encrypted page. If somebody intercepts the email on its way and clicks on that link a second click will automatically disable the account...

    Is there a function in cPanel that is doing a secure roll out of a password to a client already? Or is there some "lost password" function that is secure?

    On the other hand I downloaded already the xmlapi-php-class-cp_xmlapi_php.zip and had a quick glance over it. It seems powerful... but I did not see how to get the users password and how to disable the account...

    Could you please give me a hint?

    Thanks

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,723
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by awgerber View Post
    Hi all,

    I consider to switch to a provider who is using cPanel. On our old system I programmed in php my own email account management system.

    The unique thing about it is that people we create an email account with a roll out mechanism. The system sends out an email to the client's old email account with a link to obtain his new email password. This link leads then to a encrypted page. If somebody intercepts the email on its way and clicks on that link a second click will automatically disable the account...

    Is there a function in cPanel that is doing a secure roll out of a password to a client already? Or is there some "lost password" function that is secure?

    On the other hand I downloaded already the xmlapi-php-class-cp_xmlapi_php.zip and had a quick glance over it. It seems powerful... but I did not see how to get the users password and how to disable the account...

    Could you please give me a hint?

    Thanks
    cPanel users are standard Unix users. As such, their passwords are hashed (not encrypted). To put it simply, hashed passwords are not retrievable, the most you can do is compare to see if a password is correct or not.

    You can use the XML API to change a user's password, at which time you can probably have your script store the password. Just be sure to do this very carefully as not to create a security vulnerability on the server.

    As for "disabling" a cPanel account, you can suspend an account - but that will also display a suspended page on their website when anyone visits it while the account is suspended.

    If you need clarification on how to suspend an account or change an account's password via the XML API, let me know.

Similar Threads & Tags
Similar threads

  1. 11.28 stable roll out ?
    By GaryT in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-07-2010, 09:01 AM
  2. Removing email accounts, users can't connect with outlook
    By AlexPaes in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-23-2006, 08:02 AM
  3. Email ALL users (including virtual accounts)
    By myrem in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-14-2005, 08:03 AM
  4. remote mysql users
    By dethman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-03-2005, 08:39 PM
  5. Moving email accounts between users
    By bL@De in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-02-2004, 03:16 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube