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. 