Re: Why did CentOS 8.x curl drop ldap url support?

Petr Pisar via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
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@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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE4/QvzhVoMKgDWObpT9GuwzZa978FAmQIWGIACgkQT9GuwzZa
979afw/8DqOR3gU4ygLobCeyLxDO104DJL57OjshcNVevp9fJ6kX7Vef+gFzuUju
U/WjLj88xUpEo/TXhOrulgnu7zMUmTr9F51LgyfzBhnlz0OJLrFlfXb/QEe4NSXP
PDHgBqXbg95erudAcYTjar3jnAqy7ieXry3T9+azafgxVAI0K4Bmr4octi/d5h2X
W2cE62891UdOZZYgqgUfi0TwcQVE7UcoMlJKzpboIn+r+rX65j73cOHUvRwidcwf
RC+4SZN2+TJ1Jhb+xof0Pv/hWJZfmJZMP5tPJj7GKl+Uy2HFd7J1JNe8XeElA+Nu
fvocP6SEY31qF0sW7xjHmrC9Va/VDDs8DVSammH7VnAq1H5q/d+E29sa1IneG7TS
di1oqUWFgev1sIdZJsxxld/T7aPCIGLMSCXahc454/32mHxtX4cCg97RZsiLswEl
HnKOhbvcs+qZEvtZmHEsw6u3CQHO/wLQNBtkItjksqUupFzp2QDqUMIzjMV37Lhw
OiyfY4snBdnlDjyrHdAgSOop/fXpSVdKfPU8PcO7OnQa+anrECHJ6rMf/hLn9S4l
p4v54/6VoQsPZcikN0CxZPyB57/vmP4Hw1OJ/HzyFvR5IbIPtagRykmm5KhqIaLw
dWT1d5S937cmLWUYE9g00b+L7BgOGXeGpNpcplYtMHb5zomcZOo=
=SYXt
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.