Re: Installation issue, need help

2009-02-13 Thread John Jones
COOKIEDOMAIN indeed!
Thanks for the tip.

Now on the the next steps...

-  
John Jones
East Carolina University
College of Technology and Computer Science
Science and Technology Bldg. Suite 100
Greenville, NC 27858-4353
252-737-1940, Fax 252-328-4250



-Original Message-
From: Josh Thompson 
Reply-To: vcl-user@incubator.apache.org 
To: vcl-user@incubator.apache.org 
Subject: Re: Installation issue, need help
Date: Fri, 13 Feb 2009 14:14:25 -0500


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John,

Here are the things I'd suggest to look at:

- -make sure you have ssl set up for the site
- -make sure COOKIEDOMAIN in conf.php is set correctly
- -make sure the VCLAUTH cookie is actually getting set
- -use the network tab of the firebug add-on for firefox to see what redirects 
you are getting

Let us know what you find.  If the VCLAUTH cookie is getting set, the 
redirects firebug shows would be particularly helpful to know.

Josh

On Friday February 13, 2009, John Jones wrote:
> All,
>
> I have been recently tasked with installing the VCL for testing in our
> department.  So far I have tested it on RHEL 4 and RHEL 5.  I also had
> another admin go through the same install steps without any input from
> me (beyond the initial request), both had the same end result.
>
> I downloaded the latest VCL code from the incubator site earlier in the
> week (Monday, I think), so it is very recent code.
> I was wondering if any of you would be able to help me debug a specific
> issue.  The issue is that after a login with "admin" and the correct
> password (listed in step 12), I get returned right back to the login
> screen.  If I purposely type in the wrong password, it shows "login
> failed" in red.
>
> Here is what I believe is working:
>
> php-info shows that php is working fine and that mcrypt is loaded.
> Apache is working because the vcl main page shows up and php-info
> works...
> Mysql is receiving the login query.  When I take the vcl-login query(s)
> from the mysql logs and run it, I am getting a row returned to me for
> the user.
> If I comment this section of code from authentication.php:
>
> //if (validateLocalAccount($userid, $passwd)) {
>
> And replace with:
>
>if (1) {
> //set cookie
> $cookie = getAuthCookieData("$use...@local");
> if(version_compare(PHP_VERSION, "5.2", ">=") == true)
> setcookie("VCLAUTH", "{$cookie['data']}", 0,
> "/", COOKIEDOMAIN, 0, 1);
> else
> setcookie("VCLAUTH", "{$cookie['data']}", 0,
> "/", COOKIEDOMAIN);
> //load main page
> setcookie("VCLSKIN", "NCSU", (time() + (SECINDAY * 31)),
> "/", COOKIEDOMAIN);
> header("Location: " . BASEURL . SCRIPT);
> dbDisconnect();
> exit;
> }
>
> I still get put back to the login screen.  I am using the "local
> account" type of login as that is my only option at this point.
>
> Is there a log file I can check to see what is going on after I click
> "login"?  Or some other means to gather more information?
>
> Thanks for any help you can provide.
>
> -
> John Jones
> East Carolina University
> College of Technology and Computer Science
> Science and Technology Bldg. Suite 100
> Greenville, NC 27858-4353
> 252-737-1940, Fax 252-328-4250



- -- 
- ---
Josh Thompson
Systems Programmer
Virtual Computing Lab (VCL)
North Carolina State University

josh_thomp...@ncsu.edu
919-515-5323

my GPG/PGP key can be found at pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJlcaTV/LQcNdtPQMRAtkyAJ9tXVp8RKbGiXtJqy3N59pH13ALnACeMu0+
4H4vYNrztV501oLvf4xFB/E=
=m2pP
-END PGP SIGNATURE-


Re: Installation issue, need help

2009-02-13 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John,

Here are the things I'd suggest to look at:

- -make sure you have ssl set up for the site
- -make sure COOKIEDOMAIN in conf.php is set correctly
- -make sure the VCLAUTH cookie is actually getting set
- -use the network tab of the firebug add-on for firefox to see what redirects 
you are getting

Let us know what you find.  If the VCLAUTH cookie is getting set, the 
redirects firebug shows would be particularly helpful to know.

Josh

On Friday February 13, 2009, John Jones wrote:
> All,
>
> I have been recently tasked with installing the VCL for testing in our
> department.  So far I have tested it on RHEL 4 and RHEL 5.  I also had
> another admin go through the same install steps without any input from
> me (beyond the initial request), both had the same end result.
>
> I downloaded the latest VCL code from the incubator site earlier in the
> week (Monday, I think), so it is very recent code.
> I was wondering if any of you would be able to help me debug a specific
> issue.  The issue is that after a login with "admin" and the correct
> password (listed in step 12), I get returned right back to the login
> screen.  If I purposely type in the wrong password, it shows "login
> failed" in red.
>
> Here is what I believe is working:
>
> php-info shows that php is working fine and that mcrypt is loaded.
> Apache is working because the vcl main page shows up and php-info
> works...
> Mysql is receiving the login query.  When I take the vcl-login query(s)
> from the mysql logs and run it, I am getting a row returned to me for
> the user.
> If I comment this section of code from authentication.php:
>
> //if (validateLocalAccount($userid, $passwd)) {
>
> And replace with:
>
>if (1) {
> //set cookie
> $cookie = getAuthCookieData("$use...@local");
> if(version_compare(PHP_VERSION, "5.2", ">=") == true)
> setcookie("VCLAUTH", "{$cookie['data']}", 0,
> "/", COOKIEDOMAIN, 0, 1);
> else
> setcookie("VCLAUTH", "{$cookie['data']}", 0,
> "/", COOKIEDOMAIN);
> //load main page
> setcookie("VCLSKIN", "NCSU", (time() + (SECINDAY * 31)),
> "/", COOKIEDOMAIN);
> header("Location: " . BASEURL . SCRIPT);
> dbDisconnect();
> exit;
> }
>
> I still get put back to the login screen.  I am using the "local
> account" type of login as that is my only option at this point.
>
> Is there a log file I can check to see what is going on after I click
> "login"?  Or some other means to gather more information?
>
> Thanks for any help you can provide.
>
> -
> John Jones
> East Carolina University
> College of Technology and Computer Science
> Science and Technology Bldg. Suite 100
> Greenville, NC 27858-4353
> 252-737-1940, Fax 252-328-4250



- -- 
- ---
Josh Thompson
Systems Programmer
Virtual Computing Lab (VCL)
North Carolina State University

josh_thomp...@ncsu.edu
919-515-5323

my GPG/PGP key can be found at pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJlcaTV/LQcNdtPQMRAtkyAJ9tXVp8RKbGiXtJqy3N59pH13ALnACeMu0+
4H4vYNrztV501oLvf4xFB/E=
=m2pP
-END PGP SIGNATURE-


Installation issue, need help

2009-02-13 Thread John Jones
All,

I have been recently tasked with installing the VCL for testing in our
department.  So far I have tested it on RHEL 4 and RHEL 5.  I also had
another admin go through the same install steps without any input from
me (beyond the initial request), both had the same end result.

I downloaded the latest VCL code from the incubator site earlier in the
week (Monday, I think), so it is very recent code.
I was wondering if any of you would be able to help me debug a specific
issue.  The issue is that after a login with "admin" and the correct
password (listed in step 12), I get returned right back to the login
screen.  If I purposely type in the wrong password, it shows "login
failed" in red.

Here is what I believe is working:

php-info shows that php is working fine and that mcrypt is loaded.
Apache is working because the vcl main page shows up and php-info
works...
Mysql is receiving the login query.  When I take the vcl-login query(s)
from the mysql logs and run it, I am getting a row returned to me for
the user.
If I comment this section of code from authentication.php:

//if (validateLocalAccount($userid, $passwd)) {

And replace with:

   if (1) {
//set cookie
$cookie = getAuthCookieData("$use...@local");
if(version_compare(PHP_VERSION, "5.2", ">=") == true)
setcookie("VCLAUTH", "{$cookie['data']}", 0,
"/", COOKIEDOMAIN, 0, 1);
else
setcookie("VCLAUTH", "{$cookie['data']}", 0,
"/", COOKIEDOMAIN);
//load main page
setcookie("VCLSKIN", "NCSU", (time() + (SECINDAY * 31)),
"/", COOKIEDOMAIN);
header("Location: " . BASEURL . SCRIPT);
dbDisconnect();
exit;
}

I still get put back to the login screen.  I am using the "local
account" type of login as that is my only option at this point.

Is there a log file I can check to see what is going on after I click
"login"?  Or some other means to gather more information?

Thanks for any help you can provide.

-  
John Jones
East Carolina University
College of Technology and Computer Science
Science and Technology Bldg. Suite 100
Greenville, NC 27858-4353
252-737-1940, Fax 252-328-4250