Three questions:

1) How does one set up a group to be able to post to a topic and place a
member in that group?  I found documentation on the functions, but
wasn't able to find much on how to use Asgard to do this.

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.

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/
 ./

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

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.  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  |
+-----------+----------+

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.

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.  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.

$res = mgd_auth_midgard("anonymous","4anon",0);
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.  When
Authentication is changed from Inherited to Required, there is no
change.

SELECT person.id,person.password FROM person,member WHERE
person.username='anonymous' AND person.sitegroup=0 AND member.uid =
person.id AND member.gid=0
SELECT id FROM person WHERE (id=0) AND (sitegroup IN (0,0) OR 0<>0)

those appear to be the queries that are made to get the password and of
course return an empty set.

When I do the article posting, I can force the post by hardcoding the
author as 2, but then I get permission denied.

I've created a group called firewallpost.  When I go into that, it says
that Midgard Administrator and Anonymous Poster are both members. 
However, when I look at the username Anonymous Poster, it does not show
to be a member of the group.

I changed the topic to be owned by firewallpost, however, when I
hardcode the article post with the user id of 2, I still get the access
denied.

Any help would be greatly appreciated.

Thanks.


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

Reply via email to