Juan Gomez
c8fac1864c
Added at_ooficial_type() for uniform naming of index files.
1999-06-11 20:41:07 +00:00
Kurt Zeilenga
3cfd58eed8
EXPERIMENTAL: move slapd_remove to connections_read/_write as they
...
acquire c_mutex.
1999-06-11 19:10:45 +00:00
Kurt Zeilenga
35eff96dad
Add Debug to help sort out race condition.
1999-06-10 22:21:51 +00:00
Kurt Zeilenga
368628e9d5
Close inactive streams instead of asserting condition.
1999-06-10 22:06:05 +00:00
Kurt Zeilenga
571e8c098d
Add cheap EBADF loop protection.
1999-06-10 21:11:21 +00:00
Kurt Zeilenga
9c793f15f4
Fix typo in last commit.
1999-06-10 15:55:00 +00:00
Kurt Zeilenga
446ef413f6
Don't shutdown when select() returns EBADF.
1999-06-10 03:11:22 +00:00
Kurt Zeilenga
64bb1a99f4
Fix unprotected (and bad) FD_SET asserts.
1999-06-10 02:52:51 +00:00
Kurt Zeilenga
5555cc26b9
disable referral directive.
1999-06-09 23:43:22 +00:00
Julio Sánchez Fernández
63498d1a21
Removed unnecessary definition that is already in core.schema.
1999-06-09 11:08:10 +00:00
Julio Sánchez Fernández
7c4fb74a19
Fixed some syntax errors.
1999-06-08 17:41:09 +00:00
Kurt Zeilenga
ccad4c8225
s/LDAP_OPT_MATCH_STRING/LDAP_OPT_MATCHED_DN/
1999-06-05 20:27:43 +00:00
Kurt Zeilenga
9a0caa6258
Initialize connection pointer to NULL else won't be able to
...
detect connection table full properly.
1999-06-04 22:57:19 +00:00
Kurt Zeilenga
95889bc7d8
Fix typo in previous commit.
1999-06-04 22:15:35 +00:00
Kurt Zeilenga
d3181b56b8
Add diagnostics.
1999-06-04 21:43:06 +00:00
Kurt Zeilenga
22e981eef3
Close hit socket.
1999-06-04 21:42:25 +00:00
Kurt Zeilenga
5b218b7671
Move WAKE_LISTENER call behind &connection_mutex to eliminate
...
race condition on file descriptor sets.
1999-06-04 01:05:29 +00:00
Kurt Zeilenga
ef3b182380
Add cn=monitor, cn=config, cn=schema to namingContexts.
1999-06-03 19:58:05 +00:00
Kurt Zeilenga
9fef42d3f8
Enable browsing info in MSVC debugging configurations.
...
Toy with dllimport/dllexport stuff (think I'll leave the real dll work to
somebody else).
Added ldap_strdup() wrapper of ber_strdup().
1999-06-03 18:24:22 +00:00
Kurt Zeilenga
acd57577f4
s/DEFAULT_DIRSEP/DIRSEP/
1999-06-03 01:03:52 +00:00
Kurt Zeilenga
21c70857f1
s/<stdlib.h>/<ac/stdlib.h>/
1999-06-03 00:37:44 +00:00
Kurt Zeilenga
f472d3abcf
No anonymous unions.
1999-06-02 22:40:58 +00:00
Kurt Zeilenga
bed6465529
Make first argument of *_get_option const (experimental).
...
Make _MOD_SOFTADD 0x1000 to minimize chance of conflict with legit changes
to API spec.
Fix memory leak in ldap_mods_free() and minor memory allocator issues.
1999-06-02 21:38:48 +00:00
Kurt Zeilenga
c10742a7b5
Add prototype for at_add().
1999-06-02 21:29:45 +00:00
Kurt Zeilenga
e44c8504f3
value_normalize can change the length of value. Fixed
...
use in index_add_value(), but should modify value_normalize
to use a struct berval * instead of a char* pointer...
1999-06-02 20:29:35 +00:00
Kurt Zeilenga
12176a0af9
Update Release/SRelease include paths
1999-06-02 04:08:50 +00:00
Kurt Zeilenga
14b04f4d0b
Fix -ULDAP_DEBUG lint.
1999-06-02 03:09:40 +00:00
Kurt Zeilenga
fea91d7ad2
Used pre-normalized len of e_dn instead of just using e_ndn (and it's len).
1999-06-02 00:09:18 +00:00
Kurt Zeilenga
6d6e0dde91
Shouldn't need <sys/stat.h>.
1999-06-01 18:57:34 +00:00
Julio Sánchez Fernández
ae4c85b84f
Fudge oc_kind on synthesized objectclasses so that they are STRUCTURAL
...
instead of ABSTRACT.
1999-05-31 15:17:42 +00:00
Kurt Zeilenga
4c14412929
Remove lint.
1999-05-31 05:39:51 +00:00
Julio Sánchez Fernández
21577a0966
Some definition reordering to satisfy dependencies.
1999-05-30 00:08:59 +00:00
Julio Sánchez Fernández
ae481022f9
Oops, fp_parse_line tokenizes in place, so we need to take a copy of
...
input before letting fp_parse_line ruin it.
1999-05-30 00:07:40 +00:00
Julio Sánchez Fernández
663d7e8627
Lose previously commented out old code.
...
Robustness fixes.
Fixed error reporting of non-existing attribute superior.
1999-05-30 00:05:24 +00:00
Kurt Zeilenga
fbc0bd013e
Minor adjustments to better handle NT vs UNIX.
1999-05-29 18:57:23 +00:00
Kurt Zeilenga
4e5ed2dffc
Changed lc_conn to be a pointer to a BerElement to aid in state management.
...
Added validation to exposed opaque data structures (BerElement, Sockbuf,
and LDAP). Added macros BER_VALID, SOCKBUF_VALID, LDAP_VALID.
Added ber_pvt_ber_bytes() and ber_pvt_ber_remaining() macros to hide
some ber internals. These really should be handled by ber_get_option().
1999-05-28 19:33:05 +00:00
Julio Sánchez Fernández
a97e3e94e6
Provide (and use) #define shortcuts
...
Really kill global_oc & global_at
Publish schema through LDAP (really, it's there at last :-)
1999-05-28 18:56:47 +00:00
Julio Sánchez Fernández
7f357399cf
First step in new schema support.
1999-05-28 14:27:07 +00:00
Kurt Zeilenga
a0d2b3c5a0
Apply string literal strdup fix to BDB2.
1999-05-27 23:06:53 +00:00
Kurt Zeilenga
0ce6ddb80c
Make a copy of "dn" to avoid modification of string literal.
1999-05-27 23:04:28 +00:00
Kurt Zeilenga
2d1cf97a56
move connection_close call from connection_input to connection_resched
...
to avoid accessing c_conn_state after close.
1999-05-27 06:22:59 +00:00
Kurt Zeilenga
5936f97edc
Make connection_first/next/done reentrant.
1999-05-27 05:52:38 +00:00
Kurt Zeilenga
f9219d3368
remove redundant memset 0 of connection entry after calloc.
1999-05-27 02:44:13 +00:00
Kurt Zeilenga
1ee8cc51a8
Add comment concerning connections mutex. Need to analysis
...
locking requires and possibly restructure locking.
1999-05-27 02:29:18 +00:00
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
Kurt Zeilenga
d8aef04224
Modify meaning of SLAPD_CHILD_MODIFICATION_ENTRY_ACL to augment
...
"children" ACLs with "entry" ACLs (versus replacement of children
ACLs with "entry" ACLs).
1999-04-30 02:34:46 +00:00
Kurt Zeilenga
5882352a2e
protect multi-statement macros... ie: do { s1; s2; } while(0)
1999-04-30 00:53:10 +00:00
Hallvard Furuseth
786bbe4fc1
enclose macro arguments in ()
1999-04-30 00:35:27 +00:00
Hallvard Furuseth
de810942e1
ITS#141: move body of next_id_save() into new function next_id_get_save(),
...
so the (read id, write id) sequence is protected by li_nextid_mutex.
1999-04-29 22:26:58 +00:00
Hallvard Furuseth
d804c7b137
Add <ac/socket.h>
1999-04-29 22:07:13 +00:00
Hallvard Furuseth
e4c84b9d36
Fix typos SLAPD_NEXTID_CHUCK/SLAPD_NEXTID_CHUNCK -> SLAPD_NEXTID_CHUNK
1999-04-29 18:26:25 +00:00
Kurt Zeilenga
01b967244d
Make 'schemacheck on' the default.
1999-04-29 18:10:40 +00:00
Kurt Zeilenga
9b8a5036dd
Update back-passwd based on patches from howard.chu@platinum.com.
...
Modified by me to dn_*() and attr_*() functions and to use
uidObject and to handle search scopes better. Could use some
more work. A fun project for anyone wanting to learn how
backends work.
Modified dn_parent and dn_rdn to accept be=NULL (to bypass
be_issuffix check). These functions should be generalized
and moved to -lldap. A project for another day.
1999-04-29 06:50:00 +00:00
Kurt Zeilenga
af26f023e7
Ignore idl_delete_key errors. LDBM isn't transactional, state
...
indexes could be hosed.
1999-04-29 01:42:43 +00:00
Kurt Zeilenga
b06c4a5576
Winsock changes:
...
Centralize #define EWOULDBLOCK WSAEWOULDBLOCK to ac/errno.h
Move WSAStartup to slapd_daemon(), add WSACleanup() to match.
1999-04-28 21:21:14 +00:00
Kurt Zeilenga
d0fb82ab31
Make Versionstr const.
1999-04-28 20:39:40 +00:00
Kurt Zeilenga
8106400a04
slapd Version needs special treatment (Versionstr and non-static).
1999-04-28 20:34:19 +00:00
Kurt Zeilenga
5dbb2e760f
Don't destroy uninitialized connections...
1999-04-28 20:33:25 +00:00
Gary Williams
41adaad0ad
let ldif2id2entry complete before allowing other children to start
1999-04-28 17:25:30 +00:00
Kurt Zeilenga
dba57a312c
Add mkversion script to generate version.c files. mkversion generates
...
identification strings compatible with ident(1) and what(1).
Uses $(VERSION) generated from configure.in. rm build/version
rm old version .c files
1999-04-28 05:40:17 +00:00
Julio Sánchez Fernández
ab0e842ee2
Initial version
1999-04-27 06:34:10 +00:00
Kurt Zeilenga
c9a2802669
Don't have connection_state_closing() lock connection. Already locked
...
by callers.
1999-04-26 23:56:02 +00:00
Kurt Zeilenga
fa6fec3c9c
Implement "quick" shutdown (similiar in behavior to shutdown
...
prior to connection management changes). No "normal" (wait
for pending operations to complete) shutdown mode (yet).
Changes:
Add connections_destroy() implementation to connections.c.
Move connections_init() call to slap_daemon().
Add connections_destroy() call to slap_daemon().
Add connections_shutdown() implementation to connections.c.
calls connection_closing()/connection_close() for each
"in use" connection.
Add connections_shutdown() call to slap_daemon_task().
1999-04-23 22:50:28 +00:00
Kurt Zeilenga
866f82409c
Should clear the write flag upon closing.
1999-04-23 20:47:32 +00:00
Kurt Zeilenga
8082760c0c
Update state to closing early.
1999-04-23 20:34:09 +00:00
Kurt Zeilenga
3e05f28963
Modify connection_closing() to abandon operations and wake blocked writer.
...
Modify send_result to return if connection state is closing.
Modify do_abandon() to remove abandon'ed operation if pending.
1999-04-23 20:22:18 +00:00
Kurt Zeilenga
7ba980f0f6
Modify slapd set user/group support to use -u/-g instead -U/-G.
...
Moved -u (udp) to -c (connectionless). Connectionless is depreciated
and undocumented.
Added tests for set{,e}{u,g}id to configure. Use existance of
setuid/setgid to enable feature. Use seteuid/setegid only if
they exist.
Fixed minor minor leak of username/groupname if specificied
more than once. (This should actually be an error)
1999-04-21 00:40:20 +00:00
Julio Sánchez Fernández
9abff49932
Make it honor attrs and attrsonly
1999-04-20 12:17:14 +00:00
Juan Gomez
a88bf50b31
Updates index for rdn attribute type avoiding the 'dissapearing entry'
...
problem reported in IT78. Index files will still be stale if the modrdn
uses deleteoldrdn.
1999-04-20 03:36:00 +00:00
Julio Sánchez Fernández
2b82bc2d63
The Root DSE does not depend on SLAPD_CONFIG_DN and friends.
...
Added a comment for supportedSASLMechanism to root_dse.c
1999-04-19 20:02:24 +00:00
Julio Sánchez Fernández
01385acc2a
Beginning of ROOT DSE support
1999-04-19 18:21:53 +00:00
Gary Williams
532fb0961f
honor the maxkids variable on NT
1999-04-19 17:13:14 +00:00
Kurt Spanier
f1e7ffb176
Delayed backend lock release to replog entry after successful add().
1999-04-19 10:47:03 +00:00
Kurt Zeilenga
3041aafc2c
Protect listener_tid from being killed after the listener has exited.
1999-04-17 05:21:30 +00:00
Kurt Zeilenga
c10bb54be0
Fix typo in write select. Fix errors in WINSOCK handling.
...
Add test listener no-thread_create experiment (behind ifdef).
1999-04-16 18:56:42 +00:00
Gary Williams
6bfc4ec022
adjust projet settings
1999-04-14 17:10:56 +00:00
Gary Williams
84f84c28b8
I moved slap_shutdown after the waitforkids. I also wait for each process to complete before returning from fork_child since I had two lockups on my NT box.
1999-04-14 16:56:23 +00:00
Gary Williams
a899d9e356
delete spurious project sha_test
1999-04-14 15:41:53 +00:00
Gary Williams
80aeab1723
get rid of unreferenced variable tmp
1999-04-14 15:41:19 +00:00
Gary Williams
e24a4ee074
get rid of unreferenced variable deleteoldrdn
1999-04-14 15:15:25 +00:00
Gary Williams
d2ab3f1d5d
get rid of unreferenced variables metaph and newm
1999-04-14 15:13:59 +00:00
Gary Williams
8656d441ff
put conditions on i, buf2 and c so we don't get unreferenced variable warnings
1999-04-14 15:13:10 +00:00
Gary Williams
af423fd393
fix Release configuration
1999-04-14 15:12:19 +00:00
Gary Williams
3a1aba86ab
put conditions on hp so we don't get unreferenced variable warning
1999-04-14 15:11:57 +00:00
Gary Williams
f9ab18a57b
lose unreferenced variable rc
1999-04-14 15:11:04 +00:00
Gary Williams
deea9c42a5
set up Release configuration
1999-04-14 15:00:17 +00:00
Gary Williams
0667d29905
update project settings
1999-04-14 14:20:02 +00:00
Gary Williams
e86ffc71f1
add result.c
1999-04-14 14:18:42 +00:00
Gary Williams
4ced2ec95d
remove result.c
1999-04-14 14:18:26 +00:00
Gary Williams
579b8cc7c4
add mimic.c(this time with the actual change)
1999-04-14 14:14:20 +00:00
Gary Williams
e6f09030e4
add mimic.c
1999-04-14 14:13:06 +00:00
Gary Williams
c8f24043e5
if WIN32, add starttime
1999-04-14 14:12:49 +00:00
Gary Williams
1a7acaa945
fix arg loop, move starttime to mimic.c
1999-04-14 14:11:56 +00:00
Gary Williams
25474efe94
move starttime to mimic.c, change exit to return
1999-04-14 14:10:09 +00:00
Kurt Zeilenga
a3f9a59e4b
Add XXX comment to cache modified from underneath kludge.
1999-04-13 22:41:14 +00:00
Gary Williams
12cd6ddfb1
add libslapd,ldif2 tools projects
1999-04-13 21:41:56 +00:00
Gary Williams
8059d1bee9
move most files to libslapd to make linking ldif tools easier
1999-04-13 21:41:25 +00:00
Gary Williams
a85ba4f2fc
new project file
1999-04-13 21:40:44 +00:00
Gary Williams
0667782720
add section for NT to create processes
1999-04-13 21:34:00 +00:00
Gary Williams
23b4e99d03
new project file
1999-04-13 21:32:49 +00:00
Gary Williams
2401e3e921
new project file
1999-04-13 21:24:29 +00:00
Gary Williams
3bad16aa93
add starttime to make NT happy
1999-04-13 21:22:21 +00:00
Kurt Zeilenga
603be82c2f
Fix linking errors (naming issues)
1999-04-13 20:04:32 +00:00
Kurt Zeilenga
08e617941c
ldbm -> bdb2
1999-04-13 19:59:03 +00:00
Kurt Zeilenga
516db68b05
Fix entry.c typo in OBJS
1999-04-13 19:57:01 +00:00
Hallvard Furuseth
d9782e14f8
Move ldap_pvt_thread_initialize() in front of init_globals()
1999-04-13 11:10:16 +00:00
Hallvard Furuseth
ec2072f1d5
neutralize previous add.c change until bdb2_back_entry_release_rw() is provided
1999-04-13 06:28:52 +00:00
Hallvard Furuseth
80e5c43346
Add dummy bdb2_back_entry_release_rw() to be completed later
1999-04-13 06:21:30 +00:00
Hallvard Furuseth
169d6d0200
Add entry.c to complete previous change
1999-04-13 06:15:03 +00:00
Hallvard Furuseth
62aa401bd7
Add struct backend_info->bi_entry_release_rw and related functions.
...
Move cache_return_entry_w() out of ldbm_back_add when the add is successful.
This change breaks back-bdb2, it needs equvalent changes of those in back-ldbm.
1999-04-13 06:08:28 +00:00
Kurt Zeilenga
ad35a9d4a6
Add trace message when found entry is busy.
1999-04-11 22:16:30 +00:00
Hallvard Furuseth
59e7798448
Fix typo ldap_pvt_thread_mutex_lock -> ldap_pvt_thread_mutex_unlock
1999-04-11 19:36:19 +00:00
Hallvard Furuseth
eaa023cfa9
Fix SPC -> TAB at the beginning of Makefile lines
1999-04-10 17:43:27 +00:00
Kurt Zeilenga
f16846eb15
Apply LDBM cache changes (c_mutex streamlining) to BDB2 and back.
1999-04-10 04:28:02 +00:00
Kurt Zeilenga
0317638cf6
Addition streamlining of code behind c_mutex.
1999-04-10 01:35:19 +00:00
Kurt Zeilenga
93fa38cd08
Apply fix to "group/group_objectclass/member_atribute" parsing
...
suggested by Gerrit Thomson
1999-04-10 01:34:55 +00:00
Kurt Zeilenga
f34bd50e30
Streamline code during finds to reduce contention on c_mutex.
...
Move Debug messages outside of c_mutex. Other LDBM cache codes
also should be streamlined. Resultant approaches should then
be applied to back-bdb2.
1999-04-09 18:33:52 +00:00
Kurt Zeilenga
a28f9e03be
More errno handling changes for FreeBSD LinuxThreads.
1999-04-08 04:17:32 +00:00
Kurt Zeilenga
6743aebf3d
Changes to support FreeBSD LinuxThreads port. Namely don't rely
...
on errno not getting changed by Debug(). Likely a problem elsewhere.
Tests run okay, excepting concurrency has "no such object" problems.
1999-04-08 03:57:25 +00:00
Kurt Spanier
2206a55064
Introduce free'ing of key into ldbm_nextkey() (no need for free'ing in
...
clients).
1999-04-07 13:17:39 +00:00
Kurt Spanier
85df05d3d6
Next try to fix the core dump problem on FreeBSD: eliminate ldbm_datum_free(),
...
because it's already done in ldbm_nextkey().
1999-04-07 13:15:51 +00:00
Kurt Zeilenga
d49de831ef
Remove extraneous setting of shutdown variable before exiting.
1999-04-07 03:29:47 +00:00
Hallvard Furuseth
30cdbc7657
Remove #ifdef SLAP_CLEANUP around closelog()
1999-04-07 01:23:25 +00:00
Kurt Zeilenga
73b846c011
Add ldap_pvt_thread_destory() to un-ldap_pvt_thread_initialize().
...
Move all SunOS routines (ie: _sleep() and its helpers) to thr_lwp.c
so that it's internals can be 'static'. Add 'static' to thr_lwp.c.
Add comment to LWP: NEEDS WORK, may not compile! Need some
SunOS user to sort out the details. Volunteers?
1999-04-06 21:57:16 +00:00
Kurt Zeilenga
539a7dbf34
Remove HAVE_LWP use from slurpd. globals for ldap_pvt_thread_sleep()
...
need to be managed completely by -lldap_r.
1999-04-06 20:59:30 +00:00
Kurt Zeilenga
6128be068b
Backout last change (resurection)
1999-04-06 20:28:01 +00:00
Kurt Zeilenga
e5a6f515ef
Move tsleep back to slurpd... it relies on slurpd internals.
1999-04-06 20:19:40 +00:00
Hallvard Furuseth
d9d11a315f
ifdef SLAP_CLEANUP: close db files, free memory, some other cleanup before exit
1999-04-06 01:55:11 +00:00
Kurt Zeilenga
cf4371d108
Backout last change... finish my first coke... try again later...
1999-04-05 18:30:56 +00:00
Kurt Zeilenga
66164a1b58
Share unlock and return between true and false paths.
1999-04-05 18:21:31 +00:00
Hallvard Furuseth
dae494e45d
Delay free(e.e_ndn) in cache_find_entry_dn2id() to after "goto try_again"
1999-04-05 18:01:11 +00:00
Hallvard Furuseth
2b2c154ae6
Delay free(e.e_ndn) in bdb2i_cache_find_entry_dn2id() to after "goto try_again"
1999-04-05 18:00:57 +00:00
Kurt Zeilenga
371e1e5936
Remove extraneous do_close() prototype. Conflicts with perl internals.
1999-04-04 22:13:30 +00:00
Hallvard Furuseth
2915ed56db
plug memory leak of li->li_nextid_file
1999-04-04 21:53:39 +00:00
Hallvard Furuseth
db859cee36
strdup/free li->li_directory when chaning, so unmalloced version won't be freed
1999-04-04 21:49:56 +00:00
Hallvard Furuseth
47f9f7e79d
fix typo in comment in ldbm_back_close
1999-04-04 21:39:24 +00:00
Hallvard Furuseth
2b32e6afd7
Plug memory leaks
1999-04-04 21:34:33 +00:00
John Quillan
3f1fd3bcee
Fix bug in compare.c where obj_ref to pb_obj_ref
...
Added call to perl "config" method so the the
perl module can have its own configuration
options.
Fix bug in init.c where the address of the be_private
object was being retrieved when it was already
a pointer.
Added the dn parameter to the modify.c call to the
modify method. Not sure why this wasn't there
in the beginning.
Expects and array from the search method instead of
a scalar in search.c so that it can return search
results and a return code.
Added the demo file SampleLDAP.pm
1999-04-04 04:16:14 +00:00
Hallvard Furuseth
f172f7ee9c
Remove superfluous \ at end of lines outside macros; DEC cc doesn't like them.
1999-04-03 09:20:41 +00:00
Hallvard Furuseth
a0b741102d
Add missing \n's in Debug statements
1999-04-03 03:39:16 +00:00
Hallvard Furuseth
730d267465
Add missing \n's in Debug statements
1999-04-03 03:28:17 +00:00
Hallvard Furuseth
9ebd9a0289
Add -U and -G options to set user and group id.
...
Move socket setup to set_socket(), called before the uid/gid change.
1999-04-03 03:19:07 +00:00
Kurt Zeilenga
e46877f89f
cache: implement try_again loop if cache entry is not ready.
...
id2entry: when an error occurs attempting to insert fetched
entry into cache, check to see if entry was added by another
thread. If so, return the entry added by the other thread.
The concurrency tests now run without the dreaded "no such object"
error messages!
1999-04-02 19:09:59 +00:00
Gary Williams
7d0ba58072
update project settings
1999-04-02 15:36:29 +00:00
Hallvard Furuseth
1e836c56bc
Factor }' out of #if/...}/#else...}/#endif, so Emacs can match {' against `}'
1999-04-02 09:11:26 +00:00
Hallvard Furuseth
7fcc258d28
Fix the fix to the wait4child fix - forgot an #else
1999-04-02 08:30:02 +00:00
Hallvard Furuseth
7d8e7085e3
Trying again:
...
Fix wait4child change: Prefer wait3 over wait. Use SIGNAL instead of signal.
1999-04-02 04:12:18 +00:00
Hallvard Furuseth
815a62930c
UNDO LAST COMMIT.
1999-04-02 03:45:33 +00:00
Hallvard Furuseth
45118be88e
Fix wait4child change: Prefer wait3 over wait. Use SIGNAL instead of signal.
1999-04-02 03:23:20 +00:00
Hallvard Furuseth
d93ecb703a
Update getopt() string and usage()
1999-04-01 22:31:24 +00:00
Hallvard Furuseth
d5938af750
Enclose `DB_ENV li_db_env' declaration in #ifdef HAVE_BERKELEY_DB2
1999-04-01 22:18:09 +00:00
Gary Williams
604f34817a
add client tools
1999-04-01 21:46:01 +00:00
Kurt Zeilenga
dda1fb4ba0
Updates for NT4 (MSVC5++).
...
Removed external include/library paths from projects. External paths should
be set via Tools | Options | Directories. This allows each developer the
freedom to install external libraries where they desire.
Used libdb.lib instead of libdbs.lib to avoid thread conflicts.
Added hs_regex.lib to library input. We require some form of regex, this
library works (and is relatively easy for the user to install).
Removed a little lint which MCVC5 detected.
Need to sort out single-threaded vs multithreaded library generation.
1999-04-01 20:26:09 +00:00
Gary Williams
1b79f745fe
enable debug output for NT
1999-04-01 16:39:36 +00:00
Gary Williams
e5635b2662
NT port
1999-04-01 16:32:11 +00:00
Gary Williams
e6b47355f9
NT port
1999-04-01 14:50:34 +00:00
Kurt Spanier
1c7ebc514f
Some minor clean-up; checking bdb2 for sync with ldbm.
1999-04-01 09:58:36 +00:00
Juan Gomez
3b4fdbfeb3
Added full v2 and v3 support for MODRDN/MODDN.
1999-03-31 02:53:27 +00:00
Juan Gomez
3eaae95aa1
Back with previous change, use ac/time.h include instead.
1999-03-31 01:28:42 +00:00
Juan Gomez
bbff96dd90
Do include of sys/time.h to define struct timeval used in back-bdb2/add.c
...
and back-bdb2/compare.c.
1999-03-31 01:15:51 +00:00
Kurt Zeilenga
058aad0312
Fix SLAPD_CONFIG_DN e_ndn bug.
1999-03-30 18:50:41 +00:00
Kurt Spanier
80400aba52
Fix ldbmcat crash problem: first use the key before deleting it!
1999-03-29 16:01:59 +00:00
Kurt Zeilenga
b9109a9f20
add wait macros. add LDAP_SIGCHLD. and other misc NT cleanups.
1999-03-29 09:04:35 +00:00
Kurt Zeilenga
db721ca821
Add ioctl_t for arg type (Unix requires 'int', Winsock requires 'u_long').
1999-03-29 05:28:29 +00:00
Kurt Zeilenga
ff23537bcb
Rework ac/socket.h for HAVE_WINSOCK:
...
tcp_close -> closesocket
ioctl -> ioctlsocket
Modify codes to use tcp_close() instead of close() for sockets.
Modify ioctl codes to be compatible with WINSOCK.
1999-03-29 05:15:59 +00:00
Kurt Zeilenga
30665cb19a
Misc header cleanup
1999-03-29 02:07:18 +00:00
Kurt Zeilenga
598b7473fe
All implementations of lutil_lockf (aka ldap_lockf) block until
...
the lock is acquired. Add comments to that effect. Remove
unnecessary busy loops from slapd/lock.c and slurpd/lock.c.
1999-03-28 22:43:43 +00:00
Kurt Zeilenga
7adc0a65d0
Update lutil_lockf (aka: ldap_lockf) to hide implementation in
...
library, not header. Eliminate need for <ac/unistd.h> to sometimes
include <fcntl.h> and/or <sys/file.h>. Change lock API to expect
fd not FILE*. Allows wider use and eliminates requirement that
lutil_lockf.h depencency on stdio.h.
Implemented lockf, fcntl, and flock locking in lutil/lockf.c.
Additional implementations (including no-op) may be needed.
Update slapd/lock.c and slurpd/lock.c to use new API.
1999-03-28 21:39:02 +00:00
Hallvard Furuseth
3f6dc76a59
Avoid integer truncation of v1->bv_len - v2->bv_len in value_cmp(,,SYNTAX_BIN,)
1999-03-28 01:40:54 +00:00
Hallvard Furuseth
4459780fb3
Add wait4child()
1999-03-27 16:21:44 +00:00
Will Ballantyne
918b9f8d86
argh, somehow bdb2 version overwritten by ldbm version. Fixed.
1999-03-26 16:34:47 +00:00
Will Ballantyne
4fbc5ed92c
check for NULL newDN prior to final deref check
1999-03-26 05:36:26 +00:00
Kurt Zeilenga
668c8da980
Reenable counters.
1999-03-26 02:51:33 +00:00
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
Kurt Zeilenga
e5ab61cb3a
LINE_WIDTH -> LDIF_LINE_WIDTH
1999-03-09 00:59:37 +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
Hallvard Furuseth
718faec29d
Align with changes in build process:
...
LDLINK -> LTLINK, LDAP_LIBEXECDIR -> libexecdir. Add XSRCS and all-local-srv.
1999-03-08 01:20:01 +00:00
Hallvard Furuseth
b6c16f861e
Align with code changes in liblber/libldap:
...
Replace LDAPMod with a new struct LDAPModList.
Rename lber_debug to lber_int_debug.
1999-03-08 00:39:46 +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
Hallvard Furuseth
42fdd3766f
replace integer argument NULL with 0
1999-03-03 17:35:33 +00:00
Hallvard Furuseth
69a93a0582
function pointers are incompatible with `void *'; remove NULL or replace with 0
1999-03-03 17:02:10 +00:00
Kurt Zeilenga
aa38035780
Add protect against new connection descriptor being to large for
...
our connection table.
1999-03-02 21:06:42 +00:00
Kurt Zeilenga
fdc44bf313
Apply ldbm bind() change to bdb2 code.
1999-03-02 20:42:29 +00:00
Bart Hartgers
8153a4039b
The new&improved Sockbuf. This adds the infrastructure on which
...
support for TLS and SASL will be build.
Please inform me of any problems.
1999-03-02 20:23:14 +00:00
Bart Hartgers
e0fdd89432
Annoying little son of a `free' BUG fixed.
1999-03-02 20:14:11 +00:00
Kurt Zeilenga
4e160e83b6
Replace IFP() with appropriate full prototypes:
...
AVL_CMP, AVL_DUP, AVL_FREE, AVL_APPLY.
Apply casts as needed.
Change data pointer from caddr_t to void *.
1999-03-02 00:32:59 +00:00
Kurt Zeilenga
a8a05cbe48
Update NT port with support for -lldap_r and -lldbm.
...
Also add initial slapd .dsw/.dsp files. Still needs work (mainly syslog).
1999-03-01 22:37:05 +00:00
Kurt Zeilenga
3984323bf9
Fix minor memory leak and remove redundant be_isroot_pw() checks.
...
Suggested by Pierangelo Masarati <pmasarati@bci.it> in post to -bugs.
1999-03-01 19:42:06 +00:00
Kurt Spanier
5d2699b7ce
Introduction of first version of transaction processing (TP) into BDB2.
1999-03-01 11:30:18 +00:00
Ben Collins
945f8e10a0
Added verclean-local-srv since veryclean was not being run in the back-* and related directories
1999-02-28 17:07:47 +00:00
Ben Collins
b14d7b35ed
Changed general debug levels too LDAP_DEBUG_SHELL
1999-02-28 05:55:48 +00:00
Hallvard Furuseth
1d8ae81a06
Fix previous change to strtok_quote
1999-02-23 15:48:47 +00:00
Hallvard Furuseth
6b40ed4882
Make strtok_quote treat the character following \ as a normal character.
1999-02-23 15:40:18 +00:00
Ben Collins
b0250a119f
Changed LDA_DEBUG_ statements to more appropriate ones
1999-02-23 03:51:33 +00:00
Hallvard Furuseth
79f7c85067
Add locale support (slapd.conf keyword "locale") to slapd if HAVE_LOCALE_H
1999-02-22 21:01:24 +00:00
Hallvard Furuseth
73db912500
Cast char' arguments to ctype.h functions to unsigned char'.
...
These functions require their arguments to be in the range of `unsigned char'.
1999-02-22 17:57:22 +00:00
Kurt Spanier
9cb23b462e
More timing for performance testing. Re-introduction of cache.c_mutex.
1999-02-22 11:22:44 +00:00
Kurt Zeilenga
aa17fdd0bd
Use ldap_pvt_strtok directly and unconditionally.
...
Implementation no longer uses strtok_r(), it may be broken
or have an odd prototype.
Update configure not to check for strtok/strtok_r nor require
strtok_r to LDAP_API_FEATURE_X_OPENLDAP_REENTRANT.
1999-02-20 20:12:03 +00:00
Hallvard Furuseth
0fe0efeeac
wrap bi_acl_group in #ifdef SLAPD_ACLGROUPS
1999-02-20 08:53:48 +00:00
Hallvard Furuseth
1fda8f9382
read_config() did not return a value
1999-02-20 08:18:07 +00:00
Ben Collins
809c6570e4
Converted strdup()'s to ch_strdup()
1999-02-19 07:55:20 +00:00
Kurt Spanier
3a9f96ec0d
Code clean-up.
1999-02-18 15:33:15 +00:00
Ben Collins
8667671d17
* Removed uneeded cvs keywords
...
* Fixed unfree'd 'char *results' in all tcl_* functions (only unfree'd in
certain cases, moved the free to the actual function) so no more mem
leaks. Tested this with over 500,000 access's for testing :)
* Miscellaneous source style and tabulation fixes
1999-02-18 02:18:39 +00:00
Kurt Spanier
ac4cb22f1c
Elimination of entry- and cache-level locking in back-bdb2.
...
Slight adaption of concurrency-test to enable even more writers/readers.
1999-02-17 11:13:22 +00:00
Ben Collins
a3c9bec0c5
Missing file
1999-02-17 02:23:18 +00:00
Ben Collins
6b09ba64d0
Style changes, added cvs keywords
1999-02-17 02:05:28 +00:00
Ben Collins
d2d5748580
Updated some items
1999-02-17 02:04:54 +00:00
Ben Collins
197e77ea8d
Completed open/close/destroy implementations
1999-02-17 02:02:11 +00:00
Ben Collins
749404b83f
Implemented the open, init functions correctly
1999-02-17 01:55:54 +00:00
Ben Collins
8c3f485d8b
Implemented all of the (db_)destroy and (db_)close functions
1999-02-17 01:55:03 +00:00
Ben Collins
78a5ebe216
Moved tcl_back_db_open() and interpreter init to tcl_init.c
1999-02-17 01:53:59 +00:00
Ben Collins
1d1e8f75b6
Added return()
1999-02-17 00:32:49 +00:00
Ben Collins
86e1568752
fixed exit()'s to be return()'s
1999-02-17 00:30:36 +00:00
Ben Collins
8a2839b672
keyword update
1999-02-17 00:26:05 +00:00
Ben Collins
24697ea2fc
$Id update
1999-02-17 00:24:40 +00:00
Kurt Zeilenga
c2b7c9e2db
Add ac/errno.h and use other generic headers when available.
1999-02-16 18:07:19 +00:00
Kurt Spanier
39f0066db4
Addition of a new Concurrency Test fro testing slapd performance and
...
correctness of locking schemas in backends.
In back-bdb2 open NEXTID during startup and close at shutdown.
1999-02-15 10:49:20 +00:00
Kurt Zeilenga
a71f328831
Import Ben Collins <bcollins@debian.org> Back-TCL for SLAPD.
1999-02-14 19:20:14 +00:00
Kurt Spanier
548942edbe
BugFix and selection in the test-suite of the bdb2 backend-specific
...
slapd server timing via a new slapd command line option '-t'.
1999-02-12 15:22:43 +00:00
Kurt Spanier
2cf83d84ee
Server timing as a private feature of the bdb2 backend.
1999-02-12 14:36:16 +00:00
Kurt Spanier
6e63b58a3e
Update of back-bdb2 to KDZ's new entry lock schema.
...
Fix of a back-bdb2 --> back-ldbm leakage (==> new bdb2-specific DB file suffix).
1999-02-12 12:13:03 +00:00
Kurt Zeilenga
75ee1d8393
Update tools to print ID's using "%ld" instead of "%lu".
1999-02-11 21:26:57 +00:00
Kurt Zeilenga
2a20131eaa
Consistently use %ld for printing IDs. %lu was used in many cases.
...
I rather have NOID printed as "-1". It it could argued that ID
should be signed.
1999-02-11 18:19:52 +00:00
Kurt Zeilenga
c2c0d9687f
Complete entry_cmp() migration (remove rename macros).
1999-02-11 17:52:28 +00:00
Kurt Zeilenga
745a10f080
Update LDBM cache so that it manages it's own state.
...
cache_set_state() and state args are no history.
Move cache_entry_cmp() and friends to slapd/entry.c to allow sharing
of functions between backends.. Renamed to entry_cmp().
1999-02-11 17:46:56 +00:00
Kurt Zeilenga
88c43a1e6e
Move LDBM-backend specific fields of Entry struct into a private struct.
...
The new e_private field can be used for any backend purpose. In LDBM,
it's used to point th the private entry info struct. The LDBM entry
info struct is only visible to the LDBM cache.
WARNING: This change has not be ported to other backends! Breakage is likely.
1999-02-10 18:28:25 +00:00
Kurt Spanier
529caeddd0
Elimination of un-used code in bdb2i_cache_open and friends.
...
Provision for a bdb2 backend-specific DB file suffix.
Fix of the double-open of backend types.
1999-02-10 13:19:11 +00:00
Kurt Zeilenga
191752c9a7
Fix modrdn bug in back-bdb2 as well. Probably should move
...
dn rewriting to frontend dn.c function.
1999-02-09 18:07:01 +00:00
Kurt Zeilenga
fc022ed0d4
Patch modrdn to remove extra space.
1999-02-09 17:58:13 +00:00
Kurt Zeilenga
eb8dcb6e21
Add a field to count the number of databases per type (bi_nDB) to
...
the backend type info structure. Use this filed to control open
and close such that backend's without databases are skipped.
1999-02-09 17:41:56 +00:00
Kurt Spanier
42f6e78dd4
Integration of the BDB2 backend into the new init/startup/shutdown schema.
...
Integration into ./configure ( --enable-bdb2 ).
Adaptation of the test-suite ( 'make' -> ldbm; 'make bdb2-local' -> bdb2 ).
Minor fixes in slapd/libldbm.
1999-02-08 11:42:14 +00:00
Kurt Zeilenga
36a06168c5
Fix backend_destroy to call bi_destroy instead of bi_close
1999-02-07 18:24:05 +00:00
Kurt Zeilenga
587535a310
Really fix those reader/writer lock asserts...
1999-02-07 17:57:50 +00:00
Kurt Zeilenga
7eaae29f6f
Fix cache asserts on entry writer locks.
1999-02-07 02:50:10 +00:00
Kurt Zeilenga
e6e28362a1
Move SIGNAL() calls to main so that any thread can accept async
...
signals aimed at the process.
1999-02-06 16:00:00 +00:00
Kurt Zeilenga
7f804b5c1b
Fix no backend type case in backend_init.
1999-02-06 15:56:14 +00:00
Kurt Zeilenga
dde7e3dfa6
Don't call idl_free() unless necessary.
1999-02-05 23:46:03 +00:00
Kurt Zeilenga
63f5ec8f8b
remove ;; typo
1999-02-05 17:39:38 +00:00
Kurt Spanier
d92b9d3c9e
Introduction of a new Berkeley DB version 2 (!) specific backend.
...
BEWARE: the backend will be compiled.
the backend will NOT be invoked, yet.
the backend CANNOT be invoked, yet, because it is NOT yet
integrated into the new initialization/startup environment
of the slapd server.
1999-02-05 16:23:03 +00:00
Kurt Spanier
8107ec91f0
Fix braindead signal handling in linux kernal threads.
...
First version with waiting on int to become 0; should be implemented
via conditional variable...
Fix of typos.
First anchor for new bdb2 backend.
1999-02-05 13:20:57 +00:00
Kurt Zeilenga
216049bd12
New Frontend->Backend Interface
...
Separates per backend type from per backend database initialization
and startup. Also supports per type / per backend shutdown.
New frontend startup/shutdown routines are also provided:
slap_init() slap_startup() slap_shutdown() slap_destroy()
New frontend->backend startup/shutdown is managed by:
backend_init() backend_startup() backend_shutdown backend_destroy
backend_init() now calls bi_init() to initial all function pointers
for the backend (excepting bi_init() which is now the only hardcoded
entry point). New entry points are detailed in slap.h struct
backend_info. backend_info is a per database type structure.
Besides the new startup/shutdown entry points, the new interface
also supports per backend type configuration options. One could have:
backend bdb2 (new Berkeley DB 2 backend)
bdb2_home /directory
database bdb2
...
*** This code is fairly experimental ***
*** Much cleanup and testing is still needed ***
see slap.h for details on struct backend_db and backend_info.
1999-02-05 09:03:47 +00:00
Kurt Zeilenga
2b8970a324
Fix forkandexec() prototype.
1999-02-04 19:01:21 +00:00
Will Ballantyne
44c5c21078
additional checks around derefAlias_r call:
...
check for alias problem
check for alias != entry
check for null entry in subsequent switch statement
1999-02-04 18:55:58 +00:00
Kurt Zeilenga
72400d11fc
Fix mutex initialization. new init function only has one argument.
1999-02-04 18:20:26 +00:00
Kurt Zeilenga
366701bdf7
Fix dbcache/entry lock deadlock. If dbcache lock is held, it's
...
okay to read and write LDBM specific fields (state, refcnt,
LRU. The id field, though is read-only once set.
cache_find_entry_dn2id(), hence, does not require any entry locks.
cache_find_entry_id() must do a entry_rdwr_trylock() and back
off if busy.
Add new rdwr lock code with trylock() functionality.
Implement entry_rdwr_trylock().
1999-02-04 18:00:50 +00:00
Kurt Zeilenga
6b05425d0f
Minor fixes to complete backout of initialization/startup changes.
1999-02-04 17:45:59 +00:00
Kurt Zeilenga
d27b2f811e
Backout recent initialization/startup changes in prep for new
...
frontend->backend interface.
1999-02-04 17:33:46 +00:00
Kurt Zeilenga
fc44d42c53
Backout startup/initialization changes in preparation for new
...
frontend->backend interface.
1999-02-04 17:28:49 +00:00
Kurt Zeilenga
c6882d4670
Remove rwlock diag messages.
1999-02-04 17:24:26 +00:00
Kurt Zeilenga
efce9cffb4
Use LDAP_ALIAS_DEREF_PROBLEM for all problem dereferencing aliases.
...
LDAP_ALIAS_PROBLEM is now only used if the alias itself is mangled.
1999-02-04 17:23:34 +00:00
Will Ballantyne
be9e28907e
inserted additional checks for null values, comments
...
fixed deadlocks
1999-02-04 00:21:57 +00:00
Kurt Zeilenga
5934367242
Another concurrency typo.
1999-02-03 18:32:25 +00:00
Kurt Zeilenga
7903584911
Use idl_fetch_one() to fetch single id_blocks instead of separate
...
ldbm_cache_fetch() codes.
1999-02-03 17:14:01 +00:00
Kurt Zeilenga
365f6bf69b
Fix double free of filter when bad.
1999-02-03 05:51:42 +00:00
Kurt Zeilenga
a3cf741ab7
Fix slapd/tool dependencies on libraries.
1999-02-03 05:25:04 +00:00
Kurt Zeilenga
368a507c9a
Plug leak of datum. Should be freed after use.
1999-02-03 05:00:41 +00:00
Kurt Zeilenga
ace9fb68c5
Fix ALLIDS bugs
...
Fix memory leaks
1999-02-03 04:45:08 +00:00
Kurt Zeilenga
16b3111ac7
Got that logic backwards...
1999-02-03 03:50:11 +00:00
Kurt Zeilenga
0c2ce661fb
first arg of ldbm_db_errcall could be a const char * instead of char *.
1999-02-02 23:15:45 +00:00
Kurt Zeilenga
40ba9bc80b
Don't try to free NULL idl. Did not cause a problem, though, as
...
idl_free() had insurance.
1999-02-02 22:46:21 +00:00
Kurt Zeilenga
92e71b459b
Hack up a quick bandaid to make things compile. Startup/Initialization
...
needs work.
1999-02-02 19:26:00 +00:00
Kurt Zeilenga
2b29521596
Fix statlog... debugging change got commit by mistake.
1999-02-02 14:06:23 +00:00
Kurt Spanier
442c7e7a7b
Added startup/shutdown routine for slapd back-ends.
1999-02-02 08:03:03 +00:00
Kurt Zeilenga
433e8ad645
Add a few comments to help detail some of these functions.
1999-02-02 03:40:19 +00:00
Kurt Zeilenga
3e48937ac8
Fix idl_firstid to return NOID when !(nids > 1) instead of when (nids == 1)
...
Fix idl_nextid not to skip an ID if ID not in list.
Both of these should not occur if used correctly, but cheap insurance
against incorrect usage is welcomed.
1999-02-02 02:46:18 +00:00
Kurt Spanier
314f3f6ed7
Introduction of a backend startup/shutdown function to make backend-specific
...
initialization after reading slapd.conf, and before starting the daemon
1999-02-01 17:37:43 +00:00
Kurt Zeilenga
8981a52ed3
Rebuild configure using autoconf 1.3 (with aclocal from automake 1.4).
1999-02-01 01:36:42 +00:00
Kurt Zeilenga
59a288abb5
Rewrite IDL block code to use simple array and accessor macros
...
instead of array with overlayed struct fields. (which is inherently
non-portable).
Change maxid check in insert to be greater than or equal instead
of equal.
Use SAFEMEMCPY.
1999-01-31 07:55:53 +00:00
Kurt Zeilenga
163077ec93
Don't leak slap_op when op not in list.
...
Don't leak abandon mutex.
Use ch_malloc and friends.
1999-01-29 05:46:12 +00:00
Kurt Zeilenga
91f6792109
Add dn_rdn() function to return rdn part of dn.
1999-01-28 21:40:04 +00:00
Kurt Zeilenga
1d70b89234
Make sure e_ndn is used!
1999-01-28 17:32:59 +00:00
Kurt Zeilenga
72ba4cfb71
Use -lldap_r instead of -lldap -lthread.
...
Likely broke things for non-posix threadings....
Update -lldap_r implementation to:
remove attribute support
hide thread detachment
provide concurrency accessors
provide initialization function
fix gethostby{addr,name}_r codes (not coverred by HAVE_REENTRANT_FUNCTIONS)
Update servers/libraries to use ldap_pvt_thread_ calls.
Cleanup server codes (no #ifdef HAVE_PTHREAD_THIS or _THATs)!
Removed -llthread
1999-01-28 04:34:55 +00:00
Kurt Zeilenga
4ea54855c2
Fix PHREAD typo.
1999-01-27 22:42:30 +00:00
Will Ballantyne
07f566e712
fix suffix alias compare in config.c, logic was reversed. The suffix alias
...
is now ignored if it is the same as the real suffix.
1999-01-27 04:58:02 +00:00
Kurt Zeilenga
bd6dfe333d
LDBM/back-ldbm locking reworked!
...
back-ldbm was using a cache specific lock to protect non-reentrant
database routines from being reenterred. This is inadequate.
Also, reentrant database systems calls were serialized unnecessarily.
Non-reentrant database calls must have a big_mutex. Implemented
this within -lldbm itself. library requires ldbm_initialize()
be called before any other ldbm call to initialize the big_mutex
and to do any other db specific initialization (ie: such as
required for DB2).
The dbc_mutex, dbc_cv, & dbc_readers fileds of dbcache are history.
The "reentrant_database" (REENTRANT_DATABASE) define is also axed.
1999-01-26 20:55:54 +00:00
Kurt Zeilenga
f1e934effb
Hide allocate of reentrant_database cond varible and reader count
...
behind REENTRANT_DATABASE. rename reentrant_database -> REENTRANT_DATABASE.
When REENTRANT_DATABASE is defined, the simple lock is replaced
with a simple reader/writer lock. This functionality should be removed
from back-ldbm to libldbm.
1999-01-26 17:23:50 +00:00
Kurt Zeilenga
3c67248a65
cache_set_state( cache, e, 0) cannot occur before lock on parent/root
...
is released. Some other thread may have cache locked but blocking
on parent. Must give up parent lock before acquiring cache lock.
1999-01-26 05:22:58 +00:00
Kurt Zeilenga
0181892175
Change o_private from int to void*. Use it to hold a pid_t (and hope it fits).
...
Have forkandexec() return pid_t instead of int.
1999-01-26 04:32:26 +00:00
Kurt Zeilenga
b83ae3b434
Add pidfile/argsfile options to default slapd.conf.
1999-01-24 21:20:00 +00:00
Kurt Zeilenga
a928abeb9e
incorrect args to tcpd statslog
1999-01-24 01:29:23 +00:00
Kurt Zeilenga
29b1e1f0ba
dn_parent(" ") should be NULL.
1999-01-23 19:34:02 +00:00
Kurt Zeilenga
4194c3ee85
If dn2id returns ID but id2entry returns NULL, log it.
...
Assume entry was deleted from underneath the dn2entry call, hence
processing is same as if NOID had been returned.
1999-01-23 19:33:53 +00:00
Kurt Zeilenga
4863d98084
Remove configure's wait3 test as we don't care about the rusage.
...
Rewrite all child waits to use wait4 (for consistency only).
1999-01-23 04:03:43 +00:00
Kurt Zeilenga
637c0a8301
Use strtok_r() instead of strtok(). Remove strtok mutex!
1999-01-22 04:46:54 +00:00
Kurt Zeilenga
0f17fac37d
Implement NEXTID chunking. Obtain IDs in chunks of size
...
SLAPD_NEXTID_CHUNK. Code protects NEXTID file to ensure
its equal to or greater than nextid. Updated on close
to actual nextid. next_id_save() could be called periodically
if desired. Default chunk size is 32. Define to 1 to disable
chunking.
1999-01-22 02:26:19 +00:00
Kurt Zeilenga
5389e40ba5
initialize nextid with NOID not -1.
1999-01-22 01:53:39 +00:00
Kurt Zeilenga
2318ea0fd6
Don't return nextid on failed add operations for safety.
1999-01-22 01:51:53 +00:00
Kurt Zeilenga
5bfb3ac221
nextid cleanup in preparation to disable next_id_return().
1999-01-22 01:40:39 +00:00
Kurt Zeilenga
ecdf9a354d
Entry must be locked before adding it to the cache.
...
This removes a race condition upon the entry.
1999-01-22 00:27:50 +00:00
Kurt Zeilenga
6edeeeffd4
During cleanup always unlock root_mutex if rootlock is true
...
(don't make it conditional on p == NULL)
1999-01-21 22:20:03 +00:00
Kurt Spanier
68a8798594
Definition of slapd pid and args files as slapd.conf general parameters;
...
introduction of pid/agrs parameters to the test-suite slapd.conf files;
creation of sub-directory test/var for storage of pid/args files during test;
update of the slapd and slapd.conf man pages.
(The change reduces dependency on ldapconfig.h, since SLAPD_PIDEXT
and SLAPD_ARGSEXT are deleted from the code.)
1999-01-21 15:53:54 +00:00
Kurt Zeilenga
127ec9c46c
Fix c_cdn typo. Ouch.
1999-01-21 02:25:09 +00:00
Kurt Zeilenga
09421a74db
Add c_protocol to slap_conn to track protocol version used by client.
...
Is initialized to 0 (unknown) and then set to 2 or 3 on bind. Should
also be 0->3 if a special (or any) operation occurs before the bind.
1999-01-21 02:21:39 +00:00
Kurt Zeilenga
b3d383bbf5
*** empty log message ***
1999-01-21 01:12:35 +00:00
Kurt Zeilenga
19a17982c6
suffixes need to be stored in normalized uppercase format
1999-01-20 05:43:33 +00:00
Kurt Zeilenga
f9b416ea7c
ndn & strcasecmp cleanup
1999-01-20 03:05:35 +00:00
Kurt Zeilenga
0503205c93
suffixAlias will return a normalized uppercase DN if input is normalized
...
and uppercase. (aliased_dn are stored in normalized uppercase format).
1999-01-19 19:29:11 +00:00
Kurt Zeilenga
0daa8c1f06
Recode suffixAlias to implement simple check to see if part to aliased
...
is at a DNSEPARATOR. Moved DNSEPARATOR macro from dn.c to slap.h
1999-01-19 19:26:09 +00:00
Kurt Zeilenga
029069d84a
Removed o_suffix and o_suffixalias as they were 1) leaked and 2) unused
...
(suffixAliasing only maps input dn's, not output dn).
1999-01-19 18:54:19 +00:00
Kurt Zeilenga
3efaabe560
Don't allow suffixAliases were alias and aliased dn our the same.
1999-01-19 18:39:20 +00:00
Kurt Zeilenga
47d0c970d4
use dn_normalize_case().
1999-01-19 18:25:21 +00:00
Kurt Zeilenga
a837feacc2
uppercase that ndn.
1999-01-19 18:18:53 +00:00
Kurt Zeilenga
48bdf4258c
Need to uppercase e_ndn.
1999-01-19 18:17:29 +00:00
Kurt Zeilenga
8c501c28a2
Need to upper case the new_ndn.
1999-01-19 18:16:12 +00:00
Kurt Zeilenga
0e142b42f3
Update support for dn vs ndn. Build new dn from e->e_dn not frontend
...
provided dn (which is normalized and uppercased). This preserved
the trailing portion of the dn.
1999-01-19 18:13:30 +00:00
Kurt Zeilenga
e2a15115b0
Update slap_conn to maintain client provided dn and bound dn.
...
Update slap_op to maintain dn and ndn (derived from conn->c_dn).
Update ldbm_back_bind to return actual bound dn (including rootdn)
for use in slapd_conn. Other backends use client dn.
Modify other codes to use ndn (normalized uppercase dn) most everywhere.
Aliasing, Suffixing and modrdn could use more work.
Applied suffixing to compare and modrdn.
1999-01-19 05:10:50 +00:00
Kurt Zeilenga
01a759971e
Free that unclobberred dn.
1999-01-18 20:49:07 +00:00
Kurt Zeilenga
802325542b
Don't clobber dn.
1999-01-18 20:34:17 +00:00
Kurt Zeilenga
c9242a123f
e_ndn = dn_normalize_case( e_dn )
1999-01-18 20:00:58 +00:00
Kurt Zeilenga
2805b25682
Store rootdn in normalized uppercase format.
1999-01-18 19:47:12 +00:00
Kurt Zeilenga
15fb73a473
ITS#44 fix. denied connections should not be added to connections.
1999-01-18 18:40:12 +00:00
Kurt Zeilenga
8009e591ce
Protect return of the locked entry.
...
Note: we probably can replace the dn2entry_r with dn2id as only the id
is needed unless we're holding the lock for filtercandidates or something
1999-01-18 17:41:12 +00:00
Kurt Zeilenga
818bc57319
Minor cleanup of trace output.
1999-01-18 17:33:36 +00:00
Kurt Zeilenga
77b2e2cb25
Use Entry's e_ndn instead of recomputing it.
1999-01-17 20:12:00 +00:00
Kurt Zeilenga
931a8b1cd8
Add 'should not be world readable' comment.
1999-01-16 01:51:02 +00:00
Kurt Zeilenga
55cd5ee75f
Add reference to slapd.conf(5) and recommendation to avoid cleartext passwords.
1999-01-16 01:48:26 +00:00
Bart Hartgers
3a5a86d44c
Fixed a small typo...
1999-01-15 19:57:32 +00:00
Kurt Zeilenga
3e3f0b8871
Could have no entry to return... check entry pointer before trying to
...
return cache entry.
1999-01-15 18:04:52 +00:00
Kurt Zeilenga
163bac5f04
Install slapd.conf with mode of 600.
1999-01-15 02:48:00 +00:00
Kurt Zeilenga
b7beec1663
Initial version of the experimental 'back-perl'
...
John's still working on the 'perl-test' (the perl backend test module).
1999-01-14 06:33:09 +00:00
Kurt Zeilenga
28a671d10d
Revamp build system yet again to move all external libraries to
...
end of link. Basic order is:
$LDFLAGS internal-libs external-libs $LIBS $LTHREAD_LIBS
LTHREAD_LIBS is last as -lpthread (or equiv) must be last on many systems.
LIBS is next to last as some user might have put -lpthread (or equiv)
in $LIBS.
1999-01-14 01:31:43 +00:00
Kurt Zeilenga
b39fdc0bcd
Add normalized dn to Entry structure as field e_ndn. Entry
...
creation codes to provide this field. Update cache_entrydn_cmp
to strcasecmp() the e_ndn instead of e_dn. Note: strcasecmp()
is still used as e_ndn isn't in uppercase. Maybe it should
be. Did not update other codes to use e_ndn. Hence, there
are lots of dn_normalize() calls that could be eliminated.
(The case determination of e_ndn should be made first).
1999-01-13 01:17:22 +00:00
Kurt Zeilenga
6f88096e72
Report status of failed pthread_create()
1999-01-12 23:57:21 +00:00
Kurt Zeilenga
6bd6a7cf27
Report exit status of pthread_create()
1999-01-12 23:52:50 +00:00
Kurt Zeilenga
318531a437
Use pthread_detach() to detach connection threads instead of
...
creating them detached. This hopefully will reduce problems on
draft4 pthread implementations related to creating detached
threads (which is _np under draft4) on some platforms without
causing problems with other thread implementations.
1999-01-11 19:04:34 +00:00
Kurt Zeilenga
82b94e2258
Change SLAPD shutdown to do a cond wait on active threads instead
...
of a busy wait and allow the pthread_yield within the loop to be
removed. This was the only pthread_yield which was necessary
when usng non-preemptive threads. As such, the configure.in
sched_yield/pthread_yield missing error can be removed from
configure.in. If explicit yield function is missing, just provide
a no-op replacement.
Moved declaration of various slapd globals from main.c to init.c
so they can be shared with ldbm tools.
1999-01-11 18:36:40 +00:00
Kurt Zeilenga
334768c1bb
Update build environment to fix VPATH support.
...
make depend, make tests, and make install all work when build directory
is not the $srcdir.
Also modified library handling such that -lpthread more likely to be last.
WARNING: new orderring requires use of LDFLAGS to set global loader options
such as -L/usr/local/lib. If you put this in LIBS, some libraries
may not be found a link time.
Likely broke Kerberos/LDAPD support. Don't have those in my testbed.
1999-01-10 02:25:41 +00:00
Kurt Zeilenga
d0516836b5
rename 'struct op' to 'struct slap_op'
...
rename 'struct conn' to 'struct slap_conn'
rename op_function to slap_op_func for functions add/delete/free
This change is need to avoid clashing with perl internals.
1999-01-10 02:16:48 +00:00
Kurt Zeilenga
e05e9dd955
Cleanup slapd search op deallocation.
1999-01-08 21:48:09 +00:00
Kurt Zeilenga
1d7704b28e
Fix tmp file removal.
1999-01-08 19:51:15 +00:00
Kurt Zeilenga
de8c07c62c
Updated SLAPD args/pid file codes to use DEFAULT_RUNDIR and DEFAULT_DIRSEP.
...
Removed old defines.
1999-01-07 18:16:40 +00:00
Kurt Zeilenga
033bba4ed4
Fix --disable-slurpd.
1999-01-07 17:29:39 +00:00
Kurt Zeilenga
dd351c3a17
Apply fix suggested by Ben Collins <bmc@visi.net>
...
pass STRING_UNKNOWN if !client_name
pass STRING_UNKNOWN if !client_addr
1999-01-07 05:47:25 +00:00
Kurt Zeilenga
b815f61e0d
Wrap db2 mutex with -DHAVE_BERKELEY_DB2 (should be hidden in -lldbm) ITS#35
...
Unwrap ldbm_datum_init()
1999-01-07 03:28:08 +00:00
Kurt Zeilenga
0f76c52448
Modify Add/Delete/Modrdn operations to require write perms on
...
parent's "children" attribute. Write lock parent to prevent
multiple clients making conflicting operations concurrently.
If parent doesn't exist (ie: is backend root), acquire a writer
lock (a simple mutex) on the "root."
Use -DSLAPD_CHILD_MODIFICATION_WITH_ENTRY_ACL to use the child's
"entry" acl for modrdn/delete operations.
1999-01-07 02:51:08 +00:00
Kurt Zeilenga
ed33462bdf
Use MAXARGS... we should actually check for limits.h's ARG_MAX and
...
use this everywhere... but that's for another day.
1999-01-06 20:27:27 +00:00
Kurt Spanier
9c6d384b9a
- Make install creates $(RUNDIR)/var for pid and args files of slapd.
...
- slapd's pid/args file names are based on the servers binary file names,
providing for multiple servers beeing run on one host.
- slapd supports the -l command line parameter for selection of a
syslog LOCAL user (-lLOCAL0 .. -lLOCAL7)
- db_appinit() is called during first ldbm_open() in DB 2.x to initialize
DB debugging features (good to find bugs in the DB code :-)
- a patch for a non-initialized variable in DB's 2.x db_open is provided.
1999-01-05 15:40:58 +00:00
Kurt Zeilenga
c97837277a
entry pointer 'p' must be initialized. Should fix ITS#31.
1999-01-03 22:55:43 +00:00
Kurt Zeilenga
ad8a5146a6
Wrap strtok use with mutex.
1999-01-01 20:43:29 +00:00
Kurt Zeilenga
a5e6fa0d1c
Wrap strtok use with mutex.
1999-01-01 20:22:56 +00:00
Kurt Zeilenga
22e3ddaad4
I thought the bdn was normalized already... guess not.
1998-12-30 05:21:40 +00:00
Kurt Zeilenga
64cd7d3346
Preliminary Fixes for ITS#24, ITS#26, and ldbm_back_add race condition.
...
Resolved deadlock by passing target entry to be_group and using
this if dn same as bdn. It might actually be safer to check
entry ids instead of dns.
Resolved bogus add to cache after failed acl check by deferring
cache add until after parent/acl checks have successful been
completed.
Eliminated race condition caused by concurrent adds
of same dn by adding 'li_add_mutex' around the critical section
of code (most of ldbm_back_add).
This code is preliminary and still needs significant testing.
1998-12-30 03:35:23 +00:00
Kurt Zeilenga
595bf86635
Cleanup thread handling to resolve non-exiting daemons on FreeBSD.
...
Seems that calling pthread_exit() in the main (and only active)
thread does not cause the whole process to exit. Very odd.
Anyways, as we want to whole process to exit, we should just exit
after joining with our other threads.
I've also removed dead code for detaching threads we join with.
1998-12-30 00:06:27 +00:00
Kurt Zeilenga
25f2f9dd70
Use charray_free to free alist charray
1998-12-29 23:23:21 +00:00
Kurt Zeilenga
695508813d
Fix --disable-crypt and --disable-cleartext
...
mutex declaration should be moved from slapd/main.c to slapd/init.c
so we don't have ripple changes through slapd/tools.
1998-12-29 21:45:08 +00:00
Kurt Spanier
bfb27120be
Patch for Berkeley DB 2.6.4 (beta) (DB)->cursor() call.
...
Introduction of ldbm_datum_init().
Patch for non-NULL pointer test befor call to ldbm_datum_free().
1998-12-29 17:28:45 +00:00
Kurt Zeilenga
cfa450d078
Fix schema check bug... actually charray needs to dup strings on
...
add/merge as we now free strings agressively. Improved debug
message to include name of missing required attribute and added
check for 'operational attributes'. This check should be used
everywhere we need to test for operational attributes (add/modify).
Also, enabled schema checking for tests (and fixed resulting
problems by adjusting oc.conf).
1998-12-28 23:43:04 +00:00
Kurt Zeilenga
ecc44e2292
matched needs to be initialized to NULL as we may never
...
make it to dn2entry_r().
1998-12-28 16:41:39 +00:00
Kurt Zeilenga
dacc0bfc7d
Improve readability of base output in debugging.
...
Also, output UNKNOWN_PREFIX ('?') instead of writing a nul character
when the attribute prefix is unknown.
1998-12-28 00:44:15 +00:00
Kurt Zeilenga
97f10a99cc
Plug 'matched' memory leak in dn2entry()
1998-12-28 00:39:50 +00:00
Kurt Zeilenga
bf5ecff613
Plug addtional realBase memory leaks.
1998-12-27 23:23:09 +00:00
Kurt Zeilenga
fc9e20763f
Only use the LDAP_ALLOW_NULL_SEARCH_BASE code as last resort. Moved
...
to after other suffix checks.
1998-12-27 20:57:30 +00:00
Hallvard Furuseth
19742f2e93
Remove duplicate definitions of global_schemacheck and global_oc
1998-12-27 08:59:38 +00:00
Hallvard Furuseth
d59de0c50f
Plug some memory leak
1998-12-27 04:19:57 +00:00
Hallvard Furuseth
4bb4499175
Plug some memory leaks
1998-12-27 03:55:57 +00:00
Hallvard Furuseth
0aafb7267a
Plug memory leak
1998-12-27 03:11:13 +00:00
Hallvard Furuseth
c3a692787c
Change overlapping strcpy( x, y )' to SAFEMEMCPY( x, y, strlen( y ) + 1 )'
1998-12-27 02:00:08 +00:00
Hallvard Furuseth
c89fab6acc
Reset *modtail after freeing it, so it's not freed again
1998-12-26 09:55:09 +00:00
Kurt Zeilenga
9da13f321c
Apply patch to better behave under Solaris threads (thr).
...
Could still deadlock on the close(). A surrogate parent
should be used to create the children...
1998-12-24 01:16:22 +00:00
Kurt Zeilenga
487aa911f0
Add rc=0 fix as suggested by Tobias Reber <t.reber@dkfz-heidelberg.de>
...
in ITS#17.
1998-12-22 17:04:34 +00:00
Kurt Zeilenga
4854edc6fa
Add <ac/signal.h> back in to ease pain on some platforms.
1998-12-22 01:34:31 +00:00
Kurt Zeilenga
a3ac3be6a7
Added lber_get/set_option. Removed lber_debug/ldap_debug.
...
Updated other codes as needed.
1998-12-22 01:34:01 +00:00
Kurt Zeilenga
2ffb9ae30d
ITS#12 realBase was being freed before use. The offending free()
...
call has been removed and additional code added to properly free
realBase variable. Also fixed leaking of the matched variable.
1998-12-21 17:45:47 +00:00
Kurt Zeilenga
2d15a94d16
LDAP C-API changes
...
struct friendly (Friendly) changed to ldap_friendly (LDAPFriendly)
ldap_friendly friend prefix changed to 'lf_' from 'f_'
removed mod_next field from LDAPMod (struct ldapmod)
modified slapd to use new LDAPModList (struct ldapmodlist) struct.
Added LDAPv3 result codes to ldap.h
1998-12-21 00:21:58 +00:00
Kurt Zeilenga
5c6ad6c5b1
ldif'ize ldif library (ie: everything is now in the ldif_ namespace)
1998-12-20 22:28:33 +00:00
Kurt Zeilenga
362d6cbf2a
Add configure code for setting LDAP_SYSLOG but actually use hardcoded
...
LDAP_SYSLOG in slap.h/slurp.h.
1998-12-20 21:56:44 +00:00
Kurt Zeilenga
c7d5811b78
more cleanup
1998-12-20 19:57:44 +00:00
Kurt Zeilenga
6fd2aa4e84
Clean up after last commit.
1998-12-20 19:49:22 +00:00
Kurt Zeilenga
3e390a8074
Unexpand spaces for tabs in prior commit before merging to rel_eng_1_1.
1998-12-20 19:31:21 +00:00
Kurt Zeilenga
b5973eba5d
Minor change to signal handler. Changed _shutdown flag to
...
type 'sig_atomic_t' and marked it volatile. Add detection to
configure to ensure sig_atomic_t and volatile are supported.
1998-12-20 18:16:03 +00:00
Kurt Zeilenga
4123a08af5
Fix server --without-xxx build issues...
1998-12-20 00:55:39 +00:00
Kurt Zeilenga
b5e50eff5e
Disable writing syncing when creating databases.
1998-12-18 22:21:16 +00:00
Kurt Zeilenga
5d2accea50
Patch cache_delete_entry_internal() as suggested by
...
Daniel Carroll <dan@mesa7.mesa.colorado.edu>
This patch ensures we try deleting the entry from both the
dntree and the idtree.
1998-12-18 18:06:30 +00:00
Kurt Spanier
9e97da14fb
Initialization of Datum structures to zero by memset() before first use.
...
If Berkeley DB version 2.x is used as a slapd back-end a not-initialized
Datum structure will raise an EINVAL error in (DB)->put().
1998-12-18 12:28:47 +00:00
Kurt Zeilenga
9df2f4f424
The result set of an EQUALITY search on a SYNTAX_BIN attribute may have been
...
incorrect because value_cmp() in value.c compares two attributes by
comparing the leading bytes of the two values (candidate and filter) up to
the smaller of the two lengths of the binary values. If the lengths of two
SYNTAX_BIN values differ, like SYNTAX_CES and SYNTAX_CIS, the EQUALITY
comparison should fail.
It also appears that value_ncmp() in value.c has no references anywhere in
the openLDAP source tree, save for a definition in proto-slap.h. The
following fix the bug and remove the dead code:
From: "MCGARRAHAN, KENNETH L" <km4155@momail.sbc.com>
1998-12-14 04:25:55 +00:00
Kurt Zeilenga
6c2949ed86
Change cache.c assert logic based on Hallvard's suggestion.
...
"Check that the entry has no writers before removing it from the
cache" sounds more sensible to me than "check that it *has* writers"
before removing it.
I've also changed the default cachesize for tests to 4. This
should help discover such problems.
1998-12-10 19:20:15 +00:00
Kurt Zeilenga
08134c9e16
printf("\tby") belongs on stderr.
1998-12-04 19:29:17 +00:00
Kurt Zeilenga
339c23549b
Plug a leak reported by Jorg Pietschmann <pietsch@swissline.ch>
...
Still leaks ber_scanf results here and there...
1998-12-04 02:20:39 +00:00
Kurt Zeilenga
e699a9f871
Change the default installation to use a domain component (dc) style base dn.
1998-12-03 04:52:46 +00:00
Kurt Zeilenga
c1cef27bda
Update slapd to use lutil_passwd() for both user and root passwords.
...
Remove MD5 and SHA1 options (both are now always on). Rename
functions to be lutil_ instead of ldap_.
Create --enable-cleartext option. Default is currently 'on'.
1998-12-01 03:36:37 +00:00
Kurt Zeilenga
8a884d1b9c
Add ldif2ldbm bugfix from Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
1998-11-30 22:26:11 +00:00
Kurt Zeilenga
daaf487bdd
We shouldn't detach a thread that we want to join with...
1998-11-30 20:37:48 +00:00
Kurt Zeilenga
c0366d3c3b
Even more LDAP_PORT depends.
1998-11-30 04:06:59 +00:00
Kurt Zeilenga
40cb8d54c8
More LDAP_PORT depends.
1998-11-30 04:04:00 +00:00
Kurt Zeilenga
edd464ee8f
Update build environment:
...
default sysconfdir subdirectory is openldap instead of ldap.
This removes conflicts with other ldap subsystems. Should
be configure option.
*.conf files are now preserved. A *.conf.default are always
created with the latest conf.
*.help and ldapfriendly are now placed in $(datadir)/$(ldap_subdir)
updated man pages to reflect changes.
1998-11-29 19:48:28 +00:00
Kurt Zeilenga
e2ee741ea8
Replace strdup() with ch_strdup() such that exit() will be called
...
if strdup fails. This is better than not checking, but we should
add orderly shutdown.
1998-11-27 20:21:54 +00:00
Kurt Zeilenga
9b09d42a1d
Apply preliminary patch provided by Hallvard.
...
This still needs significant review!
1998-11-27 20:02:55 +00:00
Kurt Zeilenga
30cefc46de
Add KRB_LIBS to makefiles.
1998-11-25 23:49:12 +00:00
Kurt Zeilenga
4e9f9af375
Add a couple minor safety checks.
1998-11-25 23:45:57 +00:00
Kurt Zeilenga
58f36940c5
string_expand used hardcoded size instead of bufsiz argument.
...
pointed out by Jorg Pietschmann <pietsch@swissline.ch>.
1998-11-24 02:29:53 +00:00
Kurt Zeilenga
b2ec7af331
Changed dn2entry to always returned a modified matched.
...
Modified users of this code to free matched if set.
1998-11-23 20:08:25 +00:00
Kurt Zeilenga
90debec329
plug newDN memory leak using Will Ballantyne's patch
1998-11-23 19:57:00 +00:00
Kurt Zeilenga
a8efbbeef4
Should include <ac/unistd.h> instead of <unistd.h>
1998-11-23 06:04:18 +00:00
Hallvard Furuseth
cb8b23efb2
Plug memory leaks
1998-11-23 04:35:26 +00:00
Hallvard Furuseth
17fe0f59f8
gcc -Wformat cleanup
1998-11-23 04:33:53 +00:00
Kurt Zeilenga
04d91569e1
Replaced PREEMPTIVE_THREADS with HAVE_YIELDING_SELECT to clarify
...
the exact nature of the functionality being tested. -DNO_THREADS
does NOT have a yield select, hence the macro is not defined.
The slapd/daemon code has been changed to test both no threads
and yielding select before using a timeout of NULL.
1998-11-22 20:08:14 +00:00
Hallvard Furuseth
aa9229c454
be& was passed uninitialized to read_config()
1998-11-22 09:33:30 +00:00
Kurt Zeilenga
475fd6dc45
"make veryclean" now lives up to its name.
1998-11-22 06:24:59 +00:00
Kurt Zeilenga
6f92e197dc
Add libtool support based upon patch by Bart Hartgers <Hartgers@kfm1.phys.tue.nl>
...
Updated to use libtool 1.2 (with FreeBSD3.0 a.out v. elf detection).
Updated autoconf to 1.12 with sed patch (don't use stock 1.12).
aclocal.m4 is built using automake's aclocal, v1.3.
Updated mkdep to support libtool .lo files.
Updated automake provided macros for TERMIOS, STRTOD, MKTIME, PTRDIFF_T
Autoconf now checks to ensure C compiler supports ANSI C prototypes.
Updated make files templates.
1998-11-22 04:22:28 +00:00
Hallvard Furuseth
aec88f98bd
Don't use perror after ldbm_store() failure; errno is not set then.
1998-11-20 12:15:05 +00:00
Hallvard Furuseth
e80e9c8342
The tsleep() versions had different return types
1998-11-20 11:46:59 +00:00
Kurt Zeilenga
2d876eb74e
Update comments associated with SIGUSRx -> LDAP_SIGUSRx change.
1998-11-19 01:18:24 +00:00
Kurt Zeilenga
bbdac6ebca
debug messages incorrectly said "add" instead of "remove".
1998-11-18 20:27:21 +00:00
Kurt Zeilenga
e622bc85f8
free parent's reader lock. Thanks Gary!
1998-11-18 20:20:54 +00:00
Kurt Zeilenga
3111cfa3bd
Update LinuxThread signal handling. Hide #ifdef hell in ac/signal.h.
1998-11-18 17:45:32 +00:00
Kurt Zeilenga
b5494457d8
Remove extern declarations of library functions from source.c.
...
This could cause problems on odd systems. The generic
headers should be extended as needed to include necessary
system headers or, if necessary, make explicit declarations.
Extended ac/string.h header to look for string.h/strings.h if
STDC_HEADERS is not defined. Also provide basic declarations for
str*() functions. This could cause problems on odd systems.
Extended ac/unistd.h header to define basic declaration for misc
functions that might be missing from headers. This includes
externs for getenv(), getopt(), mktemp(), tempname().
Protect fax500.h from multiple inclusion. Moved includes of
system/generic headers back to source files.
Made mail500 helper functions static.
Fixed includes of ctype.h, signal.h, etc. to use generics.
lutil/tempname.c: was including stdlib.h twice, one should stdio.h.
Wrapped <sys/resource.h> with HAVE_SYS_RESOURCE_H.
lber/io.c/ber_get_next(): Changed noctets back to signed.
Used with BerRead which expects signed int as second arg and
returns signed int.
1998-11-16 05:07:27 +00:00
Hallvard Furuseth
7e6ad5100c
Protoized, moved extern definitions to .h files, fixed related bugs.
...
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-15 22:40:11 +00:00
Kurt Zeilenga
1c91859e9b
Remove #ifdef sunos in lthread HAVE_LWP code.
1998-11-15 22:05:28 +00:00
Kurt Zeilenga
c32792b489
Include ldif.h to pickup declaration of str_getline()
...
Fix pointer truncation to int by including prototypes in forward declarations.
1998-11-12 20:17:01 +00:00
Kurt Zeilenga
f1fde41ff8
remove an entry from its parent's children ID list when it's deleted.
...
Provided by "Gary D. Williams" <sasgwi@unx.sas.com>
1998-11-12 18:39:33 +00:00
Hallvard Furuseth
523fd2c891
Fix most `wider type truncated to int' bugs on OSF1 due to implicit decls:
...
#include <stdlib.h> to get malloc & co various places,
#include <ac/string.h> to get strlen & co in (liblutil/setproctitle.c),
declare ch_malloc & co (slurp.h), avl_find_lin (avl.h), Malloc (ud/edit.c).
Also changed ch_malloc & co from char* to void* functions.
1998-11-11 23:37:38 +00:00
Hallvard Furuseth
f0688d71a1
Locks were not always released, in particular if something went wrong.
...
Fixed in slurpd and the slapd main dir. Slapd clients were not examined.
It also "felt right" to swap the order of closing dfp and rfp in slurpd
copy_replog(), so the last acquired lock is unlocked first.
1998-11-11 19:17:25 +00:00
Hallvard Furuseth
f165bb2b96
strlen() needed string.h.
1998-11-11 16:35:58 +00:00
Hallvard Furuseth
fc03c3f07a
Fix HAVE_PTHREAD_D4 -> HAVE_PTHREADS_D4
1998-11-11 15:53:04 +00:00
Kurt Zeilenga
e03d88fcc4
Don't include portable.h. Headers can and should assume portable.h
...
has been included.
1998-11-11 01:38:02 +00:00
Kurt Zeilenga
376e1e02ff
Update configure to handle DEC OSF1 3.2 special cases.
...
-thread & -pthread are still treated as libraries, will need
additional work to use them as CFLAGS.
Eliminated HAVE_DCE define (was redundant) and its use. Code
now relies on draft4 and function existance tests.
1998-11-11 00:24:22 +00:00
Kurt Zeilenga
1fc810bfe5
Added support for ldap.conf file. See ldap.conf(5) for details.
...
Modified clients to reduce use of ldapconfig.h.edit.
ldap_{get,set}_option support is relatively complete. Needs
to be extended to support other "features" of OpenLDAP.
1998-11-10 23:37:30 +00:00
Hallvard Furuseth
8761bbb6e9
ber_scanf() returns unsigned long, not int
1998-11-08 02:56:47 +00:00
Kurt Zeilenga
21cb9a1c5d
Fix LDBM_SYNC typo
1998-11-07 17:14:35 +00:00
Kurt Zeilenga
3f1b97481c
Make flush_writes the default. Change option to 'dbcachenowsync'.
...
Change backend struct option to li_dbcachewsync.
1998-11-07 02:25:32 +00:00
Kurt Zeilenga
c63938a187
missing newlines bugfix from Dan.
1998-11-06 20:43:19 +00:00
Kurt Zeilenga
ab37c7c8b4
j_sanchez@stl.es
1998-11-06 20:40:47 +00:00
Kurt Zeilenga
24a6a91cac
Use TOUPPER macro.
1998-11-05 22:08:43 +00:00
Kurt Zeilenga
8777f818dc
Fix datum typo.
1998-11-05 21:56:08 +00:00
Hallvard Furuseth
904afbcf6d
Some gcc -W... cleanup
1998-11-05 08:03:48 +00:00
Hallvard Furuseth
177367bdb1
Some gcc -W... cleanup
1998-11-05 07:31:40 +00:00
Hallvard Furuseth
853a1371d1
Some gcc -W... cleanup
1998-11-05 06:49:49 +00:00
Kurt Zeilenga
4646b76608
define _REENTRANT & _THREAD_SAFE to pull in reentrant/threadsafe prototypes.
...
modify apps to use TOLOWER/TOUPPER macros to ensure isupper/islower is
called when approprate.
1998-11-05 06:11:47 +00:00
Hallvard Furuseth
a4411a9944
Some gcc -W... cleanup
1998-11-05 05:47:02 +00:00
Hallvard Furuseth
6df9dcc943
Prototype vs. K&R mismatch
1998-11-05 05:06:51 +00:00
Hallvard Furuseth
0c38adcfd8
Get struct sockaddr for slap.h
1998-11-05 05:05:05 +00:00
Hallvard Furuseth
83ec12246e
Enclose debug variables in #ifdef LDAP_DEBUG
1998-11-05 05:03:12 +00:00
Kurt Zeilenga
2c644a29f1
Needed -llutil before @LUTIL_LIBS@
1998-11-05 03:06:12 +00:00
Hallvard Furuseth
c91e7dd285
Avoid f_next name conflict
1998-11-05 02:46:29 +00:00
Hallvard Furuseth
f3db3e0a8f
replace detach.c with lutil_detach()
1998-11-05 01:56:41 +00:00
Hallvard Furuseth
bc6658be46
replace detach.c with lutil_detach()
1998-11-05 01:30:02 +00:00
Kurt Zeilenga
ecc07180de
Needs LUTIL_LIBS
1998-11-05 00:37:46 +00:00
Kurt Zeilenga
d33c87fc6f
HAVE_LWP_THR was renamed HAVE_THR.
1998-11-04 22:32:18 +00:00
Hallvard Furuseth
c39d8720d9
ldapd did not compile
1998-11-04 19:45:38 +00:00
Hallvard Furuseth
48b3cd0f3f
USE_LOCKF -> HAVE_FLOCK
1998-11-04 19:43:51 +00:00
Kurt Zeilenga
8333a03346
struct ldap is now opaque to clients.
...
updated clients to use ldap_get/set_options
ld_options is renamed ld_booleans. ldap-int.h has accessor macros.
updated libldap to use new accessor macros.
1998-11-04 01:41:00 +00:00
Kurt Zeilenga
d0a843b74d
Insert #ifdef SLAPD_ACLGROUPS
1998-10-27 06:34:01 +00:00
Stuart Lynne
7c52060c67
1. extend aclgroup's to be able to specify objectClassValue and groupAttrName
...
2. update print_acl() a bit and call it during aclparse if LDAP_DEBUG_ACL
1998-10-27 02:07:12 +00:00
Kurt Zeilenga
033cf4ebe7
Fixup bugs created by merge.
1998-10-26 17:37:35 +00:00
Kurt Zeilenga
d81b77e52d
Move sizelimit check such that it limits what's returned, not what is searched.
1998-10-26 03:33:30 +00:00
Kurt Zeilenga
43f29c3cb8
More header work toward draft-ietf-ldapext-ldap-c-api-01.
1998-10-26 01:49:56 +00:00
Kurt Zeilenga
cf50d9436c
Add Ken McGarrahan's LE/GE fix.
1998-10-25 18:40:10 +00:00
Kurt Zeilenga
393a5e21b8
Fix typo
1998-10-25 01:54:37 +00:00
Kurt Zeilenga
cbb281cc4e
remove old files
1998-10-25 01:50:47 +00:00
Kurt Zeilenga
2a869f5a99
merged with autoconf branch
1998-10-25 01:41:42 +00:00
Kurt Zeilenga
708e5abb08
Fixed memory leaks.
1998-10-24 06:11:30 +00:00
Kurt Zeilenga
32d9124fed
Updated derefAlias/DN to handle Entry R/W locks.
...
New alias.c provided by Stuart Lynne.
1998-10-24 04:01:20 +00:00
Kurt Zeilenga
6772a6e130
new files for general aliasing
1998-10-24 03:49:07 +00:00
Kurt Zeilenga
bf6c1e0ad2
Added Will Ballantyne's General Aliasing code.
...
Not quite sure if the entry lock handling is correct yet.
1998-10-24 02:42:38 +00:00
Kurt Zeilenga
d4c5308b3a
Use current schema objectClass 'groupOfNames' instead of 'groupOfUniqueNames'
...
Will consider moving to groupOfUniqueNames as part of OpenLDAP 2.0.
1998-10-24 02:33:17 +00:00
Kurt Zeilenga
238f7361d6
slapd returned "partial results and referral" even when no default
...
referral has been configured in the server. Fix provided by Hallvard.
1998-10-23 22:20:45 +00:00
Kurt Zeilenga
1d0e090998
remove lint reported by Hallvard
...
This could have caused a crash.
1998-10-23 22:00:20 +00:00
Kurt Zeilenga
856c134079
Fix uninitialized pointer bug.
1998-10-23 21:51:32 +00:00
Kurt Zeilenga
1c0b433a25
very bad typo.
1998-10-23 21:49:03 +00:00
Kurt Zeilenga
9f92954dff
ifdef Y2K -> ifndef LOCALTIME
1998-10-21 19:35:30 +00:00
Kurt Zeilenga
845e0073eb
more localtime -> gmtime changes
1998-10-21 19:29:20 +00:00
Kurt Zeilenga
68a473e6af
Use gmtime() instead of localtime()
1998-10-21 19:26:49 +00:00
Kurt Zeilenga
4a5d740e2e
Merged in per cache entry reader/writer locks from OPENLDAP_DEVEL_THREAD
1998-09-20 20:22:46 +00:00
Kurt Zeilenga
d1288c2fa9
Use ldapconfig.h instead of hardcoded paths.
1998-09-17 03:38:36 +00:00
Kurt Zeilenga
c246205958
Add ldap_ prefix to md5 calls.
...
Patch submitted by Chris Smith <csmith@platform.com>
1998-09-16 19:03:22 +00:00
Kurt Zeilenga
007cbfc8f1
Insert Y2K fix (hidden behind -DLDAP_Y2K).
1998-09-16 08:33:34 +00:00
Kurt Zeilenga
b1d48b89ba
Wrap $CC with quotes.
...
Patch provided by Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1998-09-16 04:18:42 +00:00
Kurt Zeilenga
d9170de015
Okay, this really works.
1998-09-12 04:38:19 +00:00
Kurt Zeilenga
ac989f108d
Directory rule is didn't work... use brute force
1998-09-12 04:33:13 +00:00
Kurt Zeilenga
cad8e004cb
Add missing mkdirs in make install rules
1998-09-12 04:13:26 +00:00
Kurt Zeilenga
2fb96905d2
Add Kerberos V5 support from Predrag Balorda <pele@artewisdom.com>
1998-09-08 02:26:56 +00:00
Kurt Zeilenga
bafbb80824
Add support for Gnu make
1998-09-07 23:13:46 +00:00
Kurt Zeilenga
3596dd376f
fix comment from last commit
1998-09-07 08:32:30 +00:00
Kurt Zeilenga
95b24ea482
Added greg@greg.rim.or.jp's quick hack to allow search with empty search base.
...
Must enable -DLDAP_ALLOW_NULL_SEARCH_BASE to use.
1998-09-05 20:33:22 +00:00
Kurt Zeilenga
cac3ea1e92
Import public domain sha1 routines from Steve Reid <steve@edmweb.com>.
...
Modified for OpenLDAP use by Daniel J. Gregor <djg@gregor.com>.
1998-09-03 06:25:38 +00:00
Kurt Zeilenga
2054d40b7c
Added support for SleepyCat DB2 DBI.
...
Derived from public posting to ldap@umich.edu
by Kurt Spanier <kurt.spanier@zdv.uni-tuebingen.de>
See Make-common.dist for DB2 options
1998-09-03 00:50:13 +00:00
Kurt Zeilenga
8c5868b500
Add basic support for MD5 and SHA1 passwords.
...
SHA1 support is contributed by Daniel J. Gregor <dj@gregor.com>
MD5 support is contributed by me <kurt@OpenLDAP.org>
Uses public domain MD5 routines
Uses ISC/IBM freely redistributable Base64 routines
SHA1 support requires external SHA1 routines
1998-09-02 21:31:35 +00:00
Kurt Zeilenga
e9233c923d
Fixed null termination bug in re.c. Found by vasquez@w270.de
1998-09-02 16:12:07 +00:00
Kurt Zeilenga
27496ee554
<sys/socket.h> is required if CLDAP is enabled.
1998-08-28 21:56:24 +00:00
Kurt Zeilenga
48dcea21a1
Added modify race patch from sl@fireplug.net
1998-08-28 17:42:42 +00:00
Kurt Zeilenga
7963420cde
Add NO_THREADS fix from tih@nhh.no
1998-08-27 21:44:45 +00:00
Kurt Zeilenga
2ec25ef881
Merged files from branch REGEX_REMOVAL. Despite name, this merge
...
adds POSIX RegEx (and removes BSD re_comp/re_exec) support.
* POSIX RegEx is not currently included in the distribution, however
we will probably add Henry Spencer's REGEX library soon.
* ACL Group functionality is also included in this merge!
1998-08-21 06:33:42 +00:00
Kurt Zeilenga
6ffddf154a
Fix shadowing bug created from previous change.
1998-08-20 18:40:45 +00:00
Kurt Zeilenga
0a5ab66d69
Minor cleanup
1998-08-20 08:10:06 +00:00
Kurt Zeilenga
d2ef362f99
Removed use of paths not defined in ldapconfig.h.edit.
...
Fixed Dependency Generation not to mess with Make-templates.
side effect: depends are not carried forward after "make makefiles"
1998-08-20 03:56:19 +00:00
Kurt Zeilenga
b3ac184962
Fixed ldapconfig.h.edit/Make-template to generate ldapconfig.h correctly.
...
ldif2ldbm.c defaults moved to ldapconfig.h, sed no longer needed.
Changed type of lconn_lastused to time_t.
Added include <time.h> were needed.
1998-08-20 02:18:28 +00:00
Kurt Zeilenga
c6e7dd892e
CLDAP need <sys/socket.h>
1998-08-20 00:13:01 +00:00
Kurt Zeilenga
adc2134f03
Modified build environment to correctly support bin,sbin,libexec,etc
...
and setting of variables from Make-platform with defaults in Make-common.
1998-08-19 18:19:39 +00:00
Kurt Zeilenga
079f21c3ac
Added LIBEXECDIR, SBINDIR and patched install rules and files as needed.
1998-08-19 02:38:35 +00:00
Kurt Zeilenga
7df4daffcd
Merged in LASTMOD changes from Allan Stuart.
...
Protects createtimestamp and creatorsname.
1998-08-19 01:30:57 +00:00
Kurt Zeilenga
49d40a26f8
Added ldbm flush on write code which uses slapd.conf option.
1998-08-19 00:10:02 +00:00
Kurt Zeilenga
8a3eefd111
Changed calloc to ch_malloc. Don't need clear, should use ch_ functions.
1998-08-18 20:28:54 +00:00
Kurt Zeilenga
3eb609ab21
Add patch from Gordon Good to fix copying of DNs with null bytes.
1998-08-18 19:05:33 +00:00
Kurt Zeilenga
f51765eead
Changed FD_SETSIZE checks for consistency. Added checks where needed.
1998-08-18 18:19:49 +00:00
Kurt Zeilenga
dfeabf5213
Fixes from Allan Lynne
1998-08-18 17:51:53 +00:00
Kurt Zeilenga
e4af28135d
Changes prompted by Terry's patches
1998-08-18 00:41:35 +00:00
Kurt Zeilenga
97e88afb5e
Sync the cache per Stuart Lynne <sl@poste.com>
1998-08-17 23:34:12 +00:00
Kurt Zeilenga
fa2da63ca4
Merge from LAMBERT branch
1998-08-17 23:26:25 +00:00
Kurt Zeilenga
401bd7495a
Fixed uninitialized Backend pointer.
1998-08-17 21:10:02 +00:00
Kurt Zeilenga
e66aa92102
Added support for TCP_WRAPPERS (ldapd code not tested, don't have isode here).
...
Cleaned up LDAP_CRYPT support.
1998-08-15 23:03:09 +00:00
Kurt Zeilenga
412f44afa3
Fixed "faled" typo in debug message
1998-08-15 18:39:15 +00:00
Kurt Zeilenga
cf1d3904a4
fix SIGUNUSED typo
1998-08-15 18:18:43 +00:00
Kurt Zeilenga
b58c782eeb
needs socket.h
1998-08-15 18:18:12 +00:00
Kurt Zeilenga
efc5e2d0e4
daemon -> slapd_daemon
1998-08-13 20:20:13 +00:00
Kurt Zeilenga
f3e9bc606c
integrated changed from rage.net glibc.patch
1998-08-13 19:32:43 +00:00
Kurt Zeilenga
7b115db732
RAGE: SLURPD malloc bug in st.c
1998-08-09 04:52:36 +00:00
Kurt Zeilenga
1596b380e9
RAGE: LDAPD Linux does have <sys/filio.h>
1998-08-09 04:38:40 +00:00
Kurt Zeilenga
fcbca73f90
Merged LDAPworldCurrent (P1-10,13,15,16,19-22)
...
Cleaned up old rcs keyworld subs
1998-08-09 04:13:55 +00:00
Kurt Zeilenga
ccc2797a77
LDAPworldP21: SLAPD Memory leak/error in filterentry.c
1998-08-09 03:37:22 +00:00
Kurt Zeilenga
29062d06e4
LDAPworldP20: Patch for comparing crypt()ed passwords (#ifdef LDAP_CRYPT)
1998-08-09 03:34:35 +00:00
Kurt Zeilenga
1cad5fd9b2
LDAPworld P13: LDAPv2 client referrals bug
1998-08-09 02:56:52 +00:00
Kurt Zeilenga
38c92a1151
LDAPworld P10: SLAPD Index corruption
1998-08-09 02:54:09 +00:00
Kurt Zeilenga
221db1f19a
LDAPworld P9: SLAPD crashes with filter containing zero elements
1998-08-09 02:52:09 +00:00
Kurt Zeilenga
8893be2975
LDAPworld P7: SLURPD compile problems with SYSERRLIST_IN_STDIO
1998-08-09 02:48:03 +00:00
Kurt Zeilenga
835d3ef9bd
LDAPworld P5: SLAPD Negation of Non-Indexed Search
1998-08-09 02:39:52 +00:00
Kurt Zeilenga
fbdb748a7d
LDAPworld P4: SLAPD Crash when Schema Checking
1998-08-09 02:36:33 +00:00
Kurt Zeilenga
8d5c2b41e6
LDAPworld P3: SLAPD LDBM Generation with Multiple Backends
1998-08-09 02:33:01 +00:00
Kurt Zeilenga
860038cff1
LDAPworld P1: DEC and other portability issues
1998-08-09 02:28:45 +00:00
Kurt Zeilenga
f6c2f2e6ab
Merge FreeBSD Make-templates into LDAPworld branch
1998-08-09 02:24:07 +00:00
Kurt Zeilenga
df38bf83e8
apply FreeBSD changes to main branch
1998-08-09 01:35:58 +00:00
Kurt Zeilenga
04ff180cbf
Modified make system to support CVS instead of RCS
1998-08-09 01:24:49 +00:00
Kurt Zeilenga
8b2170bcf4
Import of FreeBSD LDAP 3.3 Port
1998-08-09 01:05:15 +00:00
Kurt Zeilenga
42e0d83cb3
Initial revision
1998-08-09 00:43:13 +00:00