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