The nextcloud snap instaler has support for LDAP, but does not support adding a private root cert for LDAPS
This has been raised as an issue on what appears to be the github repo https://github.com/nextcloud/nextcloud-snap/issues/775 but has had no response