You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fresh install of a Univention Corporate Server backup domain controller, added signed certs via acme.sh/Letsencrypt, and installed NC via the App Center.
Subsequent running of the univention-run-join-scripts 50nextcloud.inst results in a cURL 60 error.
Without a successful join, users are unable to log in via SSO/SAML.
Notes regarding the issue
I've stepped through this process two different times.
First, a successful condition for installation:
After completing a successful installation of the UCS server, immediately running the App Center installation of NC Hub completes the join phase successfully.
Second, a failed condition for installation:
post successful installation, completing the addition of signed certs for the FQDN + SSO tldr causes the subsequent installation of NC to fail at the join phase.
Hacked work-around
In order to complete the join phase of the installation, the function nextcloud_curl() in 50nextcloud.inst was modified to change the curl flag from -s to -k result=$(curl -k "$@") The -k flag tells curl to ignore error raised from a self-signed certificate.
Steps to reproduce
Fresh install of a Univention Corporate Server backup domain controller, add signed certs via acme.sh/Letsencrypt, and install NC via the App Center.
In the Univention Portal, check the Domain Join page. Note the 50nextcloud step shows 'pending' status.
Further review /var/log/univention/join.log for details of the failure. In my case:
curl failed with error 60, parameters were\n\t-X POST -H OCS-APIREQUEST: true -u nc_admin:snip>sniphttps://FQDN/nextcloud/ocs/v2.php/apps/user_ldap/api/v1/config
Failed to request an LDAP config id from Nextcloud
EXITCODE=1
Expected behavior
The expected behavior would account for updates from self-signed certificates to signed certificates within the installation phase of the NC container in order to permit a successful join phase.
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
My gut feeling is that there was something wrong when issueing the new certificates. Maybe they were not populated everywhere, or the LDAP service has not been reloaded?
Possibly. I don't know which cert is being pulled by curl during the check phase or how a self-signed cert is successfully verified but signed certs give an error. The error occurs after a full system restart as well, so presumably LDAP services would be reloaded.
Bug description
Overview
Fresh install of a Univention Corporate Server backup domain controller, added signed certs via acme.sh/Letsencrypt, and installed NC via the App Center.
Subsequent running of the univention-run-join-scripts 50nextcloud.inst results in a cURL 60 error.
Without a successful join, users are unable to log in via SSO/SAML.
Notes regarding the issue
I've stepped through this process two different times.
First, a successful condition for installation:
Second, a failed condition for installation:
Hacked work-around
In order to complete the join phase of the installation, the function
nextcloud_curl()
in 50nextcloud.inst was modified to change the curl flag from -s to -kresult=$(curl -k "$@")
The -k flag tells curl to ignore error raised from a self-signed certificate.Steps to reproduce
curl failed with error 60, parameters were\n\t-X POST -H OCS-APIREQUEST: true -u nc_admin:snip>sniphttps://FQDN/nextcloud/ocs/v2.php/apps/user_ldap/api/v1/config
Failed to request an LDAP config id from Nextcloud
EXITCODE=1
Expected behavior
The expected behavior would account for updates from self-signed certificates to signed certificates within the installation phase of the NC container in order to permit a successful join phase.
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
{
"system": {
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"ucs-ad.domain.com",
"reveille.domain.com"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"dbtype": "pgsql",
"version": "28.0.7.4",
"overwrite.cli.url": "https://reveille.domain.com/nextcloud",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"instanceid": "REMOVED SENSITIVE VALUE",
"updatechecker": false,
"upgrade.disable-web": true,
"memcache.local": "\OC\Memcache\APCu",
"overwriteprotocol": "https",
"overwritewbroot": "/nextcloud",
"htaccess.RewriteBase": "/nextcloud",
"ldapProviderFactory": "OCA\User_LDAP\LDAPProviderFactory",
"trusted_proxies": "REMOVED SENSITIVE VALUE",
"one-click-instance": true,
"one-click-instance.user-limit": 500,
"one-click-instance.link": "https://nextcloud.com/univention/"
}
}
List of activated Apps
Enabled:
Disabled:
Nextcloud Signing status
no errors have been found
Nextcloud Logs
Cleared the log file post join. No data available.
Additional info
No response
The text was updated successfully, but these errors were encountered: