Local users were unable to login with the default system-wide options. This is because of the following check....

    if (!variable_get('ldap_login_process', LDAP_FIRST_LDAP)) {

where LDAP_FIRST_LDAP = 1

Problem is that, on install the default is actually LDAP_FIRST_DRUPAL, and the variable 'ldap_login_process' doesn't exist in the variables table. So unless the "System-wide options" form has been submitted, this defaults to checking only LDAP, not the expected default.

patch attatched.

CommentFileSizeAuthor
ldapauth.module_0.patch545 bytesbuchanae

Comments

anner’s picture

It appear that this leaves an unmatched {
It looks to me like perhaps you need to add a } between line 881 and 882

In addition to this, I still get the "Unrecognized username or password?" for my local users.

anner’s picture

I think this is fixed here:
http://drupal.org/node/132594

kreaper’s picture

Status: Needs review » Postponed (maintainer needs more info)

anner

This patch (submitted in http://drupal.org/node/132594) is in the HEAD. Can you download that and see ? We will be releasing 5.x-1.3 soon that will contain this fix.

kreaper

johnbarclay’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing 5.x issues to clean out issue queue.