System version: NethServer release 7.4.1708 (Final)
Kernel release: 3.10.0-693.21.1.el7.x86_64
Module: Active Directory
Hey support! ^^
I’d like to connect an external NextCloud server to the NethServer it’s Active Directory LDAP listener but I got the message that a more secure connection should used.
I can seem to connect with Apache Directory Studio to both ldap (389) and ldaps (636). But when I try to connect NextCloud with ldap, it doesn’t seem to make the connection and produces the following error messages:
- Warning: user_ldap Configuration Error (prefix ): login filter does not contain %uid place holder.
- Warning: user_ldap Configuration Error (prefix ): Not a single Base DN given.
When I do the same with ldaps, these errors get produced:
- Error: ldap_bind(): Unable to bind to server: Can’t contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#293
- Error: ldap_bind(): Unable to bind to server: Can’t contact LDAP server at /var/www/html/apps/user_ldap/lib/LDAP.php#293
I checked with openssl what the certificates are saying, perhaps there is a problem with presenting a valid tls certificate. What I found was a certificate made by Samba itself. So this might explain why NextCloud can’t make a successful connection to the ldap listener on the ldaps port.
I added the following lines in /var/lib/machines/nsdc/etc/samba/smb.conf.includes but this does not seem to have changed much.
tls enabled = yes
tls keyfile = /etc/ssl/vixada/certs/monfig.ldb-beheer.lan.key
tls certfile = /etc/ssl/vixada/certs/monfig.ldb-beheer.lan.crt
tls cafile = /etc/ssl/vixada/certs/monfig.ldb-beheer.lan.ca.crt
What are the things I need to do, so I can complete my task of connection an external NextCloud server to a NethServer with the result of being able to login to NextCloud with the ldap user accounts?
Kind regards,
Jens Kuipers