require_once(
"$IP/extensions/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "mydomain" );
$wgLDAPServerNames = array(
"mydomain"=>"mydomain101.mydomain.local" );
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array( "mydomain"=>"clear" );
$wgLDAPSearchStrings = array(
"mydomain"=>"uid=USER-NAME,dc=mydomain,dc=local" );
Either remove $wgLDAPSearchStrings, or set it to the location where your
users reside (most likely not the base). If you have this set, it will
cause the plugin to ignore any search based options.
$wgLDAPSearchAttributes = array(
"mydomain"=>"uid" );
$wgLDAPBaseDNs = array( "mydomain"=>"dc=mydomain,dc=local" );
If you are going to do a search, it is pretty likely you'll need some
type of proxy agent to search the directory. AD, and many other
directory servers disable anonymous searching.
See:
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Proxied_or_s
earch_based_bind_options
for more information.
V/r,
Ryan Lane