There seems to be an issue with LDAP authentication when the user's password contains special characters. The one I have diagnosed thus far contained the greater than character ">". LDAP authentication would report bad username or password. Changed Windows password and removed the ">" character and LDAP then succeeded.
Can this be fixed?
EFA version 3.0.1.0
LDAP authentication fails on passwords with ">" character
Re: LDAP authentication fails on passwords with ">" character
There is also an issue if you use a ">" character in passwords for users in the internal database.
Ampersand (&) is another which won't authenticate via LDAP...
Ampersand (&) is another which won't authenticate via LDAP...
- shawniverson
- Posts: 3650
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: LDAP authentication fails on passwords with ">" character
I've just fixed the problem.
In the ldap_authenticate function in /var/www/html/mailscanner/functions .php changeto
Is this a MailWatch bug?
In the ldap_authenticate function in /var/www/html/mailscanner/functions .php change
Code: Select all
if (ldap_bind($ds, $user, "$password")) {
Code: Select all
if (ldap_bind($ds, $user, html_entity_decode($password))) {