Extension:ImapAuthorization
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox. |
ImapAuthorization Release status: unmaintained |
|
---|---|
Implementation | User identity |
Author(s) | Alphanoob1337talk |
Latest version | 0.1.1 |
MediaWiki | 1.27+ |
License | MIT License |
Download | README |
|
|
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
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 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 file:
wfLoadExtension( 'ImapAuthorization' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration parameters
editThe 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
editThis extension was created by Alphanoob1337 please phabricator to report bugs and assign it to Alphanoob1337.