actually enable ldap if it ldap_engine is on