Error when joining kubuntu 20.04 to AD

No, you shouldn’t set anything to loopback, Nethserver AD runs in a container with separate IP so loopback can’t be correct.

This is my working config

{
   "BindDN" : "ldapservice@ad.domain.tld",
   "LdapURI" : "ldaps://nsdc-server.ad.domain.tld",
   "DiscoverDcType" : "ldapuri",
   "StartTls" : "",
   "port" : 636,
   "host" : "nsdc-server.ad.domain.tld",
   "isAD" : "1",
   "isLdap" : "",
   "UserDN" : "dc=ad,dc=domain,dc=tld",
   "GroupDN" : "dc=ad,dc=domain,dc=tld",
   "BindPassword" : "...",
   "BaseDN" : "dc=ad,dc=domain,dc=tld"",
   "LdapUriDn" : "ldap:///dc%3Dad%2Cdc%3Ddomain%2Cdc%3Dlocal"
}

Here are other howtos about joining ubuntu, maybe they help: