Added dbg_error_log() calls for error msgs

If the ldap driver is not valid, the error messages were not printed.
There was just "Couldn't contact LDAP server for authentication" - But
why?

This commit adds a print loop for all messages from the global
$c->messages message array.

---

Notice: I wasn't able to test the code, yet. But at my experimental system of davical, it worked.