aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
AgeCommit message (Collapse)Author
2008-10-16Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper functionDaniel Stenberg
used in strequal.c so now all test cases run fine for me again.
2008-10-15- Pascal Terjan filed bug #2154627Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=2154627) which pointed out that libcurl uses strcasecmp() in multiple places where it causes failures when the Turkish locale is used. This is because 'i' and 'I' isn't the same letter so strcasecmp() on those letters are different in Turkish than in English (or just about all other languages). I thus introduced a totally new internal function in libcurl (called Curl_ascii_equal) for doing case insentive comparisons for english-(ascii?) style strings that thus will make "file" and "FILE" match even if the Turkish locale is selected.
2008-08-17libcurl internal base64.h header file renamed to curl_base64.hYang Tse
2007-11-24reqdata doesn't exist anymore and the path moved to the UrlState structDaniel Stenberg
2007-11-05removed space after if and while before the parenthesis for better source codeDaniel Stenberg
consistency
2007-10-17We use this ZERO_NULL to avoid picky compiler warnings,Yang Tse
when assigning a NULL pointer to a function pointer var.
2007-10-12Added per-protocol callback static tables, replacing callback ptr storagePatrick Monnerat
in the connectdata structure by a single handler table ptr.
2007-10-09lber.h needs to be included since ldap.h might not include itYang Tse
2007-10-09added check for MSVC6 standard PSDK and bail out since insufficient for LDAP ↵Gunter Knauf
support with current code.
2007-10-02<winber.h> needed for Windows LDAP client 32 API supportYang Tse
2007-09-15fixed ldap support for winldap.Gunter Knauf
2007-08-25bail out with error if someone tries to use another cert than PEM with OpenLDAP.Gunter Knauf
2007-08-23added support for CA cert verification;Gunter Knauf
default now to verify cert unless data->set.ssl.verifypeer is 0.
2007-08-22Reversed the 'HAVE_LDAP_URL_PARSE' ifdef statement.Gisle Vanem
2007-08-22for now comment the tls_start section...Gunter Knauf
2007-08-20fixed warning with unused var;Gunter Knauf
removed now obsolete defines since we include now ldap headers which define these.
2007-08-20fixed ldaps section for OpenLDAP. Still not working, but at least it ↵Gunter Knauf
compiles now, and should serve as base to get it finally working. Also seems that the ifdefs can be arranged some better because the Solaris and Netscape/iPlanet/Mozilla LDAP SDKs seem to be closer to the Novell section than the OpenLDAP one.
2007-08-16fixed warning about uninitialized.Gunter Knauf
2007-08-16added basic ldaps support; for now its ifdef'd with HAVE_LDAP_SSL unless we ↵Gunter Knauf
know its fully working, and available with all LDAP SDKs. Win32 requires to have the trusted CA in local keystore - I've not found yet a way to disable the cert check.
2007-08-15added ldap_msgfree() to fix memory leak.Gunter Knauf
2007-08-13Removed unused variable.Dan Fandrich
2007-08-13Simplify and rename internal structure to avoid potential name clash with ↵Patrick Monnerat
LDAP header file.
2007-08-12Fixed the LDAP_DEPRECATED #define as suggested by Daniel Johnson, andDaniel Stenberg
indented some of the code to curl-style
2007-08-11Patrick Monnerat modified the LDAP code and approach in curl. Starting now,Daniel Stenberg
the configure script checks for openldap and friends and we link with those libs just like we link all other third party libraries, and we no longer dlopen() those libraries. Our private header file lib/ldap.h was renamed to lib/curl_ldap.h due to this. I set a tag in CVS (curl-7_17_0-preldapfix) just before this commit, just in case.
2007-03-12Emmanuel Dreyfus fixed not being able to find ber_free() inYang Tse
libldap when available in liblber.
2007-02-26Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-filesGisle Vanem
since they're already included through "setup.h".
2007-01-03- David McCreedy made changes to allow base64 encoding/decoding to work onDaniel Stenberg
non-ASCII platforms.
2006-10-29Make more human readable and maintainable previousYang Tse
compiler warning fix since it was Ok and actually avoids the targeted compiler warning.
2006-10-27Compiler warning fix.Yang Tse
Assigning the const value zero to a pointer to function results in a null pointer value assignment to the function pointer. Assignment of any nonzero value is what should result in a implementation compiler dependent result. Since what we want to do here is the first case, this should not trigger compiler warnings related with conversions from 'pointer to data' to 'pointer to function'. Our autobuild test suite will judge.
2006-10-27Update copyright year, since the file has been modifiedYang Tse
2006-10-27Do an explicit typecast of data pointers to function pointersYang Tse
to avoid picky compiler warnings, since this is what we want!
2006-09-08Update comment reflecting structure change.Gisle Vanem
2006-09-08Compilation fix; 'reqdata' is not a pointer. 'path' is part of SessionHandle.Gisle Vanem
2006-09-08Compilation fixYang Tse
2006-09-07Major overhaul introducing http pipelining support and shared connectionDaniel Stenberg
cache within the multi handle.
2006-08-19Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPEDaniel Stenberg
command on subsequent requests on a re-used connection unless it has to.
2006-07-25Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H ↵Yang Tse
shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
2006-07-11include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.Yang Tse
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