Extension:ImapAuthorization
![]() Release status: unmaintained |
|
---|---|
Implementation | User identity |
Author(s) | Alphanoob1337talk |
Latest version | 0.1.1 |
MediaWiki | 1.27+ |
License | MIT License |
Download | README |
Parameters
|
|
Quarterly downloads | 0 |
Translate the ImapAuthorization extension if it is available at translatewiki.net | |
The ImapAuthorization extension provides user authentication checks against an e-mail server. If the username exists is checked against the SMTP server. The credentials are checked against an IMAP server.
Requirements
- The PHP module "imap". Under CentOS this can be achieved with the following command:
yum install php-imap
- On a system with SElinux don't forget to enable Apache to open a socket:
setsebool httpd_can_network_connect 1
setsebool -P httpd_can_network_connect 1
Installation
- Download and move the extracted
ImapAuthorization
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ImapAuthorization - Add the following code at the bottom of your LocalSettings.php
wfLoadExtension( 'ImapAuthorization' );
file: Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration parameters
The following parameters can be used in the LocalSettings.php. The SMTP server is used to check if a user exists, the IMAP server is used to verify the user credentials. No e-mails are sent.
$wgImapAuthorizationActive = true; // Use ImapAuthorization
$wgImapAuthorizationSmtpServerAddress = 'localhost'; // The DNS, FQDN or IP address of the SMTP server
$wgImapAuthorizationSmtpServerPort = 25; // The port number of the SMTP server
$wgImapAuthorizationImapServerAddress = 'localhost'; // The DNS, FQDN or IP address of the IMAP server
$wgImapAuthorizationImapServerPort = 143; // The port number of the IMAP server
$wgImapAuthorizationImapServerEnforceSsl = false; // Enforce SSL/TLS of the IMAP server
$wgImapAuthorizationImapServerEnforceTls = false; // Enforce STARTTLS of the IMAP server
$wgImapAuthorizationImapServerVerifyCert = true; // Verify the TLS certificate of the IMAP server
Development and Help
This extension was created by Alphanoob1337 please phabricator to report bugs and assign it to Alphanoob1337.