Extension:AuthIMAP

Purpose
This extension authenticates a wiki user against IMAP servers.

Installation
There are multiple sites using this extension, but proceed at your own risk!

Place the source code below in a file titled Auth_imap.php under the extensions folder of your installation.

Add these two lines to the bottom of your LocalSettings.php require_once('extensions/Auth_imap.php'); $wgAuth = new Auth_imap;

This plugin requires that your PHP install be compiled with the cclient library. Please see the PHP manual page below for more information.

It is necessary to edit the authenticate method to connect to your IMAP server. Read this page from the PHP manual for more information. http://us.php.net/manual/en/function.imap-close.php

You probably want to edit the initUser function to set the users real name and email address properly for your configuration. 

Troubleshooting
If you get the following error message, and MediaWiki isn't displaying the pages correctly as a consequence: Warning: Cannot modify header information - headers already sent by (output started at /var/www/ch/stepping-stone/web-dev/wiki-zetcom/htdocs/mediawiki-1.12.0/extensions/Auth_imap.php:251) in /var/www/ch/stepping-stone/web-dev/wiki-zetcom/htdocs/mediawiki-1.12.0/includes/WebResponse.php on line 10 Please make sure that you don't have a line break or any (space) characters after the end of php code ("?&gt;") within Auth_imap.php.