740 Commits

Author SHA1 Message Date
timeless%mozdev.org
46444dd782 Bug 106386 Correct misspellings in source code
r=bernd rs=brendan


git-svn-id: svn://10.0.0.236/trunk@208659 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-28 20:12:37 +00:00
richm%stanfordalumni.org
f1ced83b02 Bug: 348926
Description: Memleak: ldap_start_tls_s should free oidptr and dataptr
Fix Description: Just omit oidptr and dataptr and pass NULL for those arguments to ldap_extended_operation_s().
Bug: 348927
Description: Memleak: ldaptls_complete should free hostlist
Fix Description: Instead of returning directly from early error conditions, just goto the error handling code, and let that code free hostlist and do the other cleanup.  I had to make sure all relevant variables were initialized to NULL in order for cleanup to work properly.


git-svn-id: svn://10.0.0.236/trunk@207762 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-17 19:21:03 +00:00
richm%stanfordalumni.org
8b7e2cbc94 Bug: 347033
Description: The client must call ldapssl_enable_clientauth before the first operation.  This means before ldap_start_tls_s in the case of startTLS.  However, the certname and keypassword (if any) are stored in the connection context.  ldapssl_enable_clientauth will now allocate and store this connection context if it doesn't already exist, then set the certname and keypassword.


git-svn-id: svn://10.0.0.236/trunk@206564 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 14:05:38 +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
2641304d83 Bug: 347033
Fix Description: Using the -Z flag sets the secure option, but using -ZZ (use starttls) does not.  The code in several places uses a test like if (secure || isZZ) to see if it has to perform some sort of ssl/tls related initialization.  The one place that was missed was before the call to PinArgRegistration() which was just if (secure).


git-svn-id: svn://10.0.0.236/trunk@206433 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-02 20:05:36 +00:00
richm%stanfordalumni.org
86c3ab791d Bug: 201483
Fix Description: Replaced PK11_FindCertFromNickname() with CERT_FindUserCertByUsage(), using a cert usage of SSL Client.  This should only find certs that are used for SSL Clients, which is the type of cert we want in this context (as opposed to e.g. an email signing cert).  The LDAPSSLSessionInfo* ssip is passed now as the context argument.  Moved calling PK11_SetPasswordFunc before CERT_FindUserCertByUsage() in case CERT_FindUserCertByUsage() needs it for some reason.


git-svn-id: svn://10.0.0.236/trunk@206431 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-02 20:00:42 +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
4a87d9f163 Bug: 346575
Fix Description: The default now is to not use RPATH when building shared libraries and executables.  The configure flag --with-rpath[=dir] has been added.  The dir is optional, and a default will be used if not given.


git-svn-id: svn://10.0.0.236/trunk@206297 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-01 15:47:14 +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
leon.sha%sun.com
2fab8db857 Bugzilla Bug 340509 Build broken with --enable-ldap-experimental.
Patch by alfred.peng@sun.com.
darin: review+
dmose: superreview+


git-svn-id: svn://10.0.0.236/trunk@201863 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 03:38:16 +00:00
richm%stanfordalumni.org
cd52b4f19c new - helps build RPM packages
git-svn-id: svn://10.0.0.236/trunk@200633 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 22:11:46 +00:00
richm%stanfordalumni.org
1b0416113c This commit was generated by cvs2svn to compensate for changes in r198039,
which included commits to RCS files with non-trunk default branches.

git-svn-id: svn://10.0.0.236/trunk@198040 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 20:44:56 +00:00
richm%stanfordalumni.org
e6562330fc This commit was generated by cvs2svn to compensate for changes in r198037,
which included commits to RCS files with non-trunk default branches.

git-svn-id: svn://10.0.0.236/trunk@198038 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-19 20:37:06 +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
cls%seawood.org
51c5b03349 Properly quote m4 macro definitions.
Thanks to Patrick Welche <pw-fb@newn.cam.ac.uk> for the patch.
Bug #298457 r=cls


git-svn-id: svn://10.0.0.236/trunk@196647 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-16 05:39:16 +00:00
mcs%pearlcrescent.com
efbaff6071 Port to Linux (no /usr/ucb/echo).
git-svn-id: svn://10.0.0.236/trunk@196317 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 17:09:47 +00:00
mcs%pearlcrescent.com
bea0cfc4a8 Added -d option (include empty directories)
git-svn-id: svn://10.0.0.236/trunk@196316 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 17:07:41 +00:00
richm%stanfordalumni.org
ffb6debb00 Bug: 334561
Description: Clean up spec file for RPM build
Fix Description: Make the spec files use the conventions used by the Fedora/Red Hat packaging system


git-svn-id: svn://10.0.0.236/trunk@196306 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 14:51:02 +00:00
richm%stanfordalumni.org
c3096c05af Bug: 334763
Description: Fix build to allow building command line tools without svrcore
Fix Description: Should allow the command line tools to be built without svrcore.  Also fixed the problem with system svrcore.


git-svn-id: svn://10.0.0.236/trunk@196305 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 14:48:34 +00:00
richm%stanfordalumni.org
b15f94d158 Bug: 337210
Description: ber_scanf sometimes gives incorrect return code on 64-bit
Fix: ber_get_boolean needs to get the return value of ber_get_int as an unsigned long and return that unsigned long value


git-svn-id: svn://10.0.0.236/trunk@196304 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-11 14:40:48 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
bugzilla%standard8.demon.co.uk
4538eaed57 Bug 336110 Missing out-of-memory check at directory/xpcom/base/src/nsLDAPConnection.cpp:1002. r/sr=dmose
git-svn-id: svn://10.0.0.236/trunk@195902 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-03 16:16:09 +00:00
bugzilla%standard8.demon.co.uk
32d777fe73 Bug 332400 Correct misuse of ifdefs in the source tree (in directory/base/resources) r/sr=dmose
git-svn-id: svn://10.0.0.236/trunk@195194 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-23 09:12:40 +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
ac8a485004 only link with svrcore if HAVE_SVRCORE is set
git-svn-id: svn://10.0.0.236/trunk@194661 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 03:03:54 +00:00
richm%stanfordalumni.org
db453120b7 generate configure using autoconf-2.13
git-svn-id: svn://10.0.0.236/trunk@194616 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-18 18:33:23 +00:00
benjamin%smedbergs.us
6e24a5d20a Freeze nsIArray (requires separating nsIMutableArray into another .idl file); also removes NS_NewArray and moves do_QueryElementAt into the glue, r=darin
git-svn-id: svn://10.0.0.236/trunk@194221 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 15:43:32 +00:00
richm%stanfordalumni.org
3a2ddafc73 Fix for bug 333406
I had made a change to make 64 bit builds the default on those platforms that
support 64 bit binaries.  However, the expected behavior for other mozilla
components is that you have to explicitly use --enable-64bit to make a 64
bit binary, and default to 32 bit binaries.  So, I made mozldap work like the
other components.


git-svn-id: svn://10.0.0.236/trunk@194176 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 21:12:58 +00:00
jag%tty.nl
cd6a6b654e Attempt to fix btek and -Ports bustage
git-svn-id: svn://10.0.0.236/trunk@192405 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 06:17:19 +00:00
bryner%brianryner.com
7ec5e10667 Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin.
git-svn-id: svn://10.0.0.236/trunk@192401 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 04:59:42 +00:00
richm%stanfordalumni.org
4530f7f634 bug 327864
LDAP C-SDK support for Mac cross builds
Add a new configure option --with-macos-sdk=dir


git-svn-id: svn://10.0.0.236/trunk@190857 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-22 18:59:31 +00:00
richm%stanfordalumni.org
8112151948 On HP-UX, we should not link against the libraries we depend on at runtime because it puts explicit version dependencies into the shared library we are creating. This makes it impossible to upgrade to a new version of nspr or nss.
git-svn-id: svn://10.0.0.236/trunk@190307 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-16 23:08:22 +00:00
richm%stanfordalumni.org
b5bdc57698 use = for sh string tests, not ==
git-svn-id: svn://10.0.0.236/trunk@190041 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-15 00:33:08 +00:00
richm%stanfordalumni.org
ce85172a2f use SVRCORE_LIBS instead of SVRCORE_LIB_PATH
git-svn-id: svn://10.0.0.236/trunk@190003 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 21:51:42 +00:00
richm%stanfordalumni.org
e2636694af Use SVRCORE_LIBS not SVRCORE_LIB_PATH
git-svn-id: svn://10.0.0.236/trunk@190002 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 21:49:10 +00:00
richm%stanfordalumni.org
674d6d3801 spec file for redhat and fedora core - based on the spec file for perl-ldap
git-svn-id: svn://10.0.0.236/trunk@189831 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-13 18:41:34 +00:00
richm%stanfordalumni.org
e9f406066b bug 292793
Allow build on Mac OSX
1) There is no RPATH on Darwin, so undefine the RPATH macros before linking
2) Have to use g++ to link
3) The iconv functions are in libiconv


git-svn-id: svn://10.0.0.236/trunk@189724 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 23:14:00 +00:00
richm%stanfordalumni.org
6aa9d1b0b0 bug 325625
This fix allows the trunk ldap c sdk build to be used to build the mozilla client.  I was able to use this to build the mozilla 1_8 branch of thunderbird on Fedora Core 4.  Addressbook and typedown addressing work fine.
The gist of the fix is to completely ignore svrcore if not specified, and to imply --with-nspr if --with-mozilla is specified.  If not specified, the client build uses $(DIST)/include/nspr and $(DIST)/lib for the locations of the NSPR files.


git-svn-id: svn://10.0.0.236/trunk@189722 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-10 23:08:16 +00:00
richm%stanfordalumni.org
15a8c20724 Whoops - only use name.lib if OS_ARCH is WINNT
git-svn-id: svn://10.0.0.236/trunk@188913 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-04 01:32:39 +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
544a11825e bug 324529
When the malloc fails in the 'v' or 'V' ber_scanf case, we need to break out of the loop and return with an LBER_DEFAULT code.  Also, in the realloc case, we need to save a copy of the old pointer and use either ber_svecfree ('v' case) or ber_bvecfree ('V' case) to clean up the memory.

bug 324525
If the malloc is done to allocate the *bv, but then an lber error is
encountered while doing the ber_skip_tag (due to a bad or malicious client),
the bv->bv_val is set to a random value.  If you then try to use ber_bvfree to
free the bv, it may call free on this uninitialized value, and badness ensues.
I think the proper fix is for ber_get_stringal to set (*bv)->bv_val to NULL and
(*bv)->bv_len to 0 just after the malloc.


git-svn-id: svn://10.0.0.236/trunk@188852 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 15:55:46 +00:00
richm%stanfordalumni.org
fb8e280f32 bug 310521
also part of 301035 and 325518

Use $(srcdir) as the location for the .ex file


git-svn-id: svn://10.0.0.236/trunk@188850 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 15:36:14 +00:00
richm%stanfordalumni.org
f8456e3f5e fix nss version checking - add svrcore to pkg-config file - fix the way libraries and their symlinks are installed
git-svn-id: svn://10.0.0.236/trunk@188757 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 17:08:07 +00:00
richm%stanfordalumni.org
345f776eb8 Even though using --with-system-svrcore, still need to add -lsvrcore to
SVRCORE_LIBS even though we don't need to add the -L/path


git-svn-id: svn://10.0.0.236/trunk@188623 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:52:18 +00:00
richm%stanfordalumni.org
a495d31387 Change --system-svrcore to --with-system-svrcore
git-svn-id: svn://10.0.0.236/trunk@188621 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:43:15 +00:00
richm%stanfordalumni.org
0bbe2e6d04 Use --system-svrcore with configure to force the build to use svrcore from /usr/include and /usr/lib
git-svn-id: svn://10.0.0.236/trunk@188617 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:08:06 +00:00
richm%stanfordalumni.org
7976cc818d svrcore is installed in /usr/lib and /usr/include, so if the user specifies --system-svrcore
to configure, we can just assume we don't have to do any work to figure out the additional
paths to add to the include and lib paths.


git-svn-id: svn://10.0.0.236/trunk@188616 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:04:14 +00:00
richm%stanfordalumni.org
49e5fb6df8 svrcore is installed in /usr/lib and /usr/include, so if the user specifies --system-svrcore
to configure, we can just assume we don't have to do any work to figure out the additional
paths to add to the include and lib paths.


git-svn-id: svn://10.0.0.236/trunk@188612 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 21:58:13 +00:00