Граф коммитов

245 Коммитов

Автор SHA1 Сообщение Дата
seawood%netscape.com e9f6376826 When calling windres, use a temp file to work around resource issues.
Bug #213281 r=wtc
2003-09-15 03:48:56 +00:00
mcs%netscape.com ce5df09b84 Follow up fix for 200528 - ldap/include/portable.h is confused
about Solaris: older Linux versions do not have in_addr_t, so
don't assume they do.
2003-08-27 21:02:31 +00:00
mcs%netscape.com ba94d4bffb Fix 200528 - ldap/include/portable.h is confused about Solaris.
Avoid using sunos5 (not defined).
    Removed definitions of these macros that are not used anwhere:
		HAVE_GETPWNAM_R, HAVE_GETGRNAM_R, SIG_FN, WAIT_FLAGS.
2003-08-27 14:10:02 +00:00
mcs%netscape.com a6b0bf4fd7 Fix 200361 - LDAP tools should accept -i UTF-8 and -i utf8 on all platforms.
Also, on Windows the -i option was previously ignored; now the following
  values are accepted: windows-1252, ANSI, utf-8, utf8 (2 charsets in total).
2003-08-27 13:35:21 +00:00
seawood%netscape.com 4ee1fc13e4 Change mksnt* checks to mks*
Bug #202598 r=wtc
2003-04-19 01:47:57 +00:00
seawood%netscape.com d14fa1269a Add -s to default optimization flags for os2gcc builds.
Thanks to Javier Pedemonte <pedemont@us.ibm.com> for the patch.
Bug #201555 r=cls
2003-04-18 19:27:09 +00:00
seawood%netscape.com b575e3e3e4 Sync config.guess & config.sub with official GNU copies.
Bug #199343
2003-04-18 19:20:22 +00:00
seawood%netscape.com 5ddf3d0a8d Fix x86 checks so that they work for xeon processors
Bug #199343 r=wtc
2003-04-18 19:18:12 +00:00
mcs%netscape.com 346de1e6ae 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.
2003-04-01 21:04:23 +00:00
djani%netscape.com 27e82f49ab Bug 198218: added usage for -g 2003-04-01 18:12:49 +00:00
mcs%netscape.com 00da1b62fe Fix 190539 - Speed optimizations for OS/2.
Changes merged from ldapcsdk_50_client_branch.
2003-04-01 18:11:26 +00:00
mcs%netscape.com 9ec47562dc Fix 199353 - ldapsearch contains recurring memory leaks.
Free the entry controls (ectrls) array inside print_entry().
2003-04-01 17:55:45 +00:00
mcs%netscape.com b2e711e461 Fix bug # 200007 - add option to flush ldapsearch output after each entry.
The new option is:
    -r flush output after each entry is printed (useful with -C)
2003-04-01 17:04:41 +00:00
mcs%netscape.com 5d5474607a 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.
2003-04-01 15:17:11 +00:00
djani%netscape.com 57a160ffb2 Bug 198218: Now, the ldap clients send the password policy request control by default at the 'bind' level. To suppress it, use -g option. Also, the clients can parse the password policy response control. 2003-04-01 01:37:54 +00:00
mcs%netscape.com f034c8092e Fix 175900 - read overrun in ldap resolve code.
Note: this fixes code we do not compile right now.
2003-03-24 21:12:03 +00:00
mcs%netscape.com ec0f469f37 Follow up fix for 126462 - Occurences of uninitialized variables being
used before being set (in directory/c-sdk).
	Fix debug build.
2003-03-24 20:44:58 +00:00
mcs%netscape.com 04293f017e Fix 144241 - possible C SDK leak or delayed free().
Note: unconfirmed fix; I do not have a test program for this bug.
2003-03-24 20:05:24 +00:00
mcs%netscape.com 72f29f6e43 Fix 126462 - Occurences of uninitialized variables being used
before being set (in directory/c-sdk).
2003-03-24 19:59:05 +00:00
mcs%netscape.com 89b551cbdf Fix 198972 - LDAP tools do not build on AIX.
Link with iconv library on AIX.
2003-03-24 19:49:11 +00:00
dmose%mozilla.org 877fb1ee13 Don't use strcmp() just to check for a zero-length string (bug 58221). Patch by timeless@myrealbox.com, r=dmose@mozilla.org 2003-03-22 03:19:05 +00:00
mcs%netscape.com 64c117c784 Fix 189089 - port nspr w32 now.c fix to directory.
See bug # 188396 - NSPR should not use ftime on windows.
	This fixes a potential Year 2038 issue.
2003-03-21 16:41:42 +00:00
mcs%netscape.com f8e295fb12 Fix 183385 - eliminate references to NSS key/cert/module files.
The LDAP tools code no longer has any knowledge of the NSS
	file names; the certpath2keypath() function has been deleted
	and we now simply use the certdbpath as keydbpath when it is
	provided (it makes no difference in the end). But note that
	because we need to maintain backwards compatibility, the
	libssldap code used by the ldapssl_.*_init() functions still
	knows the default name of the NSS module file (secmod.db),
	and the code also relies on the fact that the suffix for the
	key and cert files is ".db" and that the first letter in the
	main part of the name is either 'c' or 'k'.
Also fixed a bug that caused the module file name specified on
	the LDAP tools command line (-m name) to be ignored.
The ldapsearch and ldapcmp tools now exit with LDAP_NO_MEMORY
	if an LDIF fragment can't be constructed.
Also fixed some issues reported by lint:
	Return values that were ignored.
	Make more functions and global variables static.
	Add /*ARGSUSED*/ and similar lint-friendly comments.
2003-03-21 16:00:34 +00:00
mcs%netscape.com 10660ce443 Fix 183798 - crash if charset conversion fails. 2003-03-20 15:46:41 +00:00
mcs%netscape.com b59b4af405 Fix 195441 - command line tools: :< in LDIF fails to import file
contents correctly.
Also removed a useless call to feof().
2003-03-20 14:56:59 +00:00
seawood%netscape.com 1f7a06c631 Add mingw support.
Bug #134113 r=mcs sr=dmose
2003-03-07 21:12:09 +00:00
seawood%netscape.com 181a903b7a Default to using absolute symlinks when building on Darwin.
Bug #193164 r=ccarlen
2003-02-23 16:58:47 +00:00
seawood%netscape.com 37a3044f84 Hardcode the use of Sun's ld & ranlib since they are the only ones supported.
Bug #181382 r=dmose
2002-12-17 21:44:49 +00:00
djani%netscape.com 5a49c52a9f Bug 179133: Now we support cert and key DBs with prefixes in the names also, just like ldapssl_pkcs_init() does. Now all of the code calls NSS_Initialize() instead of NSS_Init(). 2002-12-04 19:10:17 +00:00
mcs%netscape.com 2b6abef319 Fix bug # 177756 - eliminate dependency on libNLS.
If HAVE_LIBNLS is not defined, OS functions (iconv and Win32
	native APIs) are used for character set conversion of command
	line arguments.
Fix bug # 177766 - LDAP tools should reject second -h argument.
	A second -p argument is also rejected.
Fix bug # 159139 - HP/UX: LDAP command line tools do no charset conversion.
	Removed special case makefile rules for convutf8.cpp on HP/UX.
2002-12-04 17:21:55 +00:00
mcs%netscape.com ddd73f9e96 Fix bug # 177771 - libssldap: keyfile password should be optional.
If a NULL keypasswd value is passed to ldapssl_enable_clientauth()
		then it is assumed that the application has already unlocked
		the key DB or has installed its own GetPassword callback.
	Also improved some error reporting.
2002-12-04 17:11:20 +00:00
seawood%netscape.com dfc7752e80 Fix egrep syntax. 2002-11-23 09:59:07 +00:00
seawood%netscape.com f1fe7bd2d7 Properly detect OS_ARCH when building on Win32 ME.
Bug #180822 r=dmose,wtc
2002-11-23 06:06:12 +00:00
mcs%netscape.com 2c34ca101f Fix bug # 177775 - libprldap: NSPR error is sometimes lost. 2002-11-15 21:03:19 +00:00
mcs%netscape.com e36dfed96b Fix bug # 177778 - ldap_set_option( NULL, ... ) resets ldap_debug to zero. 2002-11-15 21:01:43 +00:00
mcs%netscape.com 0f8e5bbf33 Use a name shorter than 32 chars. for the C LDAP API Internet Draft. 2002-11-15 20:58:29 +00:00
mcs%netscape.com 69fef69120 Fix bug # 163534 - remove Netscape Confidential and Proprietary marker
from errormap.c.
2002-11-15 20:18:50 +00:00
mcs%netscape.com ba53c14282 Fix bug # 38012 - 64bit issues within CRC-32 code.
Define 32-bit integral types in portable.h (nsldapi_int_32 and
	nsldapi_uint_32) and use them in the memcache crc32_convert()
	function.
2002-11-15 20:15:53 +00:00
mcs%netscape.com 305a31fde8 Fix bug # 179951 - libprldap "cross thread" memory leak.
The prldap_tsd_destroy() function (which is called when a
	thread exits) was not freeing the information contained within
	the PRLDAP_ErrorInfo structure. Added prldap_free_errorinfo()
	and a way to determine if that thread-private data looks like
	error information (the plei_magic field). At the moment, only
	one kind of thread-private data is stored anyway (the error
	information).

	The prldap_allocate_map() function, which is called when a new
	LDAP session is created, was blindly setting the thread-private
	error information pointer to NULL. But if a different thread
	created or used an LDAP session than called ldap_unbind(), old
	error information may have been left in memory. Now the error
	info. pointer is reset and reused, which was the original goal.
2002-11-14 23:07:27 +00:00
mcs%netscape.com bc21c3b807 Fix bug # 175727 - strict aliasing bugs in LDAP C SDK.
Avoid casts like (void**)&pRes; use temporary local variables
	instead.
2002-11-02 02:29:37 +00:00
mcs%netscape.com 5886fbab26 Fix bug # 169975 - LDAP memory cache accesses response
list w/o locking mutex.
2002-11-01 19:57:09 +00:00
mcs%netscape.com b037291669 Fix bug # 166189 - Segmentation fault on invalid filter string.
Check that a sequence of set has been created before using
	it inside ber_put_seqorset().
2002-11-01 15:23:29 +00:00
seawood%netscape.com 1393684038 Resolve symbols at link time for OpenBSD.
Bug #145136 r=dmose
2002-09-03 22:43:00 +00:00
dmose%netscape.com d37ca98e2c Make --enable-optimize --enable-debug builds easier to debug on linux (bug 157241), r=seawood@netscpae.com, mcs@netscape.com 2002-08-22 22:52:44 +00:00
seawood%netscape.com af0b601241 Fix build problem caused by having spaces in the username.
Bug #137059 r=dmose r=mcs
2002-08-10 10:37:25 +00:00
seawood%netscape.com e1dc00fc59 Misc build cleanup v1:
Cleanup win32 configure output.
Bug #161461 r=bryner
2002-08-08 21:45:20 +00:00
dmose%netscape.com d82433fe5e Fix OSF/1 build bustage (bug 144280). Patch from shanmu@netscape.com; r=dmose@netscape.com, sr=bienvenu@netscape.com, a=roc+moz@cs.cmu.edu 2002-07-12 19:29:52 +00:00
mcs%netscape.com 301341edf1 Do not try to package LDAP command line tools if they were
not built (that is, if BUILDCLU != 1).
2002-06-28 20:43:47 +00:00
mcs%netscape.com d5d7f839ee Fix bug # 153250 - need a way to set SSL options when using libssldap.
Added two new libssldap public functions: ldapssl_set_option() and
		ldapssl_get_option().
	Also fixed a bug in ldapsinit:do_ldapssl_connect() that sometimes
		caused PR_Close() to be called twice on an SSL file descriptor
		if an error occurred (once in do_ldapssl_connect() itself and
		once in the libprldap close function that is called from
		do_ldapssl_connect()).
	Also updated the NSPR and NSS "error code to string" mapping
		tables that are used by ldapssl_err2string().
	Also fixed a bug in common.c:ldaptool_print_lderror (LDAP command
		line tools) where we did not check for SSL errors when the
		error code was "can't connect."  We were only checking on
		"server down" errors.
