Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2008
    Posts
    5

    Default whm plugin how to get username

    hi,

    if you are making a plugin for whm, how do you get the username data from the api?

    i need to get the whm username so i can reference their folder in a script /home/username/folder

    im am trying to do this through perl.

    thanks,
    kevin

  2. #2
    Member
    Join Date
    Mar 2008
    Posts
    5

    Default

    i guess this is the pink elephant in the room question huh? why do i always get to ask this type of question.

  3. #3
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by hostydotnet View Post
    hi,

    if you are making a plugin for whm, how do you get the username data from the api?

    i need to get the whm username so i can reference their folder in a script /home/username/folder

    im am trying to do this through perl.

    thanks,
    kevin
    $ENV{'REMOTE_USER'}

  4. #4
    Member
    Join Date
    Mar 2008
    Posts
    5

    Default almost...

    hi,

    yea. i did that before but it keeps asking for authentication when i go to the page that has that code on it.

    thanks,
    kevin quinn

  5. #5
    Member
    Join Date
    Mar 2008
    Posts
    5

    Default

    hi,

    oh yea, also....it thinks that everyone is root. how does cpanel, whm or whmreseller v3 do it.

    kevin quinn

  6. #6
    Member
    Join Date
    Mar 2008
    Posts
    5

    Default bump

    hi,

    i hate to be that guy and bump this but it is severely holding me back. this is the only site in the universe where i MIGHT get an answer.....bump.

    to recap. i tried that....it asks to authenticate. it shouldn't ask to authenticate because whm knows that you are logged in and knows what your username is.

    there has to be a more official method than $ENV{'REMOTE_USER'}

    thanks,
    kevin
    Last edited by hostydotnet; 03-24-2008 at 12:57 AM. Reason: ...grammer and spelling

Similar Threads & Tags
Similar threads

  1. Replies: 24
    Last Post: 11-23-2010, 07:44 PM
  2. WHM plugin
    By sehh in forum cPanel Developers
    Replies: 3
    Last Post: 12-03-2007, 12:09 PM
  3. How to have WHM Username,WHM Password & WHM Access Key
    By huong in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-18-2007, 02:31 AM
  4. Replies: 2
    Last Post: 02-03-2006, 03:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube