Skip to content

LDAP Login Plugin: Login fails when password contains ampersand (&) #15

Description

@bluecakey

If the password contains '&' you get the following error:

Warning: ldap_bind(): Unable to bind to server: Invalid credentials in usersc/plugins/ldap_login/hooks/loginFail_body.php on line 49

This appears to be a known issue with the ldap_bind function. I could only make it work using html_entity_decode on the password as suggested here: https://stackoverflow.com/questions/12858493/php-ldap-bind-fails-when-password-contains-ampersand

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions