curl / Mailing Lists / curl-users / Single Mail
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: LDAP, netrc, username with space

From: Dan Fandrich via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 19 Jun 2019 18:50:14 +0200

On Wed, Jun 19, 2019 at 02:12:07PM +0000, Timothy Hobbs via curl-users wrote:
> I have a situation attempting to use a netrc file with LDAP/S protocol and cannot find clear documentation.
>
> Two questions:
> 1) Should a netrc file be usable with the LDAP protocol?

Not sure, but I imagine it should.

> 2) Should a username with a space function normally, or is there quoting or escaping required?

There's no standard way to represent a space in a password or username in an
netrc file, and curl doesn't support it. Some programs support embedded spaces
within quoted strings, but that's not universal. It's probably worthwhile for
curl to support that, too, but there's a backwards-compatibility issue there; a
user with a password that started with a double quote character (and no space)
would have problems using two different applications, one that supported
quoting and one that didn't, since they would treat that password differently.
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-06-19