(Bug 38135) Workaround a Fatal error

Change-Id: I882cd56a63ff4709a6db6e11b995c41aa14a393a
(bug 49003) Fixed password change for lowercase username

Mediawiki munges the username. When using lowercase usernames the
username provided should be converted back to lowercase before
comparing it with the username retrieved from LDAP or else it will
always fail.

Change-Id: Ic034502d2a87c32541872d01b7d7b5e9ccb2e101
Localisation updates from http://translatewiki.net.

Change-Id: Ic77761d7ca8dad8fea211d2df1a7cdf3352d87cd
Prevent searching for AD groups for non AD LDAP

Searching non AD LDAP domains for AD groups will result in many entries
in the error.log. A new setting has been added to make it easier to
differentiate between AD and posix LDAP. Default is AD to make sure
currently functionality is not changed and ensure save upgrade.

Example usage:
$wgLDAPActiveDirectory = array(
    'testADLDAPDomain' => true, 'testPosixLDAPDomain' => false
);

Change-Id: Id7eb016a3c105fa9e08592f876bd5a8726416b68
Merge "(bug 49003) Fixed password change for lowercase username"
Fix undefined offset error for AD group searches

Change-Id: I4fe2d9d73ae288c3268be2b8a56676f8efe5f101
getCanonicalName fixes and single domain stability

getCanonicalName will do an LDAP lookup for a username to munge
it to another value, to optimize this the lookup is memcached. The
caching was also improperly caching lookups for IP addresses (anon
users) which caused odd behavior.

Additionally, multiple-domain support causes a number of bugs, even
when only a single domain is used. To make the extension more
stable for single domain users, it now sets the domain
automatically if there is only a single domain set.

Change-Id: I2c6c354c84d4ab644bffc3214de5b3ee6e3fae2b
Merge "getCanonicalName fixes and single domain stability"
Remove redundant LowerCaseUsernameScheme global

There were two redundant globals that did the same thing, requiring
both to be set.

Change-Id: Iba50e473532d477020a119ecb1aaece4bdf3253a
Minor code cleanup

Change-Id: Id425b316617c38c19f2d10d23d41814a71215a60
Merge branch 'master' of https://github.com/wikimedia/mediawiki-extensions-LdapAuthentication