2002-06-27 19:26:38 +00:00
mcs%netscape.com 409d643ab7 Fix bug # 152852 - referrals: port 0 used by default instead of port 389. 2002-06-21 20:14:02 +00:00
dmose%netscape.com 64210eb246 NetBSD build-system fix (bug 135027); r=seawood@netscape.com 2002-06-13 22:02:08 +00:00
djani%netscape.com 2a0a0aa506 Bug 143300: Support for files with >2GB size. Now, we compile with _LARGEFILE64_SOURCE tag and we use fopen/fopen64 accordingly. 2002-06-07 20:09:11 +00:00
seawood%netscape.com 7f7824249e Workaround the fact that OpenBSD doesn't have certain error defines.
Bug #145136 r=dmose
2002-05-17 23:49:56 +00:00
seawood%netscape.com cedbcebcf6 Sync config.guess & config.sub with official GNU copies.
Bug #140869 r=bryner
2002-05-17 23:44:58 +00:00
mcs%netscape.com 59766e80bc Fix 142883 - need option to build with Forte/Workshop 6 compiler
on Solaris 5.6.
	Added support for SOLARIS_USE_FORTE6=1 gmake option.
2002-05-09 16:50:55 +00:00
dmose%netscape.com 5454e5493a Fix clean/clobber targets to properly remove shared and static libraries (bug 136651). Patch from Philip K. Warren <pkw@austin.ibm.com>; r=dmose@netscape.com; sr=sspitzer@netscape.com. 2002-04-30 03:40:22 +00:00
dmose%netscape.com b392e6707d Fix build hiccup in autoconf build (bug 137723); patch from Colin Blake <colin@theblakes.com>; r=mcs@netscape.com, dmose@netscape.com; sr=sspitzer@netscape.com 2002-04-30 03:22:17 +00:00
dmose%netscape.com a9ef00186b Fix memory leak in libssldap and an incorrect error return in libprldap (bug 137017). r=mcs@netscape.com 2002-04-30 01:23:58 +00:00
dmose%netscape.com 3d6f2617d1 Only set PERL if it has not already been set (bug 137318). r=seawood@netscape.com 2002-04-26 23:33:52 +00:00
dmose%netscape.com 3faab993b1 Make nsldapi_os_connect_with_to correctly check error return from poll (bug 140101). Patch from Rich Megginson <richm@netscape.com>. r=dmose@netscape.com 2002-04-26 01:32:59 +00:00
dmose%netscape.com f682fd6985 Reinstate real_install target so that it will be possible to have an install target for Mozilla that works as expected (bug 138442); patch from Chris Seawood <cls@seawood.org>, r=dmose@netscape.com, mcs@netscape.com 2002-04-24 23:53:23 +00:00
dmose%netscape.com cb7df409b1 Repair autoconf confusion due to the disappearance of dirver.c (bug 139917). Autoconf buildsystem changes only; r=seawood@netscape.com 2002-04-24 23:46:34 +00:00
mcs%netscape.com 51467f9cd2 Fix bug # 138545 - more flexibility needed for pre-built components
location. Introduced component specific RELEASE_TREE macros, e.g.,
NSPR_RELEASE_TREE.
2002-04-24 15:08:06 +00:00
mcs%netscape.com 9eb969cb4f Fix bug # 139535 - ldapsearch: filter patterns that contain %* cause crash.
Avoid calling sprintf() if there is no valid filter pattern.
Also eliminated a few Linux compiler warnings.
2002-04-24 00:30:20 +00:00
mcs%netscape.com 7b317e6ec5 Fix bug # 138627 - mktemp() warnings when building ldapsearch.exe.
Use _mktemp() on Windows.
Remove a couple of unused local variables.
2002-04-22 17:42:22 +00:00
mcs%netscape.com 98246da621 Fix bug # 136910 - ldap build bustage on QNX. 2002-04-22 17:24:19 +00:00
mcs%netscape.com c58d684bcf Fix bug # 138612 - should use gethostbyname_r() on Linux. 2002-04-22 16:57:50 +00:00
mcs%netscape.com 34134923f2 Additional fix for bug # 81584 - strtok use and STRTOK on Linux. 2002-04-18 20:12:30 +00:00
mcs%netscape.com b652801632 Fix bug # 138248 - ldapsearch dumps core if -P and -K used together. 2002-04-18 19:30:12 +00:00
mcs%netscape.com 38d951a131 Improve comments. 2002-04-18 19:01:19 +00:00
mcs%netscape.com 6792e16d29 Fix bug # 99068 - Can't compile on NetBSD.
Fix bug # 121276 - use sigthreadmask instead of sigprocmask (AIX).
Fix bug # 81584 - strtok use and STRTOK on Linux.
	The charray() code now uses strtok_r() if available.
	strtok_r() is now used everywhere on Linux if available.
