Hi everybody,
I've the same problem that @iteng.jorgerodriguez .
My Dokuwiki release is: Release 2014-05-05a "Ponder Stibbons"
When I try to enable TLS for LDAP authentication,
See my configuration:
<?php
/*
* Dokuwiki's Main Configuration File - Local Settings
* Auto-generated by config plugin
* Run for user: tikok974
* Date: Thu, 20 Dec 2018 16:45:53 +0100
*/
$conf['title'] = 'Intranet';
$conf['start'] = 'Accueil';
$conf['lang'] = 'fr';
$conf['license'] = 'cc-by-sa';
$conf['useacl'] = 1;
$conf['authtype'] = 'authldap';
$conf['defaultgroup'] = 'mydomain-users';
$conf['superuser'] = '@it-admin, @it-members, it-admin';
$conf['plugin']['database2']['console'] = 1;
$conf['plugin']['database2']['enableallpages'] = 1;
$conf['plugin']['forcessllogin']['actions'] = 'register,login,admin,resendpwd,profile,edit';
$conf['plugin']['authldap']['server'] = 'ldap://myserver';
$conf['plugin']['authldap']['port'] = 686;
$conf['plugin']['authldap']['usertree'] = 'ou=People,dc=mydomain,dc=com';
$conf['plugin']['authldap']['grouptree'] = 'ou=Groups,dc=mydomain,dc=com';
$conf['plugin']['authldap']['userfilter'] = '(&(uid=%{user})(objectClass=posixAccount))';
$conf['plugin']['authldap']['groupfilter'] = '(&(objectClass=posixGroup)(|(gidNumber=%{gid})(memberUID=%{user})))';
$conf['plugin']['authldap']['version'] = 3;
$conf['plugin']['authldap']['starttls'] = 1;
$conf['plugin']['authldap']['binddn'] = 'cn=myadmin,dc=mydomain,dc=com';
$conf['plugin']['authldap']['bindpw'] = 'mypassword';
// end auto-generated content
The message displayed on the login page is as follows:
Starting TLS failed
LDAP: couldn't connect to LDAP server
However, there is a communication with my LDAP server but it seems to be closed quickly :
..
..
Dec 20 16:30:15 myldap slapd[13177]: conn=1025 fd=18 ACCEPT from IP=192.12.12.26:59366 (IP=0.0.0.0:389)
Dec 20 16:30:15 myldap slapd[13177]: conn=1025 op=0 EXT oid=1.3.6.1.4.1.1466.20037
Dec 20 16:30:15 myldap slapd[13177]: conn=1025 op=0 STARTTLS
Dec 20 16:30:15 myldap slapd[13177]: conn=1025 op=0 RESULT oid= err=0 text=
Dec 20 16:30:15 myldap slapd[13177]: conn=1025 fd=18 TLS established tls_ssf=128 ssf=128
Dec 20 16:30:15 myldap slapd[13177]: conn=1025 fd=18 closed (connection lost)
...
...
I have another server on the network that communicates perfectly in TLS with my LDAP server.
Someone would have a solution, please ?
Many thanks