Add Additional Error checking for ldap

I've also got an error key that can be added into Foreman documentation once/if this gets merged.

https://gist.github.com/4506554