2002-04-18 19:00:29 +00:00
mcs%netscape.com 26fdb2d3b8 Add a comment near LDAP_NO_ATTRS and LDAP_ALL_USER_ATTRS. 2002-04-18 18:54:29 +00:00
mcs%netscape.com d06e8ab1a8 Fix bug # 132040 - LDAP tools need a "no man in the middle" option.
New libssldap public function: ldapssl_set_strength().
	New command line tool option: -3 ("no third").
Fix bug # 134035 - LDAP command line tools don't report vendor mismatch.
Improved error checks and reporting for SSL errors in tools.
2002-04-18 18:53:19 +00:00
mcs%netscape.com e4fcc0dce1 Revise SSL layer comment 2002-04-18 15:30:22 +00:00
mcs%netscape.com 4ed5ef1df7 correct Solaris $ORIGIN comment 2002-04-18 15:27:49 +00:00
mcs%netscape.com b5ff0fbc7c Fix bug # 122905 - ldap_url_search_s does not honor first argument ?
ldap_url_search() now uses the port from the LDAP * if no hostport
	is included in the URL. This is a change in behavior, but the old
	behavior was wrong.
2002-04-18 01:48:24 +00:00
mcs%netscape.com 1de980f593 Correct some comments to refer to the CONNECT extended I/O callback
rather than the non-existent SOCKET callback.
2002-04-18 01:30:46 +00:00
mcs%netscape.com 957e097166 Remove dirver.c and Makefile.client references to it (no longer used). 2002-04-18 01:25:49 +00:00
mcs%netscape.com 67a3aebf1c Add -v flag to native Solaris cc (enables stricter semantic checks,
and certain lint-like checks on .c files).
2002-04-18 01:23:00 +00:00
mcs%netscape.com 43a05a3e2a Revised fix to properly handle connect timeouts smaller than
1000ms on Windows and other platforms that do not have poll().
Patch provided by mhein@sun.com.
2002-04-18 01:15:04 +00:00
mcs%netscape.com 34e9fbea17 Merge onto the trunk all changes made on
ldapcsdk_50_client_branch between ldapcsdk_50_client_base
and ldapcsdk_50_client_branch-20020417-pre-trunk-merge.
2002-04-17 21:53:50 +00:00
dmose%netscape.com 0b81df5f44 add .fast-update 2002-03-26 22:17:48 +00:00
dmose%netscape.com a46a581892 LDAP C SDK v5.0 merge from ldapcsdk_branch_50 (at ldapcsdk_branch_50-20020326-pre-trunk-merge-tag). 2002-03-26 21:54:41 +00:00
mcs%netscape.com 16e33d3022 removed old project and .exp files. 2000-06-15 20:31:13 +00:00
dmose%mozilla.org 2ba786ebec updating license boilerplate 1999-11-02 01:46:24 +00:00
chuckb%netscape.com d361fcafd9 Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=3231 Thanks to lentz@process.com 1999-03-16 20:14:19 +00:00
chuckb%netscape.com b11ee5df76 Merge from NSCP repository (prior to rsync) 1999-03-16 19:57:34 +00:00
chuckb%netscape.com 891e1a7547 Merge from LDAPCSDK_19981015_BRANCH 1998-11-22 22:03:18 +00:00
chuckb%netscape.com 1bfb46572a Mac project 1998-08-12 10:54:12 +00:00
chuckb%netscape.com 6e36787d3f Manifest file 1998-08-12 10:52:51 +00:00
chuckb%netscape.com c30c0cc3f6 DIRECTORY_C_SDK_30_BRANCH to TRUNK merge 1998-08-12 10:35:35 +00:00
cboatwri 7c38ae1baf Added additional tcp-ip stuff for mac project 1998-05-29 23:08:33 +00:00
cboatwri 93bdc70ecb Added makefile for unix 1998-05-29 22:33:50 +00:00
cboatwri 20aa18e6a6 Added Directory (ldap) SDK source files for public release 1998-05-28 04:29:26 +00:00
cboatwri 86ebc1d042 Added Directory (ldap) SDK source files for public release 1998-05-28 04:23:42 +00:00