cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] OpenLDAP support

From: Howard Chu <hyc_at_highlandsun.com>
Date: Sat, 08 May 2010 01:21:42 -0700

Howard Chu wrote:
> Fixed the email Subject. Cleaned up some loose ends in the previous post.
>
> I'm a bit puzzled why the existing code prints an extra blank line between
> attributes; I've preserved that behavior here.
>
> However I've changed the treatment of binary values - they now get printed
> with a double-colon, as in normal LDIF. And I've added code to detect
> non-printable characters in other attribute values as well. Possibly that
> check isn't wanted here, but I'm really not sure how people are using this. It
> clearly wasn't strictly LDIF-compliant before, but I don't see how it could
> have been used safely without proper base64 encoding of other values.

Forgot to enable SSL in the previous patch. This uses whatever SSL support was
built into libldap. The other possibility is to install a custom set of I/O
routines into the LDAP session and point them at libcurl's SSL functions
instead. (Hurray for modular I/O ... ;)

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-05-08