curl-library
RE: LDAP
Date: Wed, 15 Aug 2007 18:48:40 +0200
Hi,
> If someone else is ready to design a patch, do not hesitate :-)
here's a first hack for ldaps:
http://www.gknw.net/test/curl/ldapssl.diff
I've tested this on NetWare against two NetWare eDir servers, and against openldap.org;
f.e.:
curl -v ldaps://ldap.openldap.org/dc=openldap,dc=org?one
returns:
* About to connect() to ldap.openldap.org port 636 (#0)
* Trying 204.152.186.57... connected
* Connected to ldap.openldap.org (204.152.186.57) port 636 (#0)
* LDAP local: ldaps://ldap.openldap.org/dc=openldap,dc=org?one
* LDAP local: trying to establish encrypted connection
DN: dc=OpenLDAP,dc=Org
* Closing connection #0
so basic functionality seems to work; however:
- cert verification not yet implemented
- Win32 not yet working with ldaps (always tells me 'server is down')
for now I've ifdef'd the stuff with HAVE_LDAP_SSL - so unless you define this the ldaps support doesnt get compiled; not sure if we need that, nor if the name HAVE_LDAP_SSL is ok....
comments please! Should I comment as base for further improvements?
Guen.
Received on 2007-08-15