Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    21

    Default Validating cPanel username/password in my own scripts

    I'm working on a small tool for my cPanel customers (end users). My customers will expect to be able to login with the same username and password they use in cPanel.

    I can validate the username and password very simple by acting like a browser logging in to cPanel. But if this succeeds, it will be logged, and the next time the customer logs into cPanel he will see "Last login from" set to localhost. Not good.

    I could try FTP, POP3 or IMAP, but do any of you know of any problems they would have? (I'm not sure what is logged and what's not)

    Or maybe you have another idea of how to achieve this validation?

    I looked at the Cpanel::Accounting perl module, but that seemes unusable for this purpose.

  2. #2
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Aug 2001
    Location
    All over Europe
    Posts
    407

    Default

    Use username/password provided to connect to mysql. If you connect, it is a valid combination. Never tried but it should work.

    kosmo
    http://netenberg.com/
    AccountLab Plus Affordable professional webhosting billing
    Click Be! Building websites as easy as it click be
    Fantastico De Luxe - Install your favourite scripts at a mouse click
    Universina - The CPanel skin with Heart and Soul

  3. #3
    Member
    Join Date
    Oct 2003
    Posts
    21

    Default

    That won't work. The customer handles mysql accounts completely separate from the cPanel accounts.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge fmalekpour's Avatar
    Join Date
    Dec 2002
    Posts
    85

    Default

    use FTP, tested and work perfect both with php and perl.

    Farhad

  5. #5
    Member
    Join Date
    Oct 2003
    Posts
    21

    Default

    Great, thanks.

Similar Threads & Tags
Similar threads

  1. Replies: 8
    Last Post: 06-21-2008, 07:23 PM
  2. Cpanel Username and Password
    By 3mo in forum New User Questions
    Replies: 1
    Last Post: 07-19-2006, 03:59 PM
  3. What is the default password / username for cPanel ?
    By shellhost in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-06-2004, 03:18 PM
  4. CPanel username and password
    By kathay in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-04-2004, 12:21 PM
  5. username/password length in cpanel
    By cyberspirit in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-09-2003, 07:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube