[Mediawiki-l] anonymous access

Helmut Schneider jumper99 at gmx.de
Wed Mar 5 13:31:17 UTC 2008


Katharina Wolkwitz <wolkwitz at fh-swf.de> wrote:
> Helmut Schneider schrieb:
>> Helmut Schneider <jumper99 at gmx.de> wrote:
>> 
>>> I'm using the LDAP extension to control access which works fine. I
>>> would  like anonymous users to be able to see specific sites. From
>>> the web I found  the following snippets:
>>>
>>> # This snippet prevents new registrations from anonymous users
>>> # (Sysops can still create user accounts)
>>> $wgGroupPermissions['*']['createaccount'] = false;
>>>
>>> # This snippet prevents editing from anonymous users
>>> $wgGroupPermissions['*']['edit'] = false;
>>>
>>> # Enable anonymous access to specific pages
>>> $wgWhitelistRead = array( "Main Page", "Special:Userlogin",
>>> "Help:Contents",  "-", "MediaWiki:Monobook.css" );
>>> $wgWhitelistRead = array( "Hauptseite", "Spezial:Userlogin", "-", 
>>> "MediaWiki:Monobook.css" );
>>> $wgGroupPermissions['*']['read'] = false;
>>>
>>> Unfortunately this doesn't work, the pages above still require a valid 
>>> login.
>>>
>>> What do I have to set?
>> 
>> Dump noob question? RTFM? Should work as posted? Any reply is welcome...
>
> perhaps the problem lies with the double definition of $wgWhitelistRead.
> Try to use just one definition with just one array.

<SIC> Live can be sooo easy...

Thanks a lot, works now.

Helmut

-- 
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn 




More information about the MediaWiki-l mailing list