Nextcloud version : 16.0.1
Operating system and version : Centos 7
Apache or nginx version : Apache 2.4.6
PHP version: PHP 7.3.5
The issue you are facing:
Can’t connect to LDAP server.
Is this the first time you’ve seen this error? : Y
Steps to replicate it:
The output of your Nextcloud log in Admin > Logging:
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
'instanceid' => 'ocyn0002xb5m',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => 'cloud.my.server',
),
'datadirectory' => '/nextcloud/data',
'dbtype' => 'mysql',
'version' => '16.0.1.1',
'overwrite.cli.url' => 'https://cloud.my.server',
'htaccess.RewriteBase' => '/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'pass',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'cloud',
'mail_domain' => 'my.server',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => 'mail',
'mail_smtpport' => '587',
'mail_smtpname' => 'sender',
'mail_smtppassword' => 'pass',
The output of your Apache/nginx/system log in /var/log/____
:
LDAP requires TLS connection. I have LDAP Server Certificate installed in OS /etc/openldap/ldap.conf
I can succesfully bind to LDAP using ldapsearch from OS. When try to check nextcloud web interface ldap configuration log at LDAP server keep saying:
May 29 08:44:08 ldap slapd[13005]: conn=10438 fd=64 ACCEPT from IP=XXX.XXX.XXX.XXX:53358 (IP=0.0.0.0:636)
May 29 08:44:08 ldap slapd[13005]: conn=10438 fd=64 closed (TLS negotiation failure)
Have no clue yet…