On Tue, Nov 19, 2002 at 01:03:23PM +0100, Peter Suschlik wrote:

> I got: (Please ignore the "id"'s)
>  
>  step 1
>  mgd_errstr = MGD_ERR_OK
>  id = 39
>  step 2
>  Login failed
>  mgd_errstr = MGD_ERR_OK
>  id = 39
> 
> Are you already authenticated before "step 1"?
> I am.

No, i wasn't.

I think that i understood the problem better.

If mgd_auth_midgard() failed then the actual sitegroup changes to SG0.

  1: <?php
  2: print "sg1 = $midgard->sitegroup<br>";
  3: 
  4: if (mgd_auth_midgard('nonexistentuser', 'dfsfsdfdsffds', 0)) {
  5:   print "Login ok<br>";
  6: } else {
  7:   print "Login failed<br>";
  8: }
  9: 
 10: print "sg2 = $midgard->sitegroup<br>";
 11: $midgard = mgd_get_midgard();
 12: print "sg3 = $midgard->sitegroup<br>";
 13: ?>

Result:

sg1 = 1
Login failed
sg2 = 1
sg3 = 0

Really looks like a bug.

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

Reply via email to