Extension:ImapAuthorization

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
ImapAuthorization
Release status: beta
Latest version 0.1.1
MediaWiki 1.27+
License MIT License
Download
README
Translate the ImapAuthorization extension if it is available at translatewiki.net
Check usage and version matrix.

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 place the file(s) in a directory called ImapAuthorization in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    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]