]> git.ipfire.org Git - thirdparty/curl.git/commit
ldap: improve detection of Apple LDAP
authorViktor Szakats <commit@vsz.me>
Fri, 5 Dec 2025 11:43:37 +0000 (12:43 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 5 Dec 2025 12:16:07 +0000 (13:16 +0100)
commit2d6ade19fc4261e22e9d32a00bf60eabb8694bcb
treef1d5a05f5d632cba683780e02272d8fa3d7bc3e8
parent8d9aa6d6e12cb35b074dd66da454795c8808a41b
ldap: improve detection of Apple LDAP

When detecting the Apple fork of "legacy" LDAP, replace the `__APPLE__`
macro (which can be present also when using an old mainline OpenLDAP
while building for an Apple platform) with `LDAP_OPT_X_TLS_PASSPHRASE`
which is an Apple-specific macro, merged by Apple in 2007, later adding
the comment 'Apple Specific code'. This macro hasn't been retrofitted
to OpenLDAP since then, and unlikely to happen in the future.

Refs:
https://github.com/apple-oss-distributions/OpenLDAP/commit/c4d990a6cfa0cb71d6dffe6f6aeeb722fd7c627b#diff-0f7a5f85bae4de860b70aabf34aa12b0ecc37e748cd96e203e2d8ddb30a207c3R145
https://github.com/apple-oss-distributions/OpenLDAP/commit/49ac28a486d72f36cd9713b41180b41d34f18ef6#diff-0f7a5f85bae4de860b70aabf34aa12b0ecc37e748cd96e203e2d8ddb30a207c3R166

Follow-up to 859ce48de12986f5bf846c2800dacab893ff12c1 #19832
Closes #19849
lib/ldap.c