summaryrefslogtreecommitdiff
path: root/lib/ldap.c
Commit message (Collapse)AuthorAgeFilesLines
* libcurl internal base64.h header file renamed to curl_base64.hYang Tse2008-08-171-2/+2
|
* reqdata doesn't exist anymore and the path moved to the UrlState structDaniel Stenberg2007-11-241-4/+4
|
* removed space after if and while before the parenthesis for better source codeDaniel Stenberg2007-11-051-69/+69
| | | | consistency
* We use this ZERO_NULL to avoid picky compiler warnings,Yang Tse2007-10-171-18/+18
| | | | when assigning a NULL pointer to a function pointer var.
* Added per-protocol callback static tables, replacing callback ptr storagePatrick Monnerat2007-10-121-1/+46
| | | | in the connectdata structure by a single handler table ptr.
* lber.h needs to be included since ldap.h might not include itYang Tse2007-10-091-0/+3
|
* added check for MSVC6 standard PSDK and bail out since insufficient for LDAP ↵Gunter Knauf2007-10-091-1/+5
| | | | support with current code.
* <winber.h> needed for Windows LDAP client 32 API supportYang Tse2007-10-021-0/+1
|
* fixed ldap support for winldap.Gunter Knauf2007-09-151-2/+4
|
* bail out with error if someone tries to use another cert than PEM with OpenLDAP.Gunter Knauf2007-08-251-0/+6
|
* added support for CA cert verification;Gunter Knauf2007-08-231-10/+30
| | | | default now to verify cert unless data->set.ssl.verifypeer is 0.
* Reversed the 'HAVE_LDAP_URL_PARSE' ifdef statement.Gisle Vanem2007-08-221-4/+4
|
* for now comment the tls_start section...Gunter Knauf2007-08-221-0/+2
|
* fixed warning with unused var;Gunter Knauf2007-08-201-15/+2
| | | | removed now obsolete defines since we include now ldap headers which define these.
* fixed ldaps section for OpenLDAP. Still not working, but at least it ↵Gunter Knauf2007-08-201-26/+94
| | | | 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.
* fixed warning about uninitialized.Gunter Knauf2007-08-161-1/+1
|
* added basic ldaps support; for now its ifdef'd with HAVE_LDAP_SSL unless we ↵Gunter Knauf2007-08-161-24/+77
| | | | | | 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.
* added ldap_msgfree() to fix memory leak.Gunter Knauf2007-08-151-1/+3
|
* Removed unused variable.Dan Fandrich2007-08-131-1/+0
|
* Simplify and rename internal structure to avoid potential name clash with ↵Patrick Monnerat2007-08-131-6/+7
| | | | LDAP header file.
* Fixed the LDAP_DEPRECATED #define as suggested by Daniel Johnson, andDaniel Stenberg2007-08-121-19/+19
| | | | indented some of the code to curl-style
* Patrick Monnerat modified the LDAP code and approach in curl. Starting now,Daniel Stenberg2007-08-111-251/+64
| | | | | | | | 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.
* Emmanuel Dreyfus fixed not being able to find ber_free() inYang Tse2007-03-121-0/+5
| | | | libldap when available in liblber.
* Removed inclusion of <sys/types.h> and <sys/stat.h> in .c-filesGisle Vanem2007-02-261-7/+1
| | | | since they're already included through "setup.h".
* - David McCreedy made changes to allow base64 encoding/decoding to work onDaniel Stenberg2007-01-031-2/+4
| | | | non-ASCII platforms.
* Make more human readable and maintainable previousYang Tse2006-10-291-2/+9
| | | | | compiler warning fix since it was Ok and actually avoids the targeted compiler warning.
* Compiler warning fix.Yang Tse2006-10-271-1/+1
| | | | | | | | | | | | | | | 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.
* Update copyright year, since the file has been modifiedYang Tse2006-10-271-1/+1
|
* Do an explicit typecast of data pointers to function pointersYang Tse2006-10-271-1/+1
| | | | to avoid picky compiler warnings, since this is what we want!
* Update comment reflecting structure change.Gisle Vanem2006-09-081-2/+4
|
* Compilation fix; 'reqdata' is not a pointer. 'path' is part of SessionHandle.Gisle Vanem2006-09-081-5/+4
|
* Compilation fixYang Tse2006-09-081-1/+4
|
* Major overhaul introducing http pipelining support and shared connectionDaniel Stenberg2006-09-071-1/+1
| | | | cache within the multi handle.
* Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPEDaniel Stenberg2006-08-191-10/+10
| | | | command on subsequent requests on a re-used connection unless it has to.
* Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H ↵Yang Tse2006-07-251-1/+1
| | | | shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
* include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.Yang Tse2006-07-111-1/+1
|
* Use the HAVE_MALLOC_H and HAVE_PROCESS_H definesGisle Vanem2006-04-261-1/+3
| | | | (more logical).
* curl_easy_unescape() takes 4 arguments.Gisle Vanem2006-04-081-4/+4
|
* First commit of David McCreedy's EBCDIC and TPF changes.Daniel Stenberg2006-04-071-6/+6
|
* Cleanup windows header includes. Where aplicable, inclusion ofYang Tse2005-12-181-1/+0
| | | | windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
* Use an empty '*mod_name'.Gisle Vanem2005-11-011-1/+1
|
* Vilmos Nebehaj improved libcurl's LDAP abilities:Daniel Stenberg2005-10-311-14/+61
| | | | | | | | | | | | | | 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
* Fixed LDAP library file name bug (KNOWN_BUGS #1). configure now auto-detectsDan Fandrich2005-03-111-10/+14
| | | | | | | | 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.
* Set 'bits.close' in case of malloc fail.Gisle Vanem2005-02-091-1/+2
| | | | | Don't free 'lud_dn' twice in case curl_unescape() fails.
* FTP code turned into state machine. Not completely yet, but a good start.Daniel Stenberg2005-02-091-2/+3
| | | | | The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
* Fix calling convention of wlap32.dll function. WatcomGisle Vanem2004-12-171-15/+16
| | | | uses fastcall by default, so force cdecl.
* Only declare static variables if they're needed. Fixed some compile warnings.Dan Fandrich2004-12-141-0/+5
|
* Paul Nolan fix to make libcurl build nicely on Windows CEDaniel Stenberg2004-11-021-0/+4
|
* removed tabs and trailing whitespace from sourceDaniel Stenberg2004-10-061-4/+4
|
* Ben Greear's minor fix to build (better) with cross-compiled(?) mingwDaniel Stenberg2004-09-261-1/+1
|