Extension:DNNAuthentication

Note
I am not a PHP programmer so feel free to modify as you wish. This extension has been tested with DotNetNuke but should also work with any asp.net website whose membership tables (aspnet_membership and aspnet_user) are populated by the SqlMembershipProvider. Note: This will only work if the website uses a fixed decryption key using the 3DES algorithm. This will not work with an AutoGenerate decryption key.

Tested on
Current Version (0.1) has been tested on:


 * MediaWiki
 * MediaWiki 1.14
 * Operating Systems
 * Microsoft Windows XP
 * Microsoft Windows 2003
 * Web Servers
 * IIS5+PHP FASTCGI
 * IIS6+PHP FASTCGI
 * Database Server
 * SQL SERVER EXPRESS 2005
 * SQL SERVER 2005

v0.1

 * Initial Release

Next version
Override function to create a DNN user from WikiMedia and implement other missing AuthPlugin functions.

To do
Check if it's possible to add the option of Windows authentication rather than SQL Server Authentication

Add compatibility with other membership providers and encryption method thus decoupling it from DNN and making it a generic ASP.NET identity extension.

Enabling the plugin
When the plugin is dropped in extensions (preferred)

Add the following line to your LocalSettings.php file.

PHP extensions
You will need to enable the following php extensions:


 * php_mssql.dll
 * php_mcrypt.dll
 * php_mhash.dll