by Emma Richardson.
So, just to clarify. If the user is created in Moodle and set to LDAP, they can log in. However, if the user is only in LDAP, then the login fails.
This tells me that your LDAP plugin is not configured correctly and that you are not connecting all the way. Go back to your LDAP auth settings. Until you can log in with an LDAP account that has not been created on Moodle, these settings are not working correctly. If you want to post your settings here, we can help you trouble shoot them.