templatize ldap_enable