Chris Davies <[EMAIL PROTECTED]> wrote:

> 2) How does one use mgd_auth_midgard -- it always returns false except
> for the admin user.  No user that I have created through Asgard returns
> anything but false.

mgd_auth_midgard("userloginname+SG","pass",0);
$midgard = mgd_get_midgard();
 
> 3) Why does the Person Edit screen show admin as the username for all
> users when you edit their login information?
> 
> I'm using the 1.4 debs with my /etc/apt/sources.list containing:
> deb
> http://www.midgard-project.org/developer/downloads/debian/stable/dists/sid/binary-i386/
>  ./

You set up Asgard with deb packages?
wow! It really works ;)
 
> So I guess the version of the data is 1.4.3c as mentioned in the admin
> screens, but the dpkg info on my system reports 1.4.4-2 and 1.4.4-2c for
> libmidgard

1.4.4-2c
midgard 1.4.4
debian version 2c
 
> In any case, I think I've narrowed down the issue of being able to
> create an article -- no matter what I do, only admin is able to create
> an article. 

You may add article to topic only when You are looged in as a member 
of a group which is owner of this topic.

> I think the problem is my understanding of how to assign a
> user to a group in Asgard.
 
> Here's the data for my person that I created to do anonymous posting:
> 
> mysql> select username,password from person where id=2;
> +-----------+----------+
> | username  | password |
> +-----------+----------+
> | anonymous | **4anon  |
> +-----------+----------+

OK, but that person must be a member of topic's owner group.
 
> an interesting thing is that when I edit this person's login
> information, the username on the user/password verification screen is
> always admin -- no matter what I change it to.  It never seems to retain
> the username of the actual user.  Typing in the correct
> username/password combo does allow it to be changed.

How are You logged in?
 
> I created a page and created a snippet with the following code.  Neither
> method has results that are any different.  I can change the
> username/password to admin/password and the command executes and returns
> a valid record.  The reason I tried this as a snippet was that the
> documentation states that mgd_auth_midgard will fail silently if any
> headers have already been sent. 

more or less
latest discoveries reports random Apache segfault when this function is called after 
any header was sent.

> Since the page was in a template, I
> thought this might be a reason for the failure, however, admin/password
> authenticates fine in both cases.

And You are looged in as SG0 admin (superuser).

 
> $res = mgd_auth_midgard("anonymous","4anon",0);

You are still superuser as You logged in to SG0.

> echo mgd_errstr() . "<br>";
> if ($res) {
>   echo "true<br>";
> } else {  
>   echo "false<br>";
> }
> $midgard = mgd_get_midgard();
>  
> echo $midgard->user . ": user<br>";
> 
> No matter what I do, that statement is always false.

You mean '0' ??

> I've created a group called firewallpost.

Select this group as topic owner.

Piotras

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

Reply via email to