Standardise debugging in rlm_ldap and rlm_cache