Hi Richard,
Just a heads up, I found some other issues down the line with stw4, especially when it came to performance as the wiki grows.
I ended up migrating to another wiki :(
But answering to your question about AD, try adding the following settings to your web.config.
First, you must have a provider for users. It has to come before the setting for the Active Directory provider.
In the following example I stored the users in SQL.
Also put the plugin dll in the bin folder.
Note that you have to use a line break to separate the AD settings in config. For example, GroupMap is separated by a break from the Domain on the configuration.
I hope this helps.
Configurations for authentication on Active Directory:
<!-- Multiple UsersStorageProvider are allowed and only one of them must have the isDefault=true attribute. -->
<add name="ScrewTurn.Wiki.Plugins.SqlServer.SqlServerUsersStorageProvider" assembly="SqlServerProviders" config="Data Source=SERVERNAME;Initial Catalog=DATABASE;User ID=USERNAME;Password=PASSWORD;" isDefault="false" />
<add name="ScrewTurn.Wiki.Plugins.ActiveDirectory.ActiveDirectoryProvider" assembly="ActiveDirectoryProvider" config="GroupMap=Users:Users
Domain=DOMAINNAME" isDefault="true" />