Oliver Rojo | 15 May 08:28

authentication before viewing pages

Guys,

I need help.

Is it possible to set each user to authenticate first before viewing and
editing pages instead of authenticating before editing pages? I don't want
to use htaccess at this moment if mediawiki has this feature. I'm using
mediawiki-1.10 with AD/LDAP authentication.

Thank you!
Lane, Ryan | 15 May 15:54

Re: authentication before viewing pages

> Is it possible to set each user to authenticate first before 
> viewing and
> editing pages instead of authenticating before editing pages? 
> I don't want
> to use htaccess at this moment if mediawiki has this feature. 
> I'm using
> mediawiki-1.10 with AD/LDAP authentication.
> 

// Don't allow anyone except for logged in users to edit
$wgGroupPermissions['*']['edit'] = false;

// Don't allow anyone except for logged in users to view
$wgGroupPermissions['*']['read'] = false;

// Pages anonymous (not-logged-in) users may see
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-",
"MediaWiki:Monobook.css" );

Notice you'll also want to use img_auth.php for your images:

$wgUploadPath       = "$wgScriptPath/img_auth.php";

And in apache:

<Location "/w/images">
        Order Allow,Deny
        Deny from all
        # any other security features you need
</Location>
(Continue reading)

Oliver Rojo | 15 May 21:18

Re: authentication before viewing pages

I used the following configuration parameters on LocalSettings.php but I
still could read docs without logging in.

Me media wiki info:

dpkg -l mediawiki
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name                      Version                   Description
+++-=========================-=========================-==================================================================
ii  mediawiki                 1:1.10                    website engine for
collaborative work

Any idea?

On Thu, May 15, 2008 at 9:54 PM, Lane, Ryan <Ryan.Lane@...>
wrote:

> > Is it possible to set each user to authenticate first before
> > viewing and
> > editing pages instead of authenticating before editing pages?
> > I don't want
> > to use htaccess at this moment if mediawiki has this feature.
> > I'm using
> > mediawiki-1.10 with AD/LDAP authentication.
> >
>
> // Don't allow anyone except for logged in users to edit
(Continue reading)

Lane, Ryan | 15 May 22:27

Re: authentication before viewing pages

> I used the following configuration parameters on 
> LocalSettings.php but I
> still could read docs without logging in.
> 
> Me media wiki info:
> 
> dpkg -l mediawiki
> Desired=Unknown/Install/Remove/Purge/Hold
> | 
> Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-
> aWait/T-pend
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> uppercase=bad)
> ||/ Name                      Version                   Description
> +++-=========================-=========================-======
> ============================================================
> ii  mediawiki                 1:1.10                    
> website engine for
> collaborative work

What kind of docs? Uploaded stuff, or wiki pages?

Did you put that configuration at the bottom of LocalSettings.php?

V/r,

Ryan Lane

Gmane