MDL-39376: Implemented optimized setting for enrol/ldap and
enrol/database
MDL-39376: Added lib file