Commit Graph

474 Commits

Author SHA1 Message Date
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