Hello Community
I am challenging myself setting up LDAPS on my NC environment. While regular LDAP (389) is working perfectly, I am having trouble getting LDAPS to work with a Windows Server 2016 domain controller.
Nextcloud Version: 18.0.4
LDAP App: LDAP user and group backend 1.8.0
Nextcloud System: Ubuntu Linux 20.04 LTS
LDAPS Server: Windows Server 2016 DC
Unfortunately I did not find a working manual here in the forum. The solution provided by @Ascendancer and @leonardpin did not work for me.
-
On the Windows Server 2016 DC I’ve checked if LDAPS is working:
-
On Windows Server 2016 DC I exported the machine certificate without private key to Base-64 encoded mydccert.CER
-
I’ve copied certificate mydccert.CER to /etc/ssl/cert/ on the Ubuntu 20.04 LTS server
-
I copied the text from mydccert.CER (including -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----) to the end of the existing file ca-certificates.crt under /etc/ssl/cert/
After these steps I am not able to authenticate an LDAP user via LDAPS on port 636. Error in the configuration is displayed.
Any help is highly appreciated.