Jump to content

Extension:ImapAuthorization

From mediawiki.org
MediaWiki extensions manual
ImapAuthorization
Release status: unmaintained
Implementation User identity
Author(s) Alphanoob1337talk
Latest version 0.1.1
MediaWiki 1.27+
License MIT License
Download
README
  • $wgImapAuthorizationImapServerEnforceSsl
  • $wgImapAuthorizationActive
  • $wgImapAuthorizationImapServerVerifyCert
  • $wgImapAuthorizationImapServerEnforceTls
  • $wgImapAuthorizationImapServerAddress
  • $wgImapAuthorizationImapServerPort
  • $wgImapAuthorizationSmtpServerPort
  • $wgImapAuthorizationSmtpServerAddress
Quarterly downloads 2 (Ranked 129th)
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

[edit]
  • 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

[edit]
  • Download and move the extracted ImapAuthorization folder to your extensions/ 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 file:
    wfLoadExtension( 'ImapAuthorization' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]

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

[edit]

This extension was created by Alphanoob1337 please phabricator to report bugs and assign it to Alphanoob1337.

See also

[edit]