Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

authentication before viewing pages

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


oliver.rojo at gmail

May 14, 2008, 11:29 PM

Post #1 of 4 (167 views)
Permalink
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!
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Ryan.Lane at ocean

May 15, 2008, 6:54 AM

Post #2 of 4 (154 views)
Permalink
Re: authentication before viewing pages [In reply to]

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



V/r,

Ryan Lane

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


oliver.rojo at gmail

May 15, 2008, 12:18 PM

Post #3 of 4 (153 views)
Permalink
Re: authentication before viewing pages [In reply to]

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[at]ocean.navo.navy.mil>
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
> $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>
>
>
>
> V/r,
>
> Ryan Lane
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Ryan.Lane at ocean

May 15, 2008, 1:27 PM

Post #4 of 4 (153 views)
Permalink
Re: authentication before viewing pages [In reply to]

> 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

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.