ShMaunder / JMapMyLDAP

LDAP Integration for Joomla! 2.5+
shmanic.com/tools/jmapmyldap
26 stars 19 forks source link

LDAP query works but can't login in v2 #43

Closed zef79 closed 9 years ago

zef79 commented 9 years ago

Hi All

Installed v1 and setup LDAP, everything worked perfectly

Disabled all plugins for v1, Setup v2, tested LDAP query with same settings as in v1, everything works, no errors and data is pulled back from LDAP in test/debug section.

Try to log into front end of server with same details and get error "Warning. Username and password do not match or you do not have an account yet."

Any ideas?

terjerosenlund commented 9 years ago

I don't know if my problem is the same but it seems related

My host configuration has LDAP V3 turned on and debug/test complains about 'Invalid Map User Id' and Invalid Map Email' but pulls all other information from ldap server (AD) When logging in I receive a (different) message that says that I do not have access to private content The result is the same on both front- and back-end

During debug I found that the username was reset inside function login() (cms.php, line 793) after calling: $authorisations = $authenticate->authorise($response, $options); (line 810)

Saving username in cms.php and restoring it after return from authorise() solved my problem but I guess it should be fixed elsewhere

kirancheema commented 9 years ago

Do you have the Authentication Plugin turned on?

kirancheema commented 9 years ago

@terjerosenlund did you try re-ordering The Joomla user Plugins?

zef79 commented 9 years ago

I actually got it working After disabling v1 and then re-enabling v2, it started working there last week, even though i didnt change anything, very odd