Topic on Extension talk:LDAP Authentication

Xavi (talkcontribs)

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):

  1. Access the wiki: Error: 1146 Table 'wiki_db_name.wiki_db_prefix_ldap_domains' doesn't exist
  2. Change $wgMainCacheType = CACHE_NONE
  3. Access the wiki: Wiki is displayed with no error message
  4. 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
  5. Log out
  6. Log in with user1 in ldap domain: The user is logged in with no error message
  7. Log out
  8. Log in with user2 in ldap domain: Wrong credential message, the is not logged in
Reply to "LDAP "fake" log in"