Commit Graph

67 Commits

Author SHA1 Message Date
seawood%netscape.com
f365ac16a3 Hardcode the use of Sun's ld & ranlib since they are the only ones supported.
Bug #181382 r=dmose


git-svn-id: svn://10.0.0.236/trunk@135426 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 21:44:49 +00:00
djani%netscape.com
72066a575b 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().
git-svn-id: svn://10.0.0.236/trunk@134802 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 19:10:17 +00:00
mcs%netscape.com
dd4c8f8139 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.


git-svn-id: svn://10.0.0.236/trunk@134797 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 17:21:55 +00:00
mcs%netscape.com
cc5865f4c9 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.


git-svn-id: svn://10.0.0.236/trunk@134796 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 17:11:20 +00:00
seawood%netscape.com
ae0f08c6b0 Fix egrep syntax.
git-svn-id: svn://10.0.0.236/trunk@134365 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-23 09:59:07 +00:00
seawood%netscape.com
f7a5f8eec0 Properly detect OS_ARCH when building on Win32 ME.
Bug #180822 r=dmose,wtc


git-svn-id: svn://10.0.0.236/trunk@134362 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-23 06:06:12 +00:00
mcs%netscape.com
6e31d32214 Fix bug # 177775 - libprldap: NSPR error is sometimes lost.
git-svn-id: svn://10.0.0.236/trunk@133925 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 21:03:19 +00:00
mcs%netscape.com
6107849741 Fix bug # 177778 - ldap_set_option( NULL, ... ) resets ldap_debug to zero.
git-svn-id: svn://10.0.0.236/trunk@133924 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 21:01:43 +00:00
mcs%netscape.com
62ecca7ba7 Use a name shorter than 32 chars. for the C LDAP API Internet Draft.
git-svn-id: svn://10.0.0.236/trunk@133923 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 20:58:29 +00:00
mcs%netscape.com
2967118f83 Fix bug # 163534 - remove Netscape Confidential and Proprietary marker
from errormap.c.


git-svn-id: svn://10.0.0.236/trunk@133920 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 20:18:50 +00:00
mcs%netscape.com
4a841edc41 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.


git-svn-id: svn://10.0.0.236/trunk@133919 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 20:15:53 +00:00
mcs%netscape.com
777286fdd1 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.


git-svn-id: svn://10.0.0.236/trunk@133859 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 23:07:27 +00:00
mcs%netscape.com
5d58acb600 Fix bug # 175727 - strict aliasing bugs in LDAP C SDK.
Avoid casts like (void**)&pRes; use temporary local variables
	instead.


git-svn-id: svn://10.0.0.236/trunk@132897 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-02 02:29:37 +00:00
mcs%netscape.com
17b2cd625b Fix bug # 169975 - LDAP memory cache accesses response
list w/o locking mutex.


git-svn-id: svn://10.0.0.236/trunk@132824 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 19:57:09 +00:00
mcs%netscape.com
21a4001728 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().


git-svn-id: svn://10.0.0.236/trunk@132819 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 15:23:29 +00:00
seawood%netscape.com
23677f1f3e Resolve symbols at link time for OpenBSD.
Bug #145136 r=dmose


git-svn-id: svn://10.0.0.236/trunk@128753 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:43:00 +00:00
dmose%netscape.com
80b3bbc5f9 Make --enable-optimize --enable-debug builds easier to debug on linux (bug 157241), r=seawood@netscpae.com, mcs@netscape.com
git-svn-id: svn://10.0.0.236/trunk@127898 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-22 22:52:44 +00:00
seawood%netscape.com
28a70f6839 Fix build problem caused by having spaces in the username.
Bug #137059 r=dmose r=mcs


git-svn-id: svn://10.0.0.236/trunk@126994 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 10:37:25 +00:00
seawood%netscape.com
af3c356a44 Misc build cleanup v1:
Cleanup win32 configure output.
Bug #161461 r=bryner


git-svn-id: svn://10.0.0.236/trunk@126804 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 21:45:20 +00:00
dmose%netscape.com
87d338aa27 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
git-svn-id: svn://10.0.0.236/trunk@125102 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 19:29:52 +00:00
mcs%netscape.com
7ef88eeb85 Do not try to package LDAP command line tools if they were
not built (that is, if BUILDCLU != 1).


git-svn-id: svn://10.0.0.236/trunk@124302 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 20:43:47 +00:00
mcs%netscape.com
b7046746c2 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.


git-svn-id: svn://10.0.0.236/trunk@124204 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:26:38 +00:00
mcs%netscape.com
b451b16592 Fix bug # 152852 - referrals: port 0 used by default instead of port 389.
git-svn-id: svn://10.0.0.236/trunk@123805 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 20:14:02 +00:00
dmose%netscape.com
6ef6e0913f NetBSD build-system fix (bug 135027); r=seawood@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123253 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:02:08 +00:00
djani%netscape.com
9ac81ff249 Bug 143300: Support for files with >2GB size. Now, we compile with _LARGEFILE64_SOURCE tag and we use fopen/fopen64 accordingly.
git-svn-id: svn://10.0.0.236/trunk@122893 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 20:09:11 +00:00
seawood%netscape.com
0a83abb080 Workaround the fact that OpenBSD doesn't have certain error defines.
Bug #145136 r=dmose


git-svn-id: svn://10.0.0.236/trunk@121800 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 23:51:37 +00:00
seawood%netscape.com
edc3e79ee6 Sync config.guess & config.sub with official GNU copies.
Bug #140869 r=bryner


git-svn-id: svn://10.0.0.236/trunk@121799 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 23:44:58 +00:00
mcs%netscape.com
430bde8f9d Fix 142883 - need option to build with Forte/Workshop 6 compiler
on Solaris 5.6.
	Added support for SOLARIS_USE_FORTE6=1 gmake option.


git-svn-id: svn://10.0.0.236/trunk@121171 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-09 16:50:55 +00:00
dmose%netscape.com
f1bd22715a 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.
git-svn-id: svn://10.0.0.236/trunk@120281 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 03:40:22 +00:00
dmose%netscape.com
b65fd89881 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
git-svn-id: svn://10.0.0.236/trunk@120280 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 03:24:24 +00:00
dmose%netscape.com
4eea0e428a Fix memory leak in libssldap and an incorrect error return in libprldap (bug 137017). r=mcs@netscape.com
git-svn-id: svn://10.0.0.236/trunk@120270 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 01:23:58 +00:00
dmose%netscape.com
e95f1df257 Only set PERL if it has not already been set (bug 137318). r=seawood@netscape.com
git-svn-id: svn://10.0.0.236/trunk@120040 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-26 23:33:52 +00:00
dmose%netscape.com
6dfc652588 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
git-svn-id: svn://10.0.0.236/trunk@119927 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-26 01:32:59 +00:00
dmose%netscape.com
df786edb35 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
git-svn-id: svn://10.0.0.236/trunk@119786 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 23:53:23 +00:00
dmose%netscape.com
828c2c2e4f Repair autoconf confusion due to the disappearance of dirver.c (bug 139917). Autoconf buildsystem changes only; r=seawood@netscape.com
git-svn-id: svn://10.0.0.236/trunk@119783 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 23:46:34 +00:00
mcs%netscape.com
638da2e24c Fix bug # 138545 - more flexibility needed for pre-built components
location. Introduced component specific RELEASE_TREE macros, e.g.,
NSPR_RELEASE_TREE.


git-svn-id: svn://10.0.0.236/trunk@119712 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 15:08:06 +00:00
mcs%netscape.com
2fe4ecc1c7 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.


git-svn-id: svn://10.0.0.236/trunk@119657 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 00:30:20 +00:00
mcs%netscape.com
2755fc9aff Fix bug # 138627 - mktemp() warnings when building ldapsearch.exe.
Use _mktemp() on Windows.
Remove a couple of unused local variables.


git-svn-id: svn://10.0.0.236/trunk@119552 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 17:42:22 +00:00
mcs%netscape.com
ce6dabf851 Fix bug # 136910 - ldap build bustage on QNX.
git-svn-id: svn://10.0.0.236/trunk@119551 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 17:24:19 +00:00
mcs%netscape.com
f8a28b293f Fix bug # 138612 - should use gethostbyname_r() on Linux.
git-svn-id: svn://10.0.0.236/trunk@119549 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-22 16:57:50 +00:00
mcs%netscape.com
40b4a0e2fd Additional fix for bug # 81584 - strtok use and STRTOK on Linux.
git-svn-id: svn://10.0.0.236/trunk@119295 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 20:12:30 +00:00
mcs%netscape.com
4d5a53f17c Fix bug # 138248 - ldapsearch dumps core if -P and -K used together.
git-svn-id: svn://10.0.0.236/trunk@119288 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 19:30:12 +00:00
mcs%netscape.com
3189937825 Improve comments.
git-svn-id: svn://10.0.0.236/trunk@119284 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 19:01:19 +00:00
mcs%netscape.com
696551982a 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.


git-svn-id: svn://10.0.0.236/trunk@119283 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 19:00:29 +00:00
mcs%netscape.com
8dd634aa97 Add a comment near LDAP_NO_ATTRS and LDAP_ALL_USER_ATTRS.
git-svn-id: svn://10.0.0.236/trunk@119281 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 18:54:29 +00:00
mcs%netscape.com
0c1f40ad50 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.


git-svn-id: svn://10.0.0.236/trunk@119280 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 18:53:19 +00:00
mcs%netscape.com
fabb0d49a2 Revise SSL layer comment
git-svn-id: svn://10.0.0.236/trunk@119271 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 15:30:22 +00:00
mcs%netscape.com
fa7b3f4568 correct Solaris $ORIGIN comment
git-svn-id: svn://10.0.0.236/trunk@119270 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 15:27:49 +00:00
mcs%netscape.com
51df7d919a 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.


git-svn-id: svn://10.0.0.236/trunk@119267 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 01:48:24 +00:00
mcs%netscape.com
7756ad5b65 Correct some comments to refer to the CONNECT extended I/O callback
rather than the non-existent SOCKET callback.


git-svn-id: svn://10.0.0.236/trunk@119266 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 01:30:46 +00:00