Results 1 to 3 of 3

Thread: Intercept WHM login page then load to Login page after Authentication?

  1. #1
    Member
    Join Date
    Dec 2011
    Posts
    16
    cPanel/WHM Access Level

    Root Administrator

    Default Intercept WHM login page then load to Login page after Authentication?

    This is related to the thread here:

    http://forums.cpanel.net/f42/integra...ml#post1036031

    But more of a new question:

    I have made a PHP script (Actually modified the one provided by YubiKey in their PHP login scripts.) The script authorizes against the key and then provides a link to the WHM panel for login. Very similar to Two-Factor Login, but in reverse sort of.

    Is there a way to have WHM load said page first instead of the actual login page? Sort of like a redirect? If this is possible, then I would want to change the default port for WHM for my link.

    Very unusual question I am sure, but it must certainly be possible.

  2. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    570

    Default Re: Intercept WHM login page then load to Login page after Authentication?

    Hi medfordite,

    I don't have any direct experience with it, but you might want to consider implementing a custom Security Policy that would perform the YubiKey auth. Security Policies are executed after WHM authentication, but the end result would be the same: a two-factor authentication scheme.

    There's not much in the way of detailed documentation/examples/tutorials but you can find the white paper here: http://www.cpanel.net/secpolicy.pdf; it itemizes a few policies that ship with WHM so you might be able to start prototyping based on those, albeit in Perl.

    To answer your question directly, no. There is no way to have a 'pre-login' page that would be served by cpsrvd prior to the WHM login page. The only way to achieve such a user experience would be to setup some sort of proxy (which is what a few hosting companies have done)...but again, that wouldn't be served by cpsrvd itself.

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Requests

  3. #3
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,129
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Intercept WHM login page then load to Login page after Authentication?

    You might be able to accomplish this with a custom login theme:

    Custom Branded Login Pages
    Advanced Branding for Login Pages
    Kenneth
    Product Manager
    cPanel, Inc.

Similar Threads

  1. Replies: 1
    Last Post: 02-11-2011, 10:14 AM
  2. Cant login to WHM only blank page
    By birkiir in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 06-16-2008, 11:57 AM
  3. WHM/CPanel login page
    By Dennisb1 in forum Themes and Branding
    Replies: 2
    Last Post: 09-17-2006, 11:09 AM
  4. how to change root login user to other for Cpanel WHM login page?
    By onnetsupport in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 06-07-2006, 09:21 AM
  5. WHM login shows but no page
    By solan in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 11-17-2003, 10:39 AM