VALIDATOR_LDAP: Fix warnings during compilation

This patch fixes two compilation warnings in the LDAP validator.

I'm not happy about the first of the two hunks, but without local LDAP services I can't test a deeper change at this time.