Anonymous binding to LDAP servers for read-only access
does not work in every case, e.g. where such access is
switched off for security purposes.
The configuration settings for LDAP are not passed
through to the LDAP authentication module, and the
module would not use them even if passed through.
I have patched:
lib/userslib.php
lib/pear/Auth/Container/LDAP.php
to account for this.
A patch is attached.
LDAP authentication patch