Juan Gomez
90ebcb8bd9
Added support for newSuperior.
1999-03-24 21:45:15 +00:00
Juan Gomez
dccfdb97e9
Added a new function: build_new_dn(), which builds new dn for entries
...
being renamed through modrdn/moddn. This in preparation to add support
for MODDN v3.
1999-03-24 20:26:43 +00:00
Kurt Zeilenga
f3774d6ea3
Fix unlock bug in connection_read/write. Fix connection_read() to
...
ignore input when connection is closing.
1999-03-23 01:57:48 +00:00
Kurt Zeilenga
f1e15ddfa2
Improved "closing" handling. Remove fd from read set when state
...
changes to closing. Need to add protection against read set races.
1999-03-23 00:38:57 +00:00
Kurt Zeilenga
6553a1fc77
Fix c_mutex typo.
1999-03-22 19:46:44 +00:00
Kurt Zeilenga
f8b9b03d53
Add trace to connection_get() to aid debugging.
1999-03-22 19:39:54 +00:00
Kurt Zeilenga
4b65e74fa8
slap_set_time() is no longer necessary.
1999-03-22 19:16:22 +00:00
Kurt Zeilenga
c9eacbdc64
Round 2 of connection management changes.
...
Mainly updated back-bdb2, back-passwd, back-shell to use slap_get_time().
1999-03-22 07:38:27 +00:00
Kurt Zeilenga
8f02beada9
PROTOTYPE: New connection management infrastructure designed to
...
remove race conditions on connection close.
BROKEN: various counters for dn=monitor.
Initial testing on FreeBSD (with and without pthreads) was successfull.
Have not yet tested preemptive threading environments.
Have not built against backends other than LDBM.
1999-03-22 07:14:54 +00:00
Kurt Zeilenga
f999e1350d
Provide global assert solution. <ac/assert.h> (new) is now included
...
by portable.h with NDEBUG undefined. This makes assert() is always
available and automatically disables itself when LDAP_DEBUG is undefined.
I've included a basic assert() for pre-STDC compilers. It relies on
abort() which may not actually be available. (well replace abort()
with whatever is appropriate if and when we're faced with a pre-STDC
compiler that doesn't have assert()).
1999-03-20 03:13:24 +00:00
Kurt Zeilenga
ab64c237f7
Use calloc properly... could result in too few bytes being allocated.
...
calloc(1, nelem*size) -> calloc(nelem, size)
1999-03-20 01:25:11 +00:00
Julio Sánchez Fernández
94b8e0830e
slapd.conf and friends were being modified during the install step
1999-03-18 20:36:42 +00:00
Kurt Zeilenga
5a4babde00
Add DEFAULT_EDITOR to ldapconfig.h. Used by ldbmtest and ud.
1999-03-17 22:34:17 +00:00
Kurt Zeilenga
1676d61130
Use HAVE_PW_GECOS when needed.
1999-03-17 22:27:46 +00:00
Kurt Zeilenga
3550bc48c0
Add slapd -a address support. Allows you to bind to a specific
...
address. Useful for running multiple servers in a virtual hosting
environment.
Modified test001-ldif2ldbm to verify this functionality. Assumes
localhost is 127.0.0.1.
1999-03-17 03:56:25 +00:00
Kurt Zeilenga
4f60044d29
First cut at bind race fix. Passes our test suite at least.
1999-03-16 23:33:30 +00:00
Kurt Zeilenga
cc38cf6534
Cast pointer to strcasecmp to AVL_CMP.
1999-03-16 21:55:00 +00:00
Kurt Zeilenga
fa81f43f04
Initial check of connection states. Have only implemented
...
SLAP_C_ACTIVE vs SLAP_C_INACTIVE. Need to implement BINDING and CLOSING.
Added fields tracking pending (on bind) ops. Could also be used to
implement per-connection thread limits.
1999-03-16 02:59:59 +00:00
Ben Collins
0924180fa8
Used new ldap_(un)lockf() functions
1999-03-13 20:34:27 +00:00
Ben Collins
6023a2fe42
#ifdef for <sys/file.h>
1999-03-13 01:07:15 +00:00
Juan Gomez
f8a0a67e5f
Fixed a bug related to the deallocation of memory for new_dn and new_ndn,
...
They must not be deallocated since they are used by the cache entry.
1999-03-10 22:17:54 +00:00
Hallvard Furuseth
b6d85256e7
"const"ify some static arrays, and related parameters/variables
1999-03-09 08:40:36 +00:00
Juan Gomez
c2a0632e63
Added support for deleteoldrdn.
1999-03-09 08:07:57 +00:00
Hallvard Furuseth
5ef648a109
Silence warnings: Remove unused variables. Enclose some initializers in in {}.
1999-03-09 07:15:35 +00:00
Hallvard Furuseth
ead12e1cda
include lutil.h to get lutil_passwd()
1999-03-09 06:59:33 +00:00
Hallvard Furuseth
d3aa0e7129
Bugfix: Missing parens in `status = ldap_pvt_thread_create(...) != 0'
1999-03-09 06:27:36 +00:00
Juan Gomez
b9f9b8805a
Fixed type by changing rdn_type to new_rdn_type.
1999-03-09 00:42:57 +00:00
Kurt Zeilenga
0b9c3953f2
Add dcobject & uidobject auxilary object classes. Useful for
...
using dc naming components with structural object classes that
don't allow a 'dc' attribute.
1999-03-08 22:19:48 +00:00
Juan Gomez
23b3217b66
Added software to add the new rdn as an attribute to the entry.
...
(First step towards full LDAPv2 support).
1999-03-07 09:31:54 +00:00
Juan Gomez
845bf15d89
Fixed typo in
...
conn->c_protocol == LDAP_VERSION3;
1999-03-07 09:18:25 +00:00
Hallvard Furuseth
3277a27b10
Remove unused variables
1999-03-06 16:29:05 +00:00
Hallvard Furuseth
984bdfa605
Remove unused variables
1999-03-06 06:33:34 +00:00
Kurt Zeilenga
588a458d78
MSVC5 cleanup...
...
lber: ifdef'ed out lber_..set_nonblock() function because it used ioctl's.
If it remains, it needs to be written to support various methods for
setting non-blocking. ioctls should probably be last choice. configure
could detect existance of fcntl(), ioctl(), etc.
bdb2:
added .dsp/.dsw files and did some basic cleanup (still needs work).
1999-03-06 00:57:25 +00:00
Juan Gomez
654f21b237
Implemented newSuperior handling.
1999-03-05 19:14:23 +00:00
Kurt Spanier
6da27229d9
1. Fix of ldbmcat segmentation fault bug (ITS#85 and #81 ).
...
2. Make ldbm_Env a failure-safe entity.
1999-03-05 11:24:42 +00:00
Kurt Spanier
3f76ee7a0b
Make dbEnv a private toy of back-bdb2.
1999-03-05 10:25:55 +00:00
Juan Gomez
3ba99a75ef
Added parameter newSuperior in preparation to support
...
LDAP v3 MODDN request.
1999-03-05 03:38:12 +00:00
Juan Gomez
07a5f765bb
Added parsing of newSuperior field for requests that
...
carry it. This in preparation to support LDAP v3 MODDN
request.
1999-03-05 03:37:49 +00:00
Juan Gomez
9fc5e8a409
Rename
...
int add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
to
int bdb2i_add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
So that ldbm and db2 backends can coexist.
1999-03-05 01:33:32 +00:00
Juan Gomez
b41a79fe16
Renamed
...
int add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
to
int bdb2i_add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
So that ldbm and db2 backend can coexist
1999-03-05 01:28:38 +00:00
Hallvard Furuseth
47093d0617
Protoize cnvt_str2int()
1999-03-04 13:51:14 +00:00
Hallvard Furuseth
94c6048f2f
Print entry ID with format %ld, not %d
1999-03-04 13:18:49 +00:00
Hallvard Furuseth
536aab01e4
Print tag with format %lu, not %d
1999-03-04 13:17:28 +00:00
Hallvard Furuseth
6f8c9a7890
Use HAVE_STDARG to choose between stdarg and varargs version of debug_printf.
1999-03-04 12:58:56 +00:00
Juan Gomez
34861cd15b
Added prototypes for rdn_attr_type() and rdn_attr_value(), which are
...
utility functions added to support the modrdn v3 implementation.
These parse and rdn of the form "attribute_type = attribute_value"
returning "attribute_type" and "attribute_value" respectively.
1999-03-04 00:35:45 +00:00
Juan Gomez
943cfaf41a
Added get_next_substring(), rdn_attr_type(), and rdn_attr_value() which
...
are needed in the implementation of modrdn v3.
1999-03-04 00:31:19 +00:00
Juan Gomez
68a413a601
Made add_values(), delete_values(), and replace_values() so they can be
...
used in implementing modrdn v3.
1999-03-03 22:55:28 +00:00
Juan Gomez
ddf04f5900
Made add_values(), delete_values(), and replace_values() so they can be
...
used in implementing modrdn v3.
1999-03-03 22:00:16 +00:00
Juan Gomez
98c2a61313
Made add_values(), delete_values(), replace_values() so they can be used
...
for implementing modrdn v3.
1999-03-03 21:58:51 +00:00
Hallvard Furuseth
3250aef49c
function pointers are incompatible with `void *'; remove NULL or replace with 0
1999-03-03 18:49:59 +00:00