Hi again,

Paul Gillingwater wrote:
> While I'm here, I could ask -- what's the best way to set
> basic authentication on individual topics for different users?
> I can add the users easily, but am unsure how to establish
> the Midgard setting that maps onto an Apache realm.

Hmm, if I understood correct, you want to protect different topics with
different passwords. Currently Midgard allows only one level of read
access control: authenticated or not. You can protect pages by setting
the authentication flag to "required". This however only requires the
user to provide authentication, it will allow any authenticated user to
enter. You can add a small code snippet like the one below to limit
access to certain groups, but this isn't very elegant

in element that activates the automatic content element:
<?php if ($midgard->user && mgd_is_member($GROUP)): ?>
<(content)>
<?php else: ?>
<(unauthorized)>
<?php endif; ?>

Currently Midgard has no control over the basic authentication realm
used. All Midgard pages belong to the "Midgard" realm as defined in the
AuthName directive in the httpd.conf.

Jukka

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to