Commit Graph

575 Commits

Author SHA1 Message Date
Kurt Zeilenga
77cc20be52 Lock (connections_mutex) should be acquired by caller. 1999-05-27 02:16:39 +00:00
Kurt Zeilenga
b458560a9e Add assert( s != NULL ) 1999-05-27 01:36:38 +00:00
Kurt Zeilenga
ce71f6f0dc Update main comment. 1999-05-26 22:25:45 +00:00
Julio Sánchez Fernández
6a66967eef Fix compilation errors, mod declared as LDAPMod, but used inconsistently
as LDAPMod (but incorrectly).  Please review this change, I am not sure
I understood what was intended.
1999-05-26 19:33:23 +00:00
Juan Gomez
cafd83f168 Relocated nis schema. 1999-05-26 18:37:30 +00:00
Juan Gomez
4bb24d506a Mirror modrdn special case fix to db2. 1999-05-26 12:29:54 +00:00
Juan Gomez
d45daae091 Fix name typo 1999-05-26 12:27:06 +00:00
Juan Gomez
335f9f8f32 Make bdb2i_modify_internal() public. 1999-05-26 12:22:10 +00:00
Juan Gomez
14a02c40c0 Make bdb2i_back_modify_internal() public so it can be reused from
modrdn.
1999-05-26 12:19:31 +00:00
Juan Gomez
128f31dc3c Added fix to allow modrdn whose new rdn was already an attr value. 1999-05-26 11:59:54 +00:00
Juan Gomez
c5c91399ab Again mirroring LDAMP_MOD_SOFTADD changes.... 1999-05-26 11:54:39 +00:00
Juan Gomez
0512d17f07 Mirroring changes related to indexing to db2 backend...
someone better comes up with a solution for this replication soon!
1999-05-26 11:51:49 +00:00
Juan Gomez
03740bd1f4 Added support for LDAP_MOD_SOFTADD. 1999-05-26 11:45:17 +00:00
Juan Gomez
5a16e3b9e9 Fixed index file naming bug and added support for LDAP_MOD_SOFTADD. 1999-05-26 11:41:14 +00:00
Juan Gomez
25f64385ca Add LDAP_MOD_SOFTADD const. 1999-05-26 11:30:18 +00:00
Juan Gomez
5b272f193f Added include <ac/time.h> needed for struct timeval... 1999-05-26 10:45:51 +00:00
Howard Chu
587837717b Obsolete file. Oops. 1999-05-26 02:52:37 +00:00
Howard Chu
967d1dcb2d For ITS#157: Added LDAP backend for slapd, which also required adding
LDAP_OPT_MATCH_STRING to ldap.h and libldap/options.c.
1999-05-26 02:35:20 +00:00
Howard Chu
31a0c4a917 For ITS#158: keep mixed-case backend suffix in addition to upcased suffix. 1999-05-25 21:40:40 +00:00
Kurt Zeilenga
1a7d72e629 setsockopt( SO_KEEPALIVE ) on the listen() socket. Will be
inherited on accept().
1999-05-24 22:20:34 +00:00
Kurt Zeilenga
42c5a40b78 Implement keep alives. Probably should be a configuration option. 1999-05-24 21:57:26 +00:00
Kurt Zeilenga
84b0693eee Remove empty else and other minor cleanup. 1999-05-23 00:26:47 +00:00
Kurt Zeilenga
22d98c85c3 ldap.h:
added comments
 removed LDAP_MAX_ATTR_LEN
 removed LDAP_COMPAT* from <ldap.h> but not code.
 move LDAP_DEFAULT_REFHOPCOUNT to ldap-int.h
 added experimental options macros
 added LDAP_CONTROL_REFERRALS macros
libldap:
 Replace ld_attrbuffer with per use allocated attributed.
 ldap_first/next_attribute attributes now must be freed (as per draft).
 unifdef -DLDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
1999-05-22 06:11:48 +00:00
Kurt Zeilenga
6b45dde2e6 Removed too much LINT. 1999-05-22 00:31:36 +00:00
Kurt Zeilenga
e05688d25e Remove LINT. 1999-05-21 23:15:47 +00:00
Kurt Zeilenga
450b02ca58 s/WIN32/HAVE_WINSOCK/
remove old Version.c
1999-05-21 03:53:37 +00:00
Kurt Zeilenga
60a068ae89 don't free connections[i] 1999-05-21 03:52:08 +00:00
Kurt Zeilenga
6762f1d48a Should not have freed ber_buf when freeing temp copy 1999-05-20 22:01:38 +00:00
Juan Gomez
1426f2b1bd Do code reuse through ldbm_modify_internal(). 1999-05-19 18:27:25 +00:00
Julio Sánchez Fernández
9a7b90e0e4 Fixed segfault in a ldif2ldbm-bdb2 child 1999-05-19 14:15:15 +00:00
Julio Sánchez Fernández
28a0061edc Added missing semicolon. 1999-05-19 12:21:46 +00:00
Julio Sánchez Fernández
5fb4577057 Added missing declaration 1999-05-19 12:21:11 +00:00
Kurt Zeilenga
d8cb38c2ef method tag should be unsigned long.
connection assert should use s, not i.
1999-05-19 07:15:16 +00:00
Juan Gomez
150e105f41 Fixed a memory leak and getting ready to reuse some code between
modify and modrdn.
1999-05-19 04:00:58 +00:00
Kurt Zeilenga
dc07e765f2 Vienna Bulk Commit
This commit includes many changes.  All changes compile under NT but
have not been tested under UNIX.

A Summary of changes (likely incomplete):

NT changes:
	Removed lint.
	Clean up configuration support for "Debug", "Release", "SDebug",
		and "SRelease" configurations.
	Share output directories for clients, libraries,
		and slapd.  (maybe they should be combined further
		and moved to build/{,S}{Debug,Release}).
	Enable threading when _MT is defined.
	Enable debuging when _DEBUG is defined.
	Disable setting of NDEBUG under Release/SRelease.  Asserts
		are disabled in <ac/assert.h> when LDAP_DEBUG is not
		defined.
	Added 'build/main.dsp' Master project.
	Removed non-slapd projects from slapd.dsp (see main.dsp).
	Removed replaced many uses of _WIN32 macro with feature based
		macros.

ldap_cdefs.h changes
	#define LDAP_CONST const
		(see below)
	#define LDAP_F(type) LDAP_F_PRE type LDAP_F_POST
		To allow specifiers to be added before and after
		the type declaration.  (For DLL handling)

LBER/LDAP changes
	Namespace changes:
		s/lber_/ber_/ for here and there.
		s/NAME_ERROR/LDAP_NAME_ERROR/g
	Deleted NULLMSG and other NULL* macros for namespace reasons.
	"const" libraries.  Installed headers (ie: lber.h, ldap.h)
		use LDAP_CONST macro.  Normally set to 'const' when
		__STDC__.  Can be set externally to enable/disable
		'constification' of external interface.  Internal
		interface always uses 'const'.  Did not fix warnings
		in -lldif (in lieu of new LDIF parser).

	Added _ext API implementations (excepting search and bind).
		Need to implement ldap_int_get_controls() for reponses
		with controls.

	Added numberous assert() checks.

LDAP_R
	_MT defines HAVE_NT_THREADS
	Added numberous assert() checks.
	Changed ldap_pthread_t back to unsigned long.  Used cast
	to HANDLE in _join().

LDBM
	Replaced _WIN32 with HAVE_SYSLOG

ud
	Added version string if MKVERSION is not defined.  (MKVERSION
		needs to be set under UNIX).

slapd
	Made connection sockbuf field a pointer to a sockbuf.  This
		removed slap.h dependency on lber-int.h.  lber-int.h now only
		included by those files needing to mess with the sockbuf.
	Used ber_* functions/macros to access sockbuf internals whenever
		possible.
	Added version string if MKVERSION is not defined.  (MKVERSION
		needs to be set under UNIX).
	Removed FD_SET unsigned lint

slapd/tools
	Used EXEEXT to added ".exe" to routines.  Need to define EXEEXT
		under UNIX.

ldappasswd
	Added ldappasswd.dsp.  Ported to NT.  Used getpid() to seed rand().

nt_debug
	Minor cleanup.  Added "portable.h" include and used <ac/*.h> where
	appropriate.  Added const to char* format argument.
1999-05-19 01:12:33 +00:00
Gary Williams
e72b5e5c61 use mutex to protect connection in connection_destroy until task is complete 1999-05-11 13:42:57 +00:00
Gary Williams
2b17be8329 Move maxkids = cmdkids after fork of ldif2id2children. Also fix NT waiting for kids 1999-05-07 14:30:31 +00:00
Ben Collins
d4f4f8f197 Moved db1/db.h check to the db1 marco in openldap.m4. Also added check for HAVE_DB1_DB_H for which header to include since it's only defined when using db1 1999-05-07 01:27:16 +00:00
Ben Collins
74fa98dfa3 Missing # in front of else in the sockinit #if's 1999-05-07 01:10:03 +00:00
Gary Williams
fe924b727c ldap_pvt_thread_kill doesn't work on NT, so use hit_socket to break select. Also move WSAStartup so it gets called before _any_ socket calls 1999-05-06 16:32:11 +00:00
Gary Williams
5d6923c655 move bind_addr to make it externally available. NT needs to use the address to write to the listen socket to break out of the select 1999-05-06 16:30:48 +00:00
Gary Williams
d20143ea50 add wsa_err.c to project 1999-05-06 16:29:19 +00:00
Gary Williams
4e0504f4b8 routine to get string for last WSA error on NT 1999-05-06 16:28:52 +00:00
Gary Williams
51d7259715 define Versionstr, I'm sure there's a better way, but I need to get this built 1999-05-06 15:00:05 +00:00
Gary Williams
dc0bcf2e94 add root_dse.c 1999-05-06 14:51:11 +00:00
Gary Williams
ed703cbc5e detect debug level and output to stdout 1999-05-06 14:47:55 +00:00
Gary Williams
628f679f0b move socket.h before errno.h so EWOULDBLOCK is defined on NT 1999-05-06 14:46:48 +00:00
Julio Sánchez Fernández
30ffc91788 Initial version 1999-05-06 04:53:52 +00:00
Kurt Zeilenga
a42cf36dd2 Fix typos. 1999-04-30 21:32:12 +00:00
Hallvard Furuseth
ca7dba5182 ITS#141: Add ldbm_ignore_nextid_file, since tools/ldif2* handles it privately 1999-04-30 05:24:16 +00:00