import mediawiki-httpauth-0.1
This extension works with MediaWiki instances setup behind HTTP authentication. It pulls usernames from $_SERVER['PHP_AUTH_USER']. The extension will then either log the user on to MediaWiki if the user name exists in the database or create a new user if it does not. "ok with me" jasper@, "yeah hell import it" landry@
This commit is contained in:
parent
44072100b2
commit
360c34a5c6
34
www/mediawiki-httpauth/Makefile
Normal file
34
www/mediawiki-httpauth/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/01/08 13:15:38 stephan Exp $
|
||||
|
||||
COMMENT = MediaWiki extension for http based authentication
|
||||
|
||||
V = 0.1
|
||||
DISTNAME = mediawiki-httpauth-${V}
|
||||
CATEGORIES = www
|
||||
|
||||
MAINTAINER = Stephan A. Rickauer <stephan@openbsd.org>
|
||||
|
||||
HOMEPAGE = http://www.mediawiki.org/wiki/Extension:HttpAuth
|
||||
MASTER_SITES = http://github.com/oremj/mediawiki-http-auth/tarball/v${V}/
|
||||
|
||||
# Mozilla Public License 1.1
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
NO_BUILD = Yes
|
||||
NO_REGRESS = Yes
|
||||
PKG_ARCH = *
|
||||
|
||||
PREFIX = /var/www
|
||||
EXTENSIONSDIR = ${PREFIX}/mediawiki/extensions
|
||||
|
||||
RUN_DEPENDS = :mediawiki->=1.13.2:www/mediawiki
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${EXTENSIONSDIR}
|
||||
@mv ${WRKDIR}/oremj-mediawiki-http-auth-4be6b72/HttpAuthPlugin.php \
|
||||
${EXTENSIONSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
5
www/mediawiki-httpauth/distinfo
Normal file
5
www/mediawiki-httpauth/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (mediawiki-httpauth-0.1.tar.gz) = +u4uFejdpI8Np+K19Bpcqw==
|
||||
RMD160 (mediawiki-httpauth-0.1.tar.gz) = LlFGgwTeOT77hLKS3fyahdjMTxg=
|
||||
SHA1 (mediawiki-httpauth-0.1.tar.gz) = UHCmAO3OohqGBokwfKuUEWWFyHM=
|
||||
SHA256 (mediawiki-httpauth-0.1.tar.gz) = UaRiG+o33TT1mK9Tku124C6GDsHOJ94dmJ3UvEJfj0Y=
|
||||
SIZE (mediawiki-httpauth-0.1.tar.gz) = 2664
|
4
www/mediawiki-httpauth/pkg/DESCR
Normal file
4
www/mediawiki-httpauth/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
This extension works with MediaWiki instances setup behind HTTP
|
||||
authentication. It pulls usernames from $_SERVER['PHP_AUTH_USER'].
|
||||
The extension will then either log the user on to MediaWiki if the
|
||||
user name exists in the database or create a new user if it does not.
|
11
www/mediawiki-httpauth/pkg/MESSAGE
Normal file
11
www/mediawiki-httpauth/pkg/MESSAGE
Normal file
@ -0,0 +1,11 @@
|
||||
edit LocalSettings.php and add:
|
||||
|
||||
if ((!empty($_SERVER['PHP_AUTH_USER']) &&
|
||||
!empty($_SERVER['REMOTE_USER'])) ||
|
||||
$_COOKIE['fpwiki_en_UserID']) {
|
||||
|
||||
require_once("$IP/extensions/HttpAuthPlugin.php");
|
||||
$wgAuth = new HttpAuthPlugin();
|
||||
$wgHooks['UserLoadFromSession'][] =
|
||||
array($wgAuth,'autoAuthenticate');
|
||||
}
|
2
www/mediawiki-httpauth/pkg/PLIST
Normal file
2
www/mediawiki-httpauth/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/01/08 13:15:38 stephan Exp $
|
||||
mediawiki/extensions/HttpAuthPlugin.php
|
Loading…
Reference in New Issue
Block a user