How do I use my validator in the plugin?

placed the file in the discourse/lib/validators/ldap_setting_validator.rband it worked,

 forum_ldap_validation:
    default: 'system'
    validator: 'LdapSettingValidator'   

how to make the code work from the plugin?