Extension:ImapAuthorization

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:


 * On a system with SElinux don't forget to enable Apache to open a socket:

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.


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