Can connect the ldap server,but can not login in with the ldap user

Try reading this first. I had a lot of trouble with LDAP (on Windows AD), but this discussion helped.