79 Commits

Author SHA1 Message Date
bugzilla%standard8.plus.com
7163dbc64c Bustage fix follow up to Bug 520401 - correct comment style.
git-svn-id: svn://10.0.0.236/trunk@258616 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-06 21:44:13 +00:00
bugzilla%standard8.plus.com
3b415dda6f Bug 520401 Work around Mac ppc/gcc 4.2 compiler hang in ufn.c. r=mcs
git-svn-id: svn://10.0.0.236/trunk@258611 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-06 20:45:47 +00:00
bugzilla%standard8.plus.com
528338f962 Bug 511817 Malformed Packet appears in network trace of SASL binding. p=Xu Qiang <Qiang.Xu@fujixerox.com>,r=richm
git-svn-id: svn://10.0.0.236/trunk@258585 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-04 20:42:09 +00:00
bugzilla%standard8.plus.com
4ca64acd11 Bug 500001 fix compiler warnings in c-sdk/ldap. p=timeless,r=mcs
git-svn-id: svn://10.0.0.236/trunk@258584 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-04 20:22:04 +00:00
ulf%loop.to
4d1ce87c1b Bug 389741: "ldap_memcache_flush() doesn't clear negative results" r=mcs
This patch adds a new LDAP API, ldap_memcache_flush_results(), which works
the same as ldap_memcache_flush() except it'll also clear out results from
search requests that didn't return any entries.


git-svn-id: svn://10.0.0.236/trunk@255814 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 20:01:01 +00:00
mozilla%weilbacher.org
ef5216578a [OS/2] Bug 458112: get rid of VisualAge in LDAP C SDK, p=wuno@lsvw, r=me/mcs/richm
git-svn-id: svn://10.0.0.236/trunk@255636 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 09:39:56 +00:00
bugzilla%standard8.plus.com
35c76a5546 Follow up to Bug 385091 - fix build problems on msys compilers/MozillaBuild. p=Neil,r=Rich Megginson
git-svn-id: svn://10.0.0.236/trunk@254163 18797224-902f-48f8-a5cc-f745e15eee43
2008-09-11 14:38:35 +00:00
anton.bobrov%sun.com
8e876b26bf Fix PWP Warning primitive tags so that they reflect the actual specification.
git-svn-id: svn://10.0.0.236/trunk@242448 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-05 12:00:08 +00:00
anton.bobrov%sun.com
cefc50d379 fix for [Bug 399021] doublefree in nsldapi_free_request
git-svn-id: svn://10.0.0.236/trunk@237425 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-08 22:15:55 +00:00
nhosoi%redhat.com
c7238802ba Resolves: Bug 388398
Summary: crash after reading freed memory during referral chase
Applying the patch (attachment id=273024) by Ulf Weltman in Comment #3


git-svn-id: svn://10.0.0.236/trunk@236315 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 20:41:04 +00:00
richm%stanfordalumni.org
f3d3c9eaac Resolves: bug 386091
Description: Windows SDK package needed
Fix Description: 1) Update the packaging Makefile (package.mk) for Windows and SASL.
2) Add support for manifests in VC 8.0.  There is a new command line tool
called mt.exe that is used to generate manifest files and to compile them into
the executables.  This allows ldapsearch.exe to be able to find the right
msvcr80.dll at runtime.  This was copied from NSS at Nelson's suggestion.
3) Added support for being able to do a configure and make in a different
directory.  I find it very useful to be able to create a "build" directory and
run configure like this:
cd ~/build
/path/to/mozilla/directory/c-sdk/configure ... args ...
make
Then I can just completely blow away the build directory if I need to.  I know
this is what make clean/make clobber are supposed to do, but keeping the binary
and source directories separate like this also facilitates creating source
tarballs from the working directory for use in building rpms/packages.
There were a few changes required to cygwin_wrapper and the makefiles to
support building in this manner.


git-svn-id: svn://10.0.0.236/trunk@228387 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-20 17:57:12 +00:00
ulf%loop.to
0ffda1fe3f Fix to fix for bug 360035
Fix Description:
The patch was originally written for SDK 5.17.  In recent SDKs we should
use ber_tag_t or ber_len_t in place of unsigned longs.


git-svn-id: svn://10.0.0.236/trunk@228342 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-19 21:00:26 +00:00
ulf%loop.to
8f4546bb0d Bug: 360035
Description: server response controls lost in referral chase
Fix Description:
1) Add a nsldapi_find_controls() which skips through a ber to find a control
tag, and then calls on nsldapi_get_controls() to extract them.
2) During referral chase, stash the controls received at the end of the chase
in the request structure.
3) When the referral chase is over and we manufacture a response, add the
stashed response controls.


git-svn-id: svn://10.0.0.236/trunk@228331 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-19 18:32:17 +00:00
nkinder%redhat.com
eaa5681d8e Resolves: 383307
Summary: Make usage of SASL thread-safe.


git-svn-id: svn://10.0.0.236/trunk@227710 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-08 17:57:11 +00:00
nkinder%redhat.com
3e2fd41acd Resolves: 382817
Summary: Fixed a memory leak of the SASL I/O socket arg when closing a connection.


git-svn-id: svn://10.0.0.236/trunk@227490 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-04 21:50:01 +00:00
anton.bobrov%sun.com
9f11d665a8 [Bug 371361] autoconf build is broken on AIX
git-svn-id: svn://10.0.0.236/trunk@220873 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 17:05:00 +00:00
bugzilla%standard8.demon.co.uk
3425a112cc Bug 359716 Fix OS/2 builds ahead of upgrading SeaMonkey and Thunderbird to the latest c-sdk. r=mcs.
git-svn-id: svn://10.0.0.236/trunk@220340 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-15 21:25:00 +00:00
richm%stanfordalumni.org
338520afad Resolves: bug 228704
Description: Windows: libldap and the LDAP tools should support SASL/Digest
Fix Description: The biggest change was to hack sasl.m4 to make AC_CHECK_LIB work on Windows.  I
had to override LIBS to be able to pass in /link /LIBPATH:c:/path/to/sasl
libsasl.lib, libsasl2.lib, and sasl32.lib.
Another big change was to implement getlogin() on Windows, required by
ldaptool-sasl.c.  The implementation is pretty simple.
There were several places in the Makefiles that assumed Windows meant no
support for SASL, so I just changed them, and added some support for SASL_LIBS
in some places where it was missing.


git-svn-id: svn://10.0.0.236/trunk@218853 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-24 20:53:02 +00:00
anton.bobrov%sun.com
6c5bc836d2 Bug 362619 merging Sun and Mozilla libldap: merging common srcs.
git-svn-id: svn://10.0.0.236/trunk@218112 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-10 12:52:33 +00:00
anton.bobrov%sun.com
f10c871ff7 fix previous commit
git-svn-id: svn://10.0.0.236/trunk@216353 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-03 02:43:16 +00:00
anton.bobrov%sun.com
968e6d4f82 Bug 357668: merging Sun and Mozilla libldap: bring new srcs unique to Sun branch
git-svn-id: svn://10.0.0.236/trunk@215197 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-13 13:52:52 +00:00
richm%stanfordalumni.org
5490d18a0f Bug: 339298
Description: Merge sun libprldap changes on to trunk
Fix Description: Pretty much the same as the fixes made for bugs 352519 352673 on the sun_merge_branch_20060523, this just merges those changes on to the trunk.  One additional change is the removal of an unused variable.


git-svn-id: svn://10.0.0.236/trunk@213108 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-04 14:37:27 +00:00
richm%stanfordalumni.org
0cc7de0f1b Bug: 339298
Description: Merge sun_merge_branch_20060523 changes into trunk.
Fix Description: I had to change re_encode_request to use the new ber types.  Other than that, these merges are basically the sasl, ipv6, and ber types code already committed to the sun merge branch.


git-svn-id: svn://10.0.0.236/trunk@213085 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-03 20:43:42 +00:00
richm%stanfordalumni.org
d622763f1f Bug: 332159
Fix Description: Free lfdp->lfd_curval - it is now allocated in ldap_getfirstfilter() as a copy of the value passed in to that function.


git-svn-id: svn://10.0.0.236/trunk@206450 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-02 22:42:54 +00:00
richm%stanfordalumni.org
92057dd7f3 Bug: 332159
Fix Description: Make a copy of the value parameter passed into ldap_getfirstfilter() and store it in lfd_curval.  Free it in the LDAPFiltDesc free function.


git-svn-id: svn://10.0.0.236/trunk@206449 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-02 22:40:59 +00:00
richm%stanfordalumni.org
e312a4ce0e Bug: 300482
Fix Description: First look for a return of < 0 from ldap_count_entries, and return LDAP_PARAM_ERROR in that case (in both keysort and multisort).  Then, if count < 2, there is nothing to sort, so just return 0.


git-svn-id: svn://10.0.0.236/trunk@206302 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-01 16:40:31 +00:00
richm%stanfordalumni.org
3a9319ad06 Bug: 323064
Fix Description: If there is a scope given in the reference/referral URL, use it.  Otherwise, if the URL is for a search reference (continuation reference) result, comply with RFC4511 section 4.5.3 concerning scope.  Otherwise, parse the scope from the original request and just use it.
Note that this fix does not address support for filters in referrals/references.  Support for filters will require a great deal more changes.  The current version of openldap (2.3.x) does not support filters, so this fix at least brings us up to par with openldap with respect to this feature.


git-svn-id: svn://10.0.0.236/trunk@206293 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-01 14:57:38 +00:00
richm%stanfordalumni.org
aaee4915e5 remove from head
git-svn-id: svn://10.0.0.236/trunk@198032 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 20:27:03 +00:00
richm%stanfordalumni.org
6fc3f0f4ca This commit was generated by cvs2svn to compensate for changes in r198030,
which included commits to RCS files with non-trunk default branches.

git-svn-id: svn://10.0.0.236/trunk@198031 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 20:17:49 +00:00
richm%stanfordalumni.org
28c297572d fix for bug 330255 - sasl bind does not respect LDAP_OPT_RECONNECT option
add some more invalid parameter checking to the ldap bind routines
When reconnecting, do not use the previous binddn and password


git-svn-id: svn://10.0.0.236/trunk@194748 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 02:16:25 +00:00
richm%stanfordalumni.org
4e0cb6e9fc bug 301035 and bug 325518
Enable autoconf build on Windows with cygwin and free MSVC compiler + SDK
1) Don't set the -lsvrcore in SVRCORE_LIBS in configure - instead, do it the
way we do the NSPR and NSS libs, in build.mk
2) For the component LINK macros, use name.lib instead of -lname on Windows
3) The new free MSVC compiler does not have lib.exe - add an autoconf test for
the lib program and use link /lib if missing
4) If using MSVC (which expects DOS style absolute paths) and cygwin (which
uses unix style abs. paths), use cygpath -m on all user supplied paths to make
sure they are in the correct format for cl and link.  It's better to do this
during configure rather than depend on cygwin_wrapper which is much, much
slower.
5) Don't link with the odbc libs (Why did we ever need these!?!??!?)
6) The free MSVC doesn't include afxwin.h, so use the other header files
instead
7) Add libutil to the Windows build, including getting rid of the old Makefile
and adding a new Makefile.in for the autoconf build (the Makefile.client
remains)
8) getopt.c doesn't need lber.h

I verified that these changes also build on Win2k with MSVC 6 SP 3.  I also changed the copyright in the new Makefile.in as suggested by Mark Smith.


git-svn-id: svn://10.0.0.236/trunk@188870 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 19:28:32 +00:00
richm%stanfordalumni.org
50036651ac Bug 323307
There were only a few places that needed to be changed.  I needed to change the
order of c++ and cc detection around in configure - it seems that if you do the
cross compilation stuff first, it messes up the "regular" case, which is the
more important one.  In order for the GNU_CC tests to work, you must define
CC=gcc and CXX=g++ on the configure command line.  If building 64 bit, you must
also specify CFLAGS=-m64 and CXXFLAGS=-m64.  I also removed the extra arguments
for static library building as they were not only not necessary but they were
also making the build abort.


git-svn-id: svn://10.0.0.236/trunk@187741 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 03:46:52 +00:00
cls%seawood.org
da2cda38ed Path translation fixes for msys.
Thanks to Howard Chu <hyc@symas.com> for the patches.
Bug #294122 r=cls a=shaver


git-svn-id: svn://10.0.0.236/trunk@174037 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-02 04:21:17 +00:00
richm%stanfordalumni.org
391eab0f59 Fix for bug 288397 - just remove definition of MAXHOSTNAMELEN since it is not used anywhere
git-svn-id: svn://10.0.0.236/trunk@172698 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-25 20:03:40 +00:00
mcs%pearlcrescent.com
b8044053ec Fix bug # 141754 - Enhancement: Should support startTLS.
LDAP command line tools now accept 2 new options:
    -ZZ  (issue a startTLS request)
    -ZZZ (like -ZZ but require a successful response).
 API extensions:
  ldap_ssl.h: LDAP_EXOP_START_TLS macro (OID of start TLS extended op.).
  libssldap:  Added ldap_start_tls_s() function.
  libprldap:  Added prldap_is_installed() and prldap_import_connection().
  libldap:    Added new LDAP_X_OPT_SOCKETARG option for ldap_get_option()
                and ldap_set_option() (get/set the socketarg associated
                with the main LDAP TCP connection).
  liblber:    Added new LBER_SOCKBUF_OPT_SOCK_ARG option for
                 ber_sockbuf_set_option() and ber_sockbuf_get_option()
                 (get/set the socketarg associated with a Sockbuf).
Also, some refactoring was done in libssldap to simplify the code.


git-svn-id: svn://10.0.0.236/trunk@161997 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 18:50:05 +00:00
mcs%pearlcrescent.com
3b1008e4ea Fix bug # 242143 - ldap_extended_operation(3) sends requestValue
when not requested.
  Now if a NULL struct berval * is passed for the extended op data,
  no value is sent.


git-svn-id: svn://10.0.0.236/trunk@161996 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 18:23:39 +00:00
mcs%pearlcrescent.com
84a0bb7649 Fix bug # 255186 - 64 bit: VLV response control not parsed correctly.
git-svn-id: svn://10.0.0.236/trunk@160664 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-11 13:30:32 +00:00
mcs%pearlcrescent.com
a673c5670f Commit to the trunk the fix for bug # 223987 - Fix LDAP library
makefile to play nice with "make -jN" builds with MSVC.


git-svn-id: svn://10.0.0.236/trunk@156853 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-24 14:25:07 +00:00
cls%seawood.org
5dffc599b7 OpenVMS build changes. b=180291. r=mcs. sr=brendan
git-svn-id: svn://10.0.0.236/trunk@153974 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-15 06:51:00 +00:00
cls%seawood.org
f4f9ad28dc 198462 patch by rich cannings cannings@math.ucalgary.ca r=mcs sr=dmose a=mkaply Get LDAP to build on OpenBSD
git-svn-id: svn://10.0.0.236/trunk@153972 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-15 06:28:55 +00:00
cls%seawood.org
58aea62dac #188247
r=mcs, sr=dmose
OS/2 GCC work for LDAP


git-svn-id: svn://10.0.0.236/trunk@153970 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-15 06:25:32 +00:00
mcs%netscape.com
17a1191dbb Additional fix for bug # 205419 - Relicense LDAP C SDK (directory/c-sdk).
Replace NPL/GPL/LGPL licenses with MPL/GPL/LGPL.


git-svn-id: svn://10.0.0.236/trunk@147988 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-15 17:26:10 +00:00
mcs%netscape.com
f9cbc32e48 Fix bug # 205419 - Relicense LDAP C SDK (directory/c-sdk).
Replace existing licenses with a triple license (NPL/GPL/LGPL or
    MPL/GPL/LGPL).
  Add licenses to files that had no license.
  Remove two unused files.


git-svn-id: svn://10.0.0.236/trunk@147837 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-10 15:03:52 +00:00
mcs%netscape.com
2160645dd7 Fix bug # 140182 - async I/O improvements.
A queue of pending outbound requests is kept. UnBind requests are NOT
   queued however.
  Abandon requests are not sent if a request is not outstanding.
  Cleaned up the code in result.c to avoid use of magic return values
	such as -1 and -2.  Also removed some dead code and dead files.
ltest (test.c) now supports SSL and async I/O options.


git-svn-id: svn://10.0.0.236/trunk@147488 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-01 17:19:11 +00:00
mcs%netscape.com
a59bfdd9cd Partial fix for 148272 - flawfinder warnings in directory.
Fix most critical warnings in the core LDAP library code:
    AIX has snprintf() so we now #define HAVE_SNPRINTF there.
    Use snprintf() instead of sprintf() in ldap_perror().
    Use snprintf() instead of sprintf() in ldap_init_getfilter_buf()
     and improve error reporting for bad regular expressions.


git-svn-id: svn://10.0.0.236/trunk@140507 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 21:04:23 +00:00
mcs%netscape.com
675516603d Fix 190539 - Speed optimizations for OS/2.
Changes merged from ldapcsdk_50_client_branch.


git-svn-id: svn://10.0.0.236/trunk@140489 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 18:11:26 +00:00
mcs%netscape.com
042db5ce15 Fix bug # 174912 - Sporadically missing entries during referral.
Don't treat a request as complete if its LDAP result message
  has not yet been received. Previously, nested referrals and
  references could cause requests to be prematurely terminated.


git-svn-id: svn://10.0.0.236/trunk@140486 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 15:17:11 +00:00
mcs%netscape.com
1cd7eb9a68 Fix 175900 - read overrun in ldap resolve code.
Note: this fixes code we do not compile right now.


git-svn-id: svn://10.0.0.236/trunk@140161 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 21:12:03 +00:00
mcs%netscape.com
e512518762 Fix 144241 - possible C SDK leak or delayed free().
Note: unconfirmed fix; I do not have a test program for this bug.


git-svn-id: svn://10.0.0.236/trunk@140158 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 20:05:24 +00:00
mcs%netscape.com
5076ab7942 Fix 126462 - Occurences of uninitialized variables being used
before being set (in directory/c-sdk).


git-svn-id: svn://10.0.0.236/trunk@140157 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 19:59:05 +00:00