Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-8492

LDAP auth on login fails when binddn has html escaped chars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.6
    • 3.0.5
    • Authentication
    • None
    • PHP Environment: 4.3.9-3.26
      Database: PostgreSQL 7.4.19-1.el4_6.1

      The ldap bind is ok on the auth config page in ACP, but login fails without an error message.

      Here is the fix:
      diff includes/auth/auth_ldap.php includes/auth/auth_ldap.php.orig
      155c155
      < if (!@ldap_bind($ldap, htmlspecialchars_decode($config['ldap_user']), htmlspecialchars_decode($config['ldap_password'])))

      > if (!@ldap_bind($ldap, $config['ldap_user'], htmlspecialchars_decode($config['ldap_password'])))

      Following DRY this line of code should be moved in a function.

            ToonArmy Chris Smith
            abraxxa abraxxa [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: