Extension:ImapAuthorization

Category:Unmaintained extensions#ImapAuthorization Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:MIT licensed extensions
MediaWiki extensions manual
ImapAuthorization
Release status: unmaintainedCategory:Unmaintained extensions
Implementation User identity Category:User identity extensions
Author(s) Alphanoob1337talk
Latest version 0.1.1
MediaWiki 1.27+Category:Extensions with manual MediaWiki version
License MIT License
Download Category:Extensions in Wikimedia version control
README
  • $wgImapAuthorizationImapServerEnforceSsl
  • $wgImapAuthorizationActive
  • $wgImapAuthorizationImapServerVerifyCert
  • $wgImapAuthorizationImapServerEnforceTls
  • $wgImapAuthorizationImapServerAddress
  • $wgImapAuthorizationImapServerPort
  • $wgImapAuthorizationSmtpServerPort
  • $wgImapAuthorizationSmtpServerAddress
Quarterly downloads 1 (Ranked 94th)
Translate the ImapAuthorization extension if it is available at translatewiki.net
Category:All extensions

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

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.

See also

Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:MIT licensed extensions Category:Unmaintained extensions Category:User identity extensions