View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 20030 | Bug reports | Survey participants (Tokens) | public | 2025-03-21 11:42 | 2025-04-08 13:30 | 
| Reporter | ccoupeau | Assigned To | tibor.pacalat | ||
| Priority | none | Severity | block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 6.6.x | ||||
| Summary | 20030: Import LDAP - Can't connect LDAP Server with ldapv3 and ldaps | ||||
| Description | Hello, Since the patch Fixed in Release 6.10.3+250203 I am still forced to modify the ldap_getCnx function like this (helpers/ldap_helper.php) by cordially | ||||
| Steps To Reproduce | Steps to reproduce(Replace this text with detailed step-by-step instructions on how to reproduce the issue) Expected result(Write here what you expected to happen) Actual result(Write here what happened instead) | ||||
| Tags | No tags attached. | ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 6.12.0 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Chrome, Firefox, Opera | ||||
| Database type & version | MySQL8 | ||||
| Server OS (if known) | Rocky Linux 9 | ||||
| Webserver software & version (if known) | Apache/2.4.62 | ||||
| PHP Version | 8.2.28 | ||||
| related to | 19856 | closed | DenisChenu | Import LDAP - error 500 - ldap_set_option | 
| Please : your exact settings | |
| This follows the bug: 19856 $serverId=0; | |
| Can you test with It's the way to do, looking at code : i think it don't work, but please : test and return the issue. | |
| absolutely, after testing with ['encrypt'] = 'ldaps' it doesn't work | |
| @ccoupeau : can you test https://github.com/LimeSurvey/LimeSurvey/pull/4217 with  What's happen; no condition met for encrypt == ldaps and protoversion == ldapv3 | |
| With $ldap_server[$serverId]['encrypt'] = 'ldaps'; and protoversion == ldapv3 I have this error : Erreur: Ne peut se connecter à l’annuaire LDAP The only solution for me is : $ds = ldap_connect("ldaps://" " . "{$ldap_server[$server_id]['server']}:{$ldap_server[$server_id]['port']}"); $ldap_server[$serverId]['server'] = "ldap.domain"; | |
| But ? Then if you set  $ldap_server[$serverId]['encrypt'] = "ldaps"; Why it don't happen for you ? | |
| You need to apply patch manually : just replace whole function With $ldap_server[$serverId]['encrypt'] = "ldap"; There are no reason this part don't happen | |
| With $ldap_server[$serverId]['encrypt'] = "ldaps"; and apply patch manually, LDAP import works. | |
| OK ! | |
| Already tested by reporter :) | |
| Fixed in Release 6.12.4+250408 | |
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2025-03-21 11:42 | ccoupeau | New Issue | |
| 2025-03-21 11:57 | DenisChenu | Assigned To | => DenisChenu | 
| 2025-03-21 11:57 | DenisChenu | Status | new => assigned | 
| 2025-03-21 11:58 | DenisChenu | Note Added: 82304 | |
| 2025-03-21 11:58 | DenisChenu | Bug heat | 0 => 2 | 
| 2025-03-21 13:54 | ccoupeau | Note Added: 82305 | |
| 2025-03-21 13:54 | ccoupeau | Bug heat | 2 => 4 | 
| 2025-03-21 15:07 | DenisChenu | Note Added: 82307 | |
| 2025-03-21 16:04 | ccoupeau | Note Added: 82308 | |
| 2025-03-26 09:56 | DenisChenu | Relationship added | related to 19856 | 
| 2025-03-26 12:14 | DenisChenu | Summary | Import LDAP - Can't connect LDAP Server => Import LDAP - Can't connect LDAP Server with ldapv3 and ldaps | 
| 2025-03-26 12:18 | DenisChenu | Note Added: 82330 | |
| 2025-03-27 19:58 | DenisChenu | Assigned To | DenisChenu => gabrieljenik | 
| 2025-03-27 19:58 | DenisChenu | Status | assigned => ready for code review | 
| 2025-03-28 11:30 | ccoupeau | Note Added: 82341 | |
| 2025-03-28 11:35 | DenisChenu | Note Added: 82342 | |
| 2025-03-28 11:37 | DenisChenu | Note Added: 82343 | |
| 2025-03-31 10:50 | ccoupeau | Note Added: 82346 | |
| 2025-04-01 09:49 | DenisChenu | Note Added: 82355 | |
| 2025-04-01 09:49 | DenisChenu | Assigned To | gabrieljenik => tibor.pacalat | 
| 2025-04-01 09:49 | DenisChenu | Status | ready for code review => in testing | 
| 2025-04-01 09:49 | DenisChenu | Note Added: 82356 | |
| 2025-04-01 15:04 | tibor.pacalat | Status | in testing => resolved | 
| 2025-04-01 15:04 | tibor.pacalat | Resolution | open => fixed | 
| 2025-04-08 13:30 | LimeBot | Note Added: 82392 | |
| 2025-04-08 13:30 | LimeBot | Status | resolved => closed | 
| 2025-04-08 13:30 | LimeBot | Bug heat | 4 => 6 | 


