-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tony Lee wrote:
| That's it. I just did a _very_ clean reinstall of Midgard-1.5.0 and
| Aegir-1.0 paid attention to do it by-the-book every step of the way. The
| only thing different to when I was running Midgard 1.4.4 and Aegir RC2
| is the preparser but it giving me the same error: "cookie problem?".

Rambo and Torben both posted more info on this one. The error is
actually PHP installation-specific. We're using a deprecated method
from NemeinAuthentication for doing some stuff inside Aegir, and
it simply doesn't work with your PHP install.

The problem is, since Aegir depends on this deprecated method
we can't simply fix it by upgrading to latest NemeinAuthentication.

You could try overwriting the auth_hack_session function in snippet
/Nemein_Authentication/Functions with the latest version from CVS:

//Obsolete but kept here in case someone needs to do something similar
(and for historical value=)
function auth_hack_session() {

~        // *** Mega-hack get session data wo using php session open
~         if (!$session_path=ini_get('session.save_path'))
$session_path="/var/state/php";
~         if (substr($session_path,-1,1)!="/") $session_path.="/";
~         $file=$session_path."sess_".session_id();
//echo "DEBUG: sessionfile: $file <br>\n";
~     if (file_exists($file)) {
~         $fh=fopen($file, "r");
~       if ($fh) {
~            $data=fread($fh, filesize($file));
~         fclose($fh);
//error_reporting (E_ALL);

//2003-02-08: Changed to allow for more leeway in the class (Rambo)
preg_match('/auth_sessiondata\|O:(\d+):"auth_session":(\d+)/', $data,
$matches);
$mucked=str_replace('auth_sessiondata|O:'.$matches[1].':"auth_session":'.$matches[2],
'a:'.$matches[2], $data);

~         $auth_sessiondata=unserialize($mucked);
/*
echo "DEBUG: auth_sessiondata <pre>\n";
print_r($auth_sessiondata);
echo "</pre>\n"; reset ($auth_sessiondata);
*/

~       } else {
~          $error=localize_string("Could not open session",
"/Nemein_Authentication/NemeinLocLibrary", $nemein_net['language']);
~       }
~     }

~     return $auth_sessiondata;
}

Note to Aegir devs: we really need to resolve this issue in
acceptable manner.

| Tony

/Bergie

- --
Henri Bergius                           [EMAIL PROTECTED]
Consultant Partner                      Tel: +358-20-198 6032
Nemein Oy                               http://www.nemein.com/

Nemein.Net -- Project tracking solution for consulting companies
http://www.nemein.com/Nemein.Net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/cZIxNkT8k497k9IRAko6AJ0Wcr++93bQ1uplB1eLypGXq3yPMACeLELg
gZxuJFjJHkpot+HZIAnW6+A=
=vCcv
-----END PGP SIGNATURE-----


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to