Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Why did CentOS 8.x curl drop ldap url support?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Petr Pisar via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 8 Mar 2023 10:41:59 +0100
V Tue, Mar 07, 2023 at 01:35:16PM -0600, Jamshid Afshar via curl-users napsal(a):
> Experimenting with "docker run -ti rockylinux:9 bash":
>
> Have to use new flag --allowerasing to replace minimal curl.
> # yum install --allowerasing curl
>
If you want to replace a package with another package, use "swap" command:
# dnf swap curl-minimal curl-full
"install" command prevents from removing packages by design.
> Even then the ldap protocol is not supported. Installing curl-full
> doesn't help, it's already installed.
> [root_at_256e44eab125 /]# curl ldap://host.docker.internal:389
> curl: (1) Protocol "ldap" not supported or disabled in libcurl
>
Because "curl" and "curl-minimal" only contain /usr/bin/curl tool. Not curl
library. The tool relies on the library which implements the various
protocols. It's libcurl-full/libcurl-minial what matters:
# rpm -qa | grep curl
python3-pycurl-7.43.0.6-8.el9.x86_64
libcurl-7.76.1-23.el9.x86_64
curl-minimal-7.76.1-23.el9.x86_64
# curl --version | grep ldap
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
# dnf swap libcurl-full libcurl-minimal
[...]
# rpm -qa | grep curl
python3-pycurl-7.43.0.6-8.el9.x86_64
libcurl-minimal-7.76.1-23.el9.x86_64
curl-minimal-7.76.1-14.el9.x86_64
# curl --version | grep ldap
-- Petr
Received on 2023-03-08
Date: Wed, 8 Mar 2023 10:41:59 +0100
V Tue, Mar 07, 2023 at 01:35:16PM -0600, Jamshid Afshar via curl-users napsal(a):
> Experimenting with "docker run -ti rockylinux:9 bash":
>
> Have to use new flag --allowerasing to replace minimal curl.
> # yum install --allowerasing curl
>
If you want to replace a package with another package, use "swap" command:
# dnf swap curl-minimal curl-full
"install" command prevents from removing packages by design.
> Even then the ldap protocol is not supported. Installing curl-full
> doesn't help, it's already installed.
> [root_at_256e44eab125 /]# curl ldap://host.docker.internal:389
> curl: (1) Protocol "ldap" not supported or disabled in libcurl
>
Because "curl" and "curl-minimal" only contain /usr/bin/curl tool. Not curl
library. The tool relies on the library which implements the various
protocols. It's libcurl-full/libcurl-minial what matters:
# rpm -qa | grep curl
python3-pycurl-7.43.0.6-8.el9.x86_64
libcurl-7.76.1-23.el9.x86_64
curl-minimal-7.76.1-23.el9.x86_64
# curl --version | grep ldap
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
# dnf swap libcurl-full libcurl-minimal
[...]
# rpm -qa | grep curl
python3-pycurl-7.43.0.6-8.el9.x86_64
libcurl-minimal-7.76.1-23.el9.x86_64
curl-minimal-7.76.1-14.el9.x86_64
# curl --version | grep ldap
-- Petr
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.html
- application/pgp-signature attachment: signature.asc