Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    4

    Default authentication

    Ok, I see other companies who have modified their Cpanel to be able to have billing software, I'm writing my own, and I've pretty much figured out how to make it where ONLY the user logged into their cpanel account can see their information, and no one else, but then I found a HORRIFYING discovery,

    There cannot be a rererring URL so that I can MAKE them use the link, which will not allow them to login to anyone elses.

    The HTTP_REFERER is blank, therefore I need a different way to authenticate the user is who they say they are.

    I COULD make the user have to login with there username and password, I know how to have CRYPT check the password, but I do not know where Cpanel stores the site password and username, can someone tell me either where that data is stored, OR a way to do authentication to make sure ONLY the owner of the domain can check their billing status.

    Thank you!

  2. #2
    cPanel Test Bitch
    Join Date
    Feb 2002
    Location
    Boston MA
    Posts
    596

    Default

    I'm pretty sure you can have your script just check the /etc/passwd file. This is where lots of personal stuff is stored. Username/password/shell and stuff.

Similar Threads & Tags
Similar threads

  1. Planned for 11.36 WHM - PAM / LDAP / RADIUS Authentication (Pluggable Authentication) [case 39461]
    By NathanS in forum Feature Requests for cPanel/WHM
    Replies: 30
    Last Post: 04-10-2012, 03:37 AM
  2. Ldap authentication
    By fifawe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-15-2007, 12:12 PM
  3. SMTP Authentication
    By speedy in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-15-2006, 06:46 PM
  4. Replies: 0
    Last Post: 12-10-2004, 07:20 AM
  5. Email Authentication
    By Karl in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-17-2001, 02:03 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube