Hallvard Furuseth
55fa595f56
Add missing newline at EOF
1999-07-13 04:11:49 +00:00
Hallvard Furuseth
7e3ede2e01
Erase bad space from blank Makefile line
1999-07-13 04:01:25 +00:00
Kurt Zeilenga
5e14b911e6
Mirror <ac/time.h> inclusion made in re12
1999-07-09 21:10:19 +00:00
Kurt Zeilenga
469baeb3c0
Forgot the most important part of unsolicited notifications... exop!
1999-07-07 18:53:51 +00:00
Kurt Zeilenga
e9c2895472
Add support for unsolicited notifications.
1999-07-07 18:51:39 +00:00
Kurt Zeilenga
b8edef2b2c
Copy LDBM bind "ACL_AUTH" and SASL framework to bdb2.
1999-07-07 18:47:51 +00:00
Kurt Zeilenga
7541ccbe10
Fix CRITICIAL typo.
1999-07-07 18:32:41 +00:00
Kurt Zeilenga
6c1758ae33
Add matching rule assertion structure to filter union.
1999-07-07 18:02:32 +00:00
Kurt Zeilenga
fb593fc5b9
Add controls.c to pick up get_ctrls().
1999-07-05 23:08:43 +00:00
Kurt Zeilenga
32cefa43a0
Add controls.c: initial version of get_ctrls()
1999-07-05 23:04:35 +00:00
Kurt Zeilenga
00086db3f6
Add get_ctrls()...
1999-07-05 23:01:17 +00:00
Kurt Zeilenga
51d1c90887
unifdef -DSLAPD_ACLGROUPS -DSLAPD_ACLAUTH
1999-07-05 06:26:26 +00:00
Kurt Zeilenga
549c89f817
Regarding previous commit:
...
Fix broken ACL macros.
Fix o_dn/o_ndn == NULL vs "".
1999-07-04 19:53:00 +00:00
Kurt Zeilenga
49f39bc4cf
o_dn/o_ndn must not be NULL. Set to "" upon receiving bind request.
1999-07-04 19:37:25 +00:00
Kurt Zeilenga
106eef41d8
HEADS UP: connections are forced to "anonymous" status upon receiving
...
of a bind request and, upon failure, are left "anonymous."
Rework ACL code to hide access testing within macros to facilate additions
and eventual redesign.
Addition of #ifdef SLAPD_ACLAUTH to conditional include EXPERIMENTAL
"auth" access controls. Adds ACL_AUTH "auth" access level (above none,
below "compare"). bind requires anonymous access at this level or above access
to "entry"/"userPassword"/"krbName". This allows administrators to restrict
which entries can be bound to. (This will likely become default behavior
after testing has completed).
1999-07-04 18:46:24 +00:00
Kurt Zeilenga
daf40a51c1
Abandon all operations upon receiving a BindRequest.
1999-07-02 21:42:53 +00:00
Kurt Zeilenga
b7bbc7504d
More bind changes to support SASL/DIGEST.
...
Added configuration support for "digest-realm <realm>" configure directive.
Added connection state and bind_in_progress fields to cn=monitor connection
attribute.
1999-07-02 19:48:07 +00:00
Kurt Zeilenga
175ace59c8
Send LDAP_SASL_BIND_IN_PROGRESS if o_bind_in_progress is true.
1999-07-02 00:46:28 +00:00
Kurt Zeilenga
6f8fad20f2
Add conn/op bind_in_progress flags such that operations can detect
...
if multiple step SASL binds are in progress.
1999-07-02 00:04:47 +00:00
Kurt Zeilenga
97bc107537
Add macros to support testing of error categories to ldap.h
...
Modify ldap_result to assert returned error is not an one reserved
for API use.
Modify frontend LDAP operation routines to return an error code.
The returned value will be used to determine if an unsolicited notification
should be sent to the client.
Need to review returned error codes. Namely some LDAP_PROTOCOL_ERROR
will like need to be changed (as they will cause unsolicited notifications).
1999-07-01 21:20:45 +00:00
Kurt Zeilenga
d7b311c6e1
s/LDAP_NOT_SUPPORTED/LDAP_UNWILLING_TO_PERFORM/
1999-07-01 04:43:48 +00:00
Kurt Zeilenga
ddd0559284
Fairly complete slapd SASL bind parsing... and centralized cleanup code.
...
Update error strings and cldap misuse of server error.
1999-07-01 04:42:01 +00:00
Kurt Zeilenga
129ee42f37
NO-OP SASL parsing... DIGEST-MD5 coming soon.
1999-07-01 03:18:00 +00:00
Kurt Zeilenga
f9db1ea889
Rework BER decoding with lieu of LDAPv3 controls (coming soon).
...
Add place holder for handling LDAPv3 extended operations (coming soon).
1999-06-30 22:43:27 +00:00
Kurt Zeilenga
14820afdd9
Reimplement connection counters. Format of "connection" attribute
...
changed significantly.
1999-06-30 02:50:40 +00:00
Kurt Zeilenga
9225707a06
Modify lutil_passwd to accept a third argument char** methods to
...
specific which methods may be used. This will facilate development
of a slapd config directive "passwordMethod ..." to specify which
methods should be allowed.
1999-06-29 22:24:53 +00:00
Kurt Zeilenga
fe00263875
expose oc_check_operational from schema.c
...
Use everywhere.
Apply search ACLs to operational attributes.
Only provide operational attributes when explicitly requested.
1999-06-29 04:52:55 +00:00
Kurt Zeilenga
a7dfc2aada
Add sasl "mech" argument to backend bind routines.
1999-06-29 03:29:26 +00:00
Kurt Zeilenga
1ee85df297
Add framework for sasl and controls.
1999-06-29 03:17:22 +00:00
Kurt Zeilenga
dcc5bdfe7e
Log out to stderr, add LDAP_VERSION3 support to bind.c and modrdn.c
1999-06-29 01:02:48 +00:00
Kurt Zeilenga
2660d0b42f
Remove old U-Mich v3.0 and OLD_LDAP_* crud.
...
Leave only LDAPv2+ and LDAPv3.
1999-06-29 00:03:34 +00:00
Kurt Zeilenga
cf89dd83cd
don't set unsigned variables to -1 and expect them to be negative.
...
verify uid/gid are positive, not non-negative.
1999-06-27 03:58:06 +00:00
Bastiaan Bakker
5a470f8959
Merged dynamic module support patch (see ITS #196 ). To enable, run ./configure w
...
ith --enable-modules. GLib v1.2 or higher is required.
1999-06-24 17:06:34 +00:00
Bastiaan Bakker
e2b5b21155
Added connection initialisation and destruction notification. Now backends can register functions in backend_info.bi_connection_init and backend_info.bi_connection_destroy that will be called when a connection is initialized or destroyed.
1999-06-23 12:31:35 +00:00
Kurt Zeilenga
0b924192e7
Move nt_debug to -llutil and generalize for all platforms.
1999-06-21 22:52:28 +00:00
Kurt Zeilenga
2fda53f375
Add missing arguments to Debug() calls... and adapt nt_debug for general
...
use.
1999-06-21 22:36:13 +00:00
Kurt Zeilenga
6bd26a6aed
remove lint.
1999-06-21 22:35:02 +00:00
Kurt Zeilenga
52e69dfc14
All "o=foo" add to suffix "" if bound as root.
1999-06-19 05:11:18 +00:00
Kurt Zeilenga
f9a560114a
Allow adding of dn: o=foo if suffix is "" and rootdn.
1999-06-19 04:26:17 +00:00
Kurt Zeilenga
13ac82621b
Limit the check to a 4 tries every timeout.
1999-06-19 03:23:49 +00:00
Kurt Zeilenga
2d720643be
experimental connections_timeout_idle() implementation.
1999-06-19 03:20:01 +00:00
Kurt Zeilenga
669b8f4047
ber_int_t, ber_tag_t, ber_socket_t, ber_len_t
...
added lber_types.h.nt, lber_types.h.in
removal of NULLxxx internal macros (in favor of NULL).
ch_free added to slapd,slurpd/ch_malloc.c
#define free ch_free (should be removed after s/free/ch_free/g) in proto-slap.h
ch_malloc and friends use ber_memalloc and friends
1999-06-18 23:53:05 +00:00
Kurt Zeilenga
7e4b3bc2e7
initial commit of idletimeout code... everything but the actual timeout.
1999-06-18 22:54:19 +00:00
Gary Williams
07e5656797
allow service name to be passed in for install/remove
1999-06-18 21:35:18 +00:00
Gary Williams
f0ea6f2ee4
add define of service name (shared in main and nt_svc, that's why it's here)
1999-06-18 21:34:24 +00:00
Gary Williams
49d9c99d58
fix comment format, allow service name to be passed in (-v option)
1999-06-18 21:33:39 +00:00
Gary Williams
1971837778
fix comments (remove // style), free(ptr) in slapd_daemon_task was causing heap failure
1999-06-18 21:31:53 +00:00
Gary Williams
e2a1216bda
change DIRSEP to LDAP_DIRSEP
1999-06-18 21:21:32 +00:00
Kurt Zeilenga
8e10bd5f81
Fix up NT slapd.dsp and nt_svc.c so that slapd builds under MSVC5.
1999-06-17 19:03:41 +00:00
Kurt Zeilenga
b0aea66d1d
Recommit NT service changes (untested) with changes to resolve
...
compiling errors on other platforms. Will need to update NT projects.
1999-06-17 18:46:02 +00:00
Julio Sánchez Fernández
5d8b65deb1
Have the normalize routines process white space in the required way.
...
Code untested, but it is not used yet.
1999-06-17 16:10:38 +00:00
Julio Sánchez Fernández
10eb260e9c
Some sample routines for implementing matching rules.
...
Some matching rule definitions modified to use said routines.
Default appropriately all other matching rules.
1999-06-17 15:07:35 +00:00
Julio Sánchez Fernández
45679394e0
If we are inheriting the syntax from a superior, we'd rather inherit
...
the length too.
1999-06-17 15:05:02 +00:00
Julio Sánchez Fernández
9ec2849a6d
Fix handling of SYNTAX_CES by making use of some matching rules in
...
X.520 that were not inherited by RFC2252.
Fill in properly the matching rule oids when converting an attribute
type definition in the old format.
1999-06-17 13:11:30 +00:00
Julio Sánchez Fernández
66279c696c
Defined 3 new matching rules taken from X.520 that were necessary to
...
do properly SYNTAX_CES. Documented all other matching rules from
X.520 that we do not use.
1999-06-17 13:08:40 +00:00
Kurt Zeilenga
bbc568b21f
ldapconfig.h vs ldap_config.h changes
...
backout previous nt changes (actually, just don't include nt_svc.c)
1999-06-17 04:43:24 +00:00
Kurt Zeilenga
21e081dc5b
Separate autoconf generated values from "defaults".
...
ldap_defaults.h incorporates non-generated ldapconfig.h values.
ldap_config.h.in is new template for autoconf generated defaults
(namely directories and paths)
ldap_config.h.nt, NT template (must be manually copied)
s/<ldapconfig.h>/<ldap_defaults.h>/
s/DIRSEP/LDAP_DIRSEP/ & s/DEFAULT_/LDAP_/
1999-06-17 03:54:25 +00:00
Kurt Zeilenga
23c4b81819
Backout NT Service changes.... breaks Unix builds...
1999-06-17 00:51:12 +00:00
Kurt Zeilenga
36cb034611
Add test for resched state change in connection_get
1999-06-17 00:48:51 +00:00
Gary Williams
bfa86bcf57
new module to support slapd as NT service
1999-06-16 19:16:34 +00:00
Gary Williams
4d13d4071a
add code to support slapd as NT service
1999-06-16 19:15:35 +00:00
Gary Williams
2ffc4b19ea
check addr for NULL before copying
1999-06-16 19:15:03 +00:00
Gary Williams
17c9a5798a
NT service code for slapd
1999-06-16 19:14:29 +00:00
Julio Sánchez Fernández
f5d28c6df5
Fixed bogus handling of objectclass in oc_schema_check.
1999-06-16 12:11:47 +00:00
Juan Gomez
4a683c204d
Replaced add/delete_value() by change_value() and index_add/delete_value()
...
by index_change_values(). The functions were exactly the same but for
one call.
1999-06-15 23:56:28 +00:00
Kurt Zeilenga
8f8cf6d3b1
Fix a couple of nits. ldbmtest still needs to be ported to NT.
1999-06-15 21:17:26 +00:00
Juan Gomez
5b0e434d93
Enabled deletion of stale index entries. (EXPERIMENTAL)
1999-06-15 20:06:16 +00:00
Juan Gomez
e1819eaff9
Added function delete_value() to remove entries from the index files
...
when necessary.
1999-06-15 19:50:20 +00:00
Julio Sánchez Fernández
74ff331014
Initial RFC2252-compliant version.
1999-06-15 12:40:46 +00:00
Julio Sánchez Fernández
c5060e655f
We don't have a definition for caseIgnoreListSubstringsMatch, disable
...
references to it for now.
Fix some broken definitions.
We don't have a definition for caseIgnoreIA5SubstringsMatch either,
delete for now.
Define buildingName, it was being referenced.
1999-06-15 12:39:35 +00:00
Julio Sánchez Fernández
7ef4ec98b7
We don't have a definition for caseIgnoreListSubstringsMatch, disable
...
references to it for now.
1999-06-15 12:37:06 +00:00
Julio Sánchez Fernández
759bfa0c51
Activate checking of matching rules and syntaxes.
...
Make matching rules link to their syntaxes.
Many more matching rules and syntaxes.
Protect schema_init from multiple invocations.
1999-06-15 12:35:29 +00:00
Julio Sánchez Fernández
4cfb0be242
Activate support of matching rules and syntaxes, inherit them from superiors.
1999-06-15 12:32:21 +00:00
Julio Sánchez Fernández
fc44e7ddef
New error code, fixed definition of smr_syntax.
1999-06-15 12:30:51 +00:00
Julio Sánchez Fernández
5adb15f681
More error codes.
1999-06-15 12:28:54 +00:00
Julio Sánchez Fernández
803d6d1204
Moved call of schema_init from main to read_config.
1999-06-15 12:26:07 +00:00
Kurt Zeilenga
61eaffeed2
connection_get forgot to unlock c_mutex in not used case!
1999-06-14 20:33:21 +00:00
Kurt Zeilenga
e2e1cb76cb
Remove check for inactive streams before connection_read/_write
...
calls. Such checks are ineffective it protecting connection_read/_write
from being called inactive streams. connection_read/_write have their
own protection against such (in connection_get()).
1999-06-14 20:28:30 +00:00
Julio Sánchez Fernández
87b86a52e4
Matching rules and syntaxes, initial step.
...
schema_init, seeding of standard syntaxes and matching rules.
1999-06-14 19:10:07 +00:00
Juan Gomez
499b8fdc04
Added index_delete_values() in preparation for changes that will keep
...
index files clean.
1999-06-14 18:16:05 +00:00
Juan Gomez
24ec5ded59
official -> canonical
1999-06-14 16:37:46 +00:00
Juan Gomez
bf49544833
s/official/canonical/ & s/at_on/at_cn/
1999-06-14 16:36:00 +00:00
Julio Sánchez Fernández
a3f63029f4
Some changes to be more inline with the constification done on the library.
1999-06-14 14:34:07 +00:00
Julio Sánchez Fernández
53ae3dc5c0
Initial definitions for syntaxes and matching rules.
1999-06-14 14:32:40 +00:00
Kurt Zeilenga
cb68aab469
s/ldap_open/ldap_init/ calls... ldap_open is deprecated.
1999-06-13 21:49:35 +00:00
Kurt Zeilenga
6950e8e403
Change referral comment to point to root.openldap.org instead of umich.edu.
...
Both do not return anything useful.
1999-06-12 21:02:11 +00:00
Kurt Zeilenga
18e5e729ac
Resched changes struct state without lock to avoid deadlock.
...
Hence connection_get must recheck struct state after obtaining
c_mutex to detect close.
1999-06-12 00:29:41 +00:00
Kurt Zeilenga
35e91be482
connection_get:
...
Connection could be closed before acquiring connections_mutex.
if c->c_struct_state == SLAP_C_UNUSED, return NULL.
1999-06-12 00:03:39 +00:00
Kurt Zeilenga
0dda34c9e4
Add additional assert in connection get for race debugging.
1999-06-11 23:19:31 +00:00
Juan Gomez
f3b3c68792
Added at_official_name() to enable uniform naming of index files.
1999-06-11 20:49:41 +00:00
Juan Gomez
7d8330fd40
Added code for uniform naming of index files.
1999-06-11 20:42:48 +00:00
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
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
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
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
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
Juan Gomez
b9f9b8805a
Fixed type by changing rdn_type to new_rdn_type.
1999-03-09 00:42:57 +00:00
Kurt Zeilenga
0b9c3953f2
Add dcobject & uidobject auxilary object classes. Useful for
...
using dc naming components with structural object classes that
don't allow a 'dc' attribute.
1999-03-08 22:19:48 +00:00
Juan Gomez
23b3217b66
Added software to add the new rdn as an attribute to the entry.
...
(First step towards full LDAPv2 support).
1999-03-07 09:31:54 +00:00
Juan Gomez
845bf15d89
Fixed typo in
...
conn->c_protocol == LDAP_VERSION3;
1999-03-07 09:18:25 +00:00
Hallvard Furuseth
3277a27b10
Remove unused variables
1999-03-06 16:29:05 +00:00
Hallvard Furuseth
984bdfa605
Remove unused variables
1999-03-06 06:33:34 +00:00
Kurt Zeilenga
588a458d78
MSVC5 cleanup...
...
lber: ifdef'ed out lber_..set_nonblock() function because it used ioctl's.
If it remains, it needs to be written to support various methods for
setting non-blocking. ioctls should probably be last choice. configure
could detect existance of fcntl(), ioctl(), etc.
bdb2:
added .dsp/.dsw files and did some basic cleanup (still needs work).
1999-03-06 00:57:25 +00:00
Juan Gomez
654f21b237
Implemented newSuperior handling.
1999-03-05 19:14:23 +00:00
Kurt Spanier
6da27229d9
1. Fix of ldbmcat segmentation fault bug (ITS#85 and #81 ).
...
2. Make ldbm_Env a failure-safe entity.
1999-03-05 11:24:42 +00:00
Kurt Spanier
3f76ee7a0b
Make dbEnv a private toy of back-bdb2.
1999-03-05 10:25:55 +00:00
Juan Gomez
3ba99a75ef
Added parameter newSuperior in preparation to support
...
LDAP v3 MODDN request.
1999-03-05 03:38:12 +00:00
Juan Gomez
07a5f765bb
Added parsing of newSuperior field for requests that
...
carry it. This in preparation to support LDAP v3 MODDN
request.
1999-03-05 03:37:49 +00:00
Juan Gomez
9fc5e8a409
Rename
...
int add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
to
int bdb2i_add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
So that ldbm and db2 backends can coexist.
1999-03-05 01:33:32 +00:00
Juan Gomez
b41a79fe16
Renamed
...
int add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
to
int bdb2i_add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
int bdb2i_replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
So that ldbm and db2 backend can coexist
1999-03-05 01:28:38 +00:00
Hallvard Furuseth
47093d0617
Protoize cnvt_str2int()
1999-03-04 13:51:14 +00:00
Hallvard Furuseth
94c6048f2f
Print entry ID with format %ld, not %d
1999-03-04 13:18:49 +00:00
Hallvard Furuseth
536aab01e4
Print tag with format %lu, not %d
1999-03-04 13:17:28 +00:00