[fix] check if ldap is configured before create field mapping