I wrote a few lines in auth_ldap.inc to find the dn for
a user. At the moment this is hard coded:
$dn = "cn=" . $user . "," . $ldap_base_dn[$i];
I use uid=... for user accounts at my site. The patch
included does an anonymous bind first, tries to find
the dn for the user and the binds to it with $pass.
Everything else works like a charm. I can use a remote
ldap server and mysql database server.