Hi!
Thanks for the tip, I tried that before, but it didn't make any difference.
For me, the solution was to change some lines in NemeinAuthetcation/
Functions.
I changed auth_login_remember() to be able to access the password:
$n_user_id = $GLOBALS['nemein_auth_user'];
$n_user = mgd_get_person($n_user_id);
if ($n_user->password == $password) {
Before it said $GLOBALS['nemein_auth_user']->password or something similar,
which didn't work because $GLOBALS['nemein_auth_user'] stores the person id,
not an object.
in auth_by_cookies_remember() I added a line before the while loop to
authenticate as admin user (because otherwise the user password couldn't be
read without that authentication)
in the while loop, I changed
$server_hash = md5($person->username.$person->password.
$nemeinnet[system_secure_string]);
to:
$server_hash = md5($person->username.$person->password.
$nemein_net[system_secure_string]);
(i.e. I added an underscore). I'm not really sure but I think this changed the
$serv_hash value.
I don't know if this is a good way to achieve the functionality I want, but
from what I can tell, its working. If I'm missing something, please tell me.
Bye,
Andreas
Am Dienstag, 23. M�rz 2004 19:42 schrieb Henri Kaukola:
> Hello,
>
> I'm not sure but I think it's because your password
> is encrypted = you cannot read it with $person->password.
>
> Try setting your password clear text (there's a checkbox
> in Aegir --> Groups & People --> Person Details). Or you
> can change it manually in DB by starting the string with
> ** (i.e. update person set password="**mypasswd" where id=YOURID).
>
> Cheers!
>
> ~ //Henri
>
> Sonic wrote:
> | P.S.:
> |
> | I further narrowed down the problem and it seems that
> |
> | $server_hash =
> | md5($person->username.$person->password.$nemeinnet[system_secure_string])
> |;
> |
> | is the culprit. For some reason, $person->username returns the correct
> | username and $person->password returns nothing...
> |
> |
> | clueless,
> |
> | Andreas
> |
> |
> | ---------------------------------------------------------------------
> | To unsubscribe, e-mail: [EMAIL PROTECTED]
> | For additional commands, e-mail: [EMAIL PROTECTED]
--
Adding sound to movies would be like putting lipstick on the Venus de Milo. --
Mary Pickford, 1925
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]