Module: kamailio
Branch: 6.1
Commit: 43014286810a7777dd6cedb61586056861c3ff2a
URL: 
https://github.com/kamailio/kamailio/commit/43014286810a7777dd6cedb61586056861c3ff2a

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-03-04T17:25:48+01:00

db2_ldap: cmake - define OPENLDAP23

(cherry picked from commit 88df34e4aa711140f63dfec6db1d185459fdd1aa)

---

Modified: src/modules/db2_ldap/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/43014286810a7777dd6cedb61586056861c3ff2a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/43014286810a7777dd6cedb61586056861c3ff2a.patch

---

diff --git a/src/modules/db2_ldap/CMakeLists.txt 
b/src/modules/db2_ldap/CMakeLists.txt
index f948c5bc172..eddf39f6b88 100644
--- a/src/modules/db2_ldap/CMakeLists.txt
+++ b/src/modules/db2_ldap/CMakeLists.txt
@@ -11,6 +11,6 @@ add_library(libsasl2::libsasl2 ALIAS PkgConfig::libsasl2)
 find_package(Ldap REQUIRED)
 
 # LDAP_DEPRECATED is required for LDAP support else it will throw compile error
-target_compile_definitions(${module_name} PRIVATE LDAP_DEPRECATED)
+target_compile_definitions(${module_name} PRIVATE OPENLDAP23 LDAP_DEPRECATED)
 target_include_directories(${module_name} PRIVATE ${Ldap_INCLUDE_DIRS})
 target_link_libraries(${module_name} PRIVATE ${LDAP_LIBRARIES} 
libsasl2::libsasl2)

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to