[pmwiki-users] HTTP Authentication and use of login name
christian.ridderstrom at gmail.com
christian.ridderstrom at gmail.com
Fri Jun 9 19:31:59 CDT 2006
On Wed, 7 Jun 2006, Neil Herber wrote:
> At 2006-06-07 09:33 AM -0700, Hartl, Bob is rumored to have said:
>> Is there a way to use http authentication with groups as I suggest?
>
> I do this on several wikis in a farm. I don't think I have anything
> special, but the relevant items are:
>
> 1) Use Apache BA for access. Groups are defined in Apache, but
> ignored in this case.
>
>
> 2) In farmconfig.php:
> ## This will set the author field on all requests authenticated by
> the webserver.
> ## It will even override anything the author happens to put in the "Author"
> ## box on the edit form.
> if (@$_SERVER['REMOTE_USER']) $Author = $_SERVER['REMOTE_USER'];
How could I get the name from Apache BA as the default user name, only
when no user name is known? (Alternatively, set it as the default the
first time)
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list