Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap: drop support for legacy Novell LDAP SDK #16176

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Feb 5, 2025

The latest copy I could find at:
https://beta.novell.com/developer/ndk/ldap_libraries_for_c.html
is from 2016-Feb-03, available for Linux and Windows.

I built curl against the Windows package with CMake:
https://sdk.suse.com/ndk/cldap/builds/2016/openldapsdk-devel-windows64-2016-01-28.zip
(It comes with OpenSSL 1.0.1q-fips (2015-Dec-03) binaries.)
CMake identified it as OpenLDAP and built with it as expected:

curl 8.12.0-DEV (x86_64-w64-mingw32) libcurl/8.12.0-DEV Schannel OpenLDAP/2.4.37
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI threadsafe UnixSockets

Since it identified it as OpenLDAP (lib/openldap.c), the branch
deleted in this PR (lib/ldap.c) wasn't reached. Thus, defining
the CURL_HAS_NOVELL_LDAPSDK also made no difference in the build.
This suggests the code guarded by it is now orphan and unnecessary.

Novell NetWare builds were another user, but we dropped support for them
in 2022: 3b16575 #8358


Let me know if I missed something and there might still be use for this.

The latest copy I could find at:
https://beta.novell.com/developer/ndk/ldap_libraries_for_c.html

is from 2016-Feb-03, available for Linux and Windows. It comes with
`OpenSSL 1.0.1q-fips 3 Dec 2015` binaries.

I built curl against the Windows package with CMake. CMake identified it
as OpenLDAP and built it as expected:
```
curl 8.12.0-DEV (x86_64-w64-mingw32) libcurl/8.12.0-DEV Schannel OpenLDAP/2.4.37
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI threadsafe UnixSockets
```

Since it identified it as OpenLDAP (`lib/openldap.c`), the branch
deleted in this PR (`lib/ldap.c`) wasn't reached. Thus, defining
the `CURL_HAS_NOVELL_LDAPSDK` also made no difference in the build.
This suggests the code guarded by it is now orphan and unnecessary.

Novell NetWare builds were another user, but we dropped support for them
in 2022: 3b16575 curl#8358

Let me know if I missed something and there might still be used for
this.
@vszakats vszakats added build tidy-up feature-window A merge of this requires an open feature window LDAP labels Feb 5, 2025
@vszakats vszakats changed the title ldap: drop support for Novell LDAP SDK ldap: drop support for legacy Novell LDAP SDK Feb 5, 2025
@vszakats vszakats closed this in b3e12b7 Feb 6, 2025
@vszakats vszakats deleted the drop-novell-ldap branch February 6, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build feature-window A merge of this requires an open feature window LDAP tidy-up
Development

Successfully merging this pull request may close these issues.

2 participants