Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    8

    Default Issues with logging into cPanel using cookie authentication

    I have having issues logging into cPanel, WHM, and Webmail. When I go to log in, it will take the correct password, but it will still keep prompting. It seems like it for some reason is having me log in for every object on the page. Has anyone had this issue before? It seems really weird to me. I have the following...

    cPanel 11.25.0-R42399 - WHM 11.25.0 - X 3.9
    CENTOS 5.4 x86_64 standard

  2. #2
    Member
    Join Date
    Jan 2008
    Posts
    49

    Default

    can you post the output of

    Code:
    grep "FAILED LOGIN" /usr/local/cpanel/logs/login_log

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    8

    Default

    I get a bunch of the following errors. I am assuming my connection is being load balanced on the way out and cPanel doesn't like this?

    x.x.x.162 - username[01/11/2010:17:23:40 -0000] "GET /images/awstats/flags/it.png HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed
    x.x.x.61 - username[01/11/2010:17:23:40 -0000] "GET /images/awstats/flags/nl.png HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed
    I proxied the connection so I can have the same IP every time and that seems to have resolved the issue.
    Last edited by mindcruft; 01-11-2010 at 11:28 AM.

  4. #4
    Member
    Join Date
    Jan 2008
    Posts
    49

    Default

    for anyone else having this problem, you can also disable "Validate the IP addresses used in all cookie based logins" in tweak settings under security in your whm.

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by mindcruft View Post
    I get a bunch of the following errors. I am assuming my connection is being load balanced on the way out and cPanel doesn't like this?
    Code:
    x.x.x.162 - username[01/11/2010:17:23:40 -0000] "GET /images/awstats/flags/it.png HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed
    x.x.x.61 - username[01/11/2010:17:23:40 -0000] "GET /images/awstats/flags/nl.png HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed
    I proxied the connection so I can have the same IP every time and that seems to have resolved the issue.
    Thank you for the resolution detail. Out of curiosity, do you know if the Internet connection being used utilizes a dynamically-assigned IP address? I could imagine that if the IP address changed frequently this may also trigger the IP validation security mechanism.

    Quote Originally Posted by xrserver View Post
    for anyone else having this problem, you can also disable "Validate the IP addresses used in all cookie based logins" in tweak settings under security in your whm.
    While disabling IP validation will work I caution that it would come at the cost of reduced security; however, to augment the suggested alternative, if disabling IP validation I would, at minimum, ensure that security tokens are enabled. Security tokens may be toggled using WHM Tweak Settings via the following menu path: WHM: Main >> Server Configuration >> Tweak Settings >> Security. When considering security changes or re-evaluating security configurations I recommend taking into account the desired or required levels of security versus that of convenience.
    Last edited by cPanelDon; 01-15-2010 at 10:16 PM. Reason: Clarification

  6. #6
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Default Re: Issues with logging into cPanel using cookie authentication

    Thanks for this.

  7. #7
    Member
    Join Date
    May 2006
    Posts
    272
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Issues with logging into cPanel using cookie authentication

    Quote Originally Posted by mindcruft View Post
    I have having issues logging into cPanel, WHM, and Webmail. When I go to log in, it will take the correct password, but it will still keep prompting. It seems like it for some reason is having me log in for every object on the page. Has anyone had this issue before?
    I have a customer who has been with me for several years and just started experencing this same exact problem during the past few weeks.

    Any time they log into their cPanel and attempt to navigate around they are constantly presented with a login prompt and have to re-login.

    And the same type of errors show in my logs for them like this:

    xx.xxx.xx.xxx - xxxxxxx [01/17/2011:21:46:13 -0000] "GET /cpsess9940196709/ HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed

    xx.xxx.xx.xxx - xxxxxxx [01/17/2011:21:47:04 -0000] "GET /cpsess6567700538/frontend/x3/stats/awstats_landing.html HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed

    I have yet to find a solution other than turning off IP Validation which I do not want to do.

    The user is running Windows Vista with IE7

    The server is running WHM/cPanel 11.28.64 REDHAT Enterprise 4

    So far, only one customer is experiencing this and their connection IP address is very dynamic, changing by the minute.
    Last edited by Metro2; 02-07-2011 at 06:35 PM.

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Issues with logging into cPanel using cookie authentication

    Quote Originally Posted by Metro2 View Post
    I have a customer who has been with me for several years and just started experencing this same exact problem during the past few weeks.

    Any time they log into their cPanel and attempt to navigate around they are constantly presented with a login prompt and have to re-login.

    And the same type of errors show in my logs for them like this:

    xx.xxx.xx.xxx - xxxxxxx [01/17/2011:21:46:13 -0000] "GET /cpsess9940196709/ HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed

    xx.xxx.xx.xxx - xxxxxxx [01/17/2011:21:47:04 -0000] "GET /cpsess6567700538/frontend/x3/stats/awstats_landing.html HTTP/1.1" FAILED LOGIN cpaneld: cookie ip check: IP address has changed

    I have yet to find a solution other than turning off IP Validation which I do not want to do.

    The user is running Windows Vista with IE7

    The server is running WHM/cPanel 11.28.64 REDHAT Enterprise 4

    So far, only one customer is experiencing this and their connection IP address is very dynamic, changing by the minute.
    Some ISPs are have very short DHCP life times. This can cause the behavior described. In cPanel & WHM version 11.28 we added a new option to the Cookie IP validation setting. Change this setting to 'loose' and it should cause the reauthentication frequency to diminish or go away.
    Kenneth
    Product Manager
    cPanel, Inc.

  9. #9
    Member
    Join Date
    May 2006
    Posts
    272
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Issues with logging into cPanel using cookie authentication

    Thanks for the tip!

Similar Threads & Tags
Similar threads

  1. Blackberry Authentication Issues
    By getgreen in forum E-mail Discussions
    Replies: 13
    Last Post: 11-21-2011, 11:33 AM
  2. Replies: 1
    Last Post: 06-19-2011, 03:18 PM
  3. extended mail logging issues
    By n8whnp in forum E-mail Discussions
    Replies: 1
    Last Post: 07-30-2008, 04:08 AM
  4. Replies: 0
    Last Post: 12-10-2004, 07:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube