aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
AgeCommit message (Collapse)Author
2006-04-26Use the HAVE_MALLOC_H and HAVE_PROCESS_H definesGisle Vanem
(more logical).
2006-04-08curl_easy_unescape() takes 4 arguments.Gisle Vanem
2006-04-07First commit of David McCreedy's EBCDIC and TPF changes.Daniel Stenberg
2005-12-18Cleanup windows header includes. Where aplicable, inclusion ofYang Tse
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
2005-11-01Use an empty '*mod_name'.Gisle Vanem
2005-10-31Vilmos Nebehaj improved libcurl's LDAP abilities:Daniel Stenberg
The LDAP code in libcurl can't handle LDAP servers of LDAPv3 nor binary attributes in LDAP objects. So, I made a quick patch to address these problems. The solution is simple: if we connect to an LDAP server, first try LDAPv3 (which is the preferred protocol as of now) and then fall back to LDAPv2. In case of binary attributes, we first convert them to base64, just like the openldap client does. It uses ldap_get_values_len() instead of ldap_get_values() to be able to retrieve binary attributes correctly. I defined the necessary LDAP macros in lib/ldap.c to be able to compile libcurl without the presence of libldap
2005-03-11Fixed LDAP library file name bug (KNOWN_BUGS #1). configure now auto-detectsDan Fandrich
the correct dynamic library names by default, and provides override switches --with-ldap-lib, --with-lber-lib and --without-lber-lib. Added CURL_DISABLE_LDAP to platform-specific config files to disable LDAP support on those platforms that probably don't have dynamic OpenLDAP libraries available to avoid compile errors.
2005-02-09Set 'bits.close' in case of malloc fail.Gisle Vanem
Don't free 'lud_dn' twice in case curl_unescape() fails.
2005-02-09FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg
The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
2004-12-17Fix calling convention of wlap32.dll function. WatcomGisle Vanem
uses fastcall by default, so force cdecl.
2004-12-14Only declare static variables if they're needed. Fixed some compile warnings.Dan Fandrich
2004-11-02Paul Nolan fix to make libcurl build nicely on Windows CEDaniel Stenberg
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-09-26Ben Greear's minor fix to build (better) with cross-compiled(?) mingwDaniel Stenberg
2004-09-22jean-claude Chauve fixed an LDAP bugDaniel Stenberg
2004-07-04typecast long => int conversionDaniel Stenberg
2004-05-13Gisle: minor fixDaniel Stenberg
2004-05-11curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg
memory.h is included everywhere for this.
2004-05-06unused variable removedDaniel Stenberg
2004-05-05Joe Halpin fixed the warning on the typecast from data pointer to functionDaniel Stenberg
pointer!
2004-05-03Gisle fixed the problem with ldap_search_s() fails with "filter error": a caseDaniel Stenberg
of using 'lud_filter' after freeing 'lud_dn'.
2004-05-03Gisle Vanem:Daniel Stenberg
Patch for ldap.c under Windows. It works with wldap32.dll as supplied with Win-98/ME/2000/XP, so no extra .dlls are required. I've mostly tested it against Verisign's ldap server. Added code in the case there are to many responses (rc = LDAP_SIZELIMIT_EXCEEDED) and print only those we got. E.g. curl ldap://directory.verisign.net/?cn,display-name,mail,info?subtree?(cn=*Nelson*) will print the first 10 results. My only problem with it is that ldap_search_s() fails with "filter error" when CURLDEBUG is defined ?! Maybe someone can spot the error.
2004-04-27Made host name and proxy name get stored in a 'struct hostname' and setDaniel Stenberg
all things up to work with encoded host names internally, as well as keeping 'display names' to show in debug messages. IDN resolves work for me now using ipv6, ipv4 and ares resolving. Even cookies on IDN sites seem to do right.
2004-02-12removed the ldaptext variable, it was only set and never usedDaniel Stenberg
2004-02-06Make sure DynaGetFunction() returns a function pointer, not a data pointer.Daniel Stenberg
The standards don't actually allow typecasts between data and functions so some picky compilers warn about this.
2004-01-29Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg
warnings. Minor edits by me.
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-09-01Henrik Storner's update to make libcurl work with OpenLDAP 2.1.22 (current).Daniel Stenberg
Also reported to work with OpenLDAP 2.0.26.
2003-07-19Access the user and passwd fields from the connectdata struct now insteadDaniel Stenberg
of the sessionhandle struct, as that was not good.
2003-07-01Gisle Vanem found a lib handle leak in the ldap codeDaniel Stenberg
2003-01-29removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg
way for emacs, and vim users should provide a similar non-polluting style
2003-01-16copyright year update in the source headerDaniel Stenberg
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-06-12kris@freebsd.org fixed a bad format stringDaniel Stenberg
2002-06-11added disable-[protocol] support, largely provided by Miklos NemethDaniel Stenberg
2002-03-19copyright string (year) updateDaniel Stenberg
2001-11-07adjusted after Ramana Mokkapati's commentsDaniel Stenberg
2001-11-05Ramana Mokkapati did some good bug hunting, and we these fixes ldap transfersDaniel Stenberg
should work a lot better!
2001-10-25bug report #474568 -Daniel Stenberg
We need to set "no further data to download" before the Curl_ldap() function returns, as otherwise it'll hang on that assumed transfer.
2001-10-11looks nicer and is better compatible with older vim versionsSterling Hughes
2001-09-07Added formatting sections for emacs and vimSterling Hughes
2001-08-30Major rename and redesign of the internal "backbone" structs. Details willDaniel Stenberg
be posted in a minute to the libcurl list.
2001-08-14const-ified the code, removed Curl_ldap_done()Daniel Stenberg
2001-02-20multiple connection support initial commitDaniel Stenberg
2001-01-05Internal symbols that aren't static are now prefixed with 'Curl_'Daniel Stenberg
2001-01-03dual-license fixDaniel Stenberg
2000-11-22uses client_write()Daniel Stenberg
2000-08-24#include "setup.h" moved first of all includesDaniel Stenberg
2000-06-20haxx.nu => haxx.seDaniel Stenberg
2000-05-22oopsDaniel Stenberg