FS#54653 - [curl] Enable LDAP support

Attached to Project: Arch Linux
Opened by Anderson Medeiros Gomes (amg1127) - Friday, 30 June 2017, 17:51 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:23 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Leonidas Spyropoulos (inglor)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I wish to use CURL to test LDAP URL's I wrote according to RFC 4516.

A page named "curl as an LDAP Client" [1] says LDAP URL's are supported by CURL, however PKGBUILD [2] explicitly disables the support using compilation flags "--disable-ldap" and "--disable-ldaps" .

[1] http://whataniceblogtitle.blogspot.com.br/2014/03/curl-as-ldap-client.html
[2] https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/curl


Additional info:
* package version(s) : curl 7.54.1-1
* config and/or log files etc : (not applicable)


Steps to reproduce:

$ LDAPHOST='some.ldaphost.local' # Specify a Microsoft AD DS Domain or a OpenLDAP server here
$ LDAPBASE='DC=some,DC=ldaphost,DC=local' # Specify the LDAP base here
$ curl "ldap://${LDAPHOST}/${LDAPBASE}?dn,objectclass?sub?(objectClass=user)"
curl: (1) Protocol "ldap" not supported or disabled in libcurl
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:23 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/curl/issues/2
Comment by Dave Reisner (falconindy) - Saturday, 05 January 2019, 16:34 GMT
Is there any reason why this is better than ldapsearch which is provided with the openldap package? Doesn't seem like there's a lot of interest beyond this bug report for supporting LDAP queries in curl.
Comment by Anderson Medeiros Gomes (amg1127) - Saturday, 05 January 2019, 19:57 GMT
I would prefer "curl" to "ldapsearch" in order to handle LDAP URL's provided by a third-party, for example. "ldapsearch" is unable to handle them directly:

$ LDAPURI='ldap://contoso.corp/dc=contoso,dc=corp?userCertificate?sub?(sAMAccountName=alice)'

$ ldapsearch -x -D 'alice@contoso.corp' -W -H "${LDAPURI}"
Could not parse LDAP URI(s)=ldap://contoso.corp/dc=contoso,dc=corp?userCertificate?sub?(sAMAccountName=alice) (3)
Comment by Ben Kallus (bkallus) - Friday, 17 March 2023, 00:48 GMT
I would also benefit from having ldap support enabled. Is this fix as simple as just removing those two flags?
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by semper victus (rageltman) - Wednesday, 25 October 2023, 03:49 GMT
Lack of LDAP support breaks URBackup LDAP integration as it relies on CURL for the function.

Loading...