I am describing a situation where LDAP Authentication wrongly seems to log in a user through the LDAP domain.
Initial setup:
- One local user: user1 (who has logged in at least once in the wiki)
- Two ldap users: user1 and user2
- $wgMainCacheType = CACHE_ACCEL
- Local user1 and ldap user1 have the same password
After installing LDAP Authentication with $wgLDAPUseLocal = true; and before running maintenance/update.php (or creating /*_*/ldap_domains manually):
- Access the wiki: Error: 1146 Table 'wiki_db_name.wiki_db_prefix_ldap_domains' doesn't exist
- Change $wgMainCacheType = CACHE_NONE
- Access the wiki: Wiki is displayed with no error message
- Log in with user1 in local domain: Error: 1146 Table 'wiki_db_name.wiki_db_prefix_ldap_domains' doesn't exist but the user is logged in
- Log out
- Log in with user1 in ldap domain: The user is logged in with no error message
- Log out
- Log in with user2 in ldap domain: Wrong credential message, the is not logged in