what is the pretty function and the validate function in OpenLDAP?