Kurt Zeilenga
0b924192e7
Move nt_debug to -llutil and generalize for all platforms.
1999-06-21 22:52:28 +00:00
Kurt Zeilenga
24c39b31b6
Add LDAP_VALID and other asserts.
1999-06-21 22:38:00 +00:00
Julio Sánchez Fernández
fd15804f63
Tokenization is not really well done. This is a temporary fix for parsing
...
answers from Innosoft servers, but expect better tokenization in the
future.
1999-06-21 10:08:03 +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
Gary Williams
e61bb6aa3f
close registry, and return static pointer (no free) from getRegParam
1999-06-18 21:29:02 +00:00
Gary Williams
7a7f3018fa
fix flag on formatMessage to not allocate buffer
1999-06-18 21:27:43 +00:00
Gary Williams
19d346ba71
remove dependencies on other libraries
1999-06-18 21:27:20 +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
Gary Williams
8f99cafe87
add new NT service modules
1999-06-16 17:53:38 +00:00
Gary Williams
4d6ce8b87e
new code to support slapd as an NT service
1999-06-16 17:53:17 +00:00
Kurt Zeilenga
fdbb2b80bf
Remove misplaced LDAP_P() in declaration of ldap_int_get_controls.
1999-06-16 17:11:14 +00:00
Julio Sánchez Fernández
64d018c357
Make sure print_numericoid always returns with a value.
...
Remove some lint.
1999-06-16 12:31:18 +00:00
Kurt Zeilenga
e8a45b52b3
assert read/write to not in use sockbufs. This may cause problems
...
with slapd... slapd should be fixed.
1999-06-15 02:31:15 +00:00
Julio Sánchez Fernández
2abcbd5a4d
Matching rules.
...
Replace be_liberal by allow_quoted in low level parsers since that
reflects better its semantics.
Add allow_quoted to parse_numericoid.
1999-06-14 13:40:52 +00:00
Julio Sánchez Fernández
3e6fe96a96
Constification.
1999-06-14 11:57:43 +00:00
Julio Sánchez Fernández
766a5832b1
Netscape DS quotes the SYNTAX values, we propagate the be_liberal
...
setting to parse_noidlen so that it can grok that.
Propagate be_liberal parse_oids so that it only accepts a qdstring when
necessary (i.e. in SUP) to cater for another Netscapism.
1999-06-14 11:31:42 +00:00
Julio Sánchez Fernández
8d2b71e6c1
ldap_*_free routines are new and replace the old static routines, all
...
references changed.
Parsers are now more liberal in that they can accept missing OIDs or
OIDs that are in the wrong syntax.
1999-06-13 23:34:41 +00:00
Kurt Zeilenga
cb68aab469
s/ldap_open/ldap_init/ calls... ldap_open is deprecated.
1999-06-13 21:49:35 +00:00
Juan Gomez
34f068f131
Drop support for alloca().
1999-06-11 18:56:28 +00:00
Kurt Zeilenga
2cb228a9ce
Clean up build_result_ber error handling.
1999-06-11 18:48:34 +00:00
Kurt Zeilenga
fde9d8702e
Fix build_result_ber to construct a new ber and to set ld_errno appropriately.
1999-06-10 18:00:04 +00:00
Kurt Zeilenga
f34c94e5d5
Disable LDAP_MEMORY_DEBUG on NT (should not have been enabled by default).
...
Fix LDAP_MEMORY_DEBUG realloc size bug, thanks Alex.
1999-06-10 00:56:00 +00:00
Julio Sánchez Fernández
92839e817f
Fixed inconsistent management of white space that was producing parsing
...
problems in slapd.
1999-06-09 11:51:31 +00:00
Julio Sánchez Fernández
9291bf6f44
Added whitespace in output in a few places.
...
Minor cosmetic changes.
Fixed parsing of noidlen.
1999-06-08 17:40:27 +00:00
Kurt Zeilenga
c6cf2815cb
Add missing ';' after BER_MEM_VALID macro calls.
1999-06-08 01:41:38 +00:00
Kurt Zeilenga
82def24b31
don't test BER_MEM_VALID forever.
1999-06-08 01:37:47 +00:00
Kurt Zeilenga
ca00536233
Minor clean of assert() and comments.
1999-06-07 23:12:34 +00:00
Kurt Zeilenga
b09e658d5b
Add and use a BER_MEM_VALID macro (behind ifdef LDAP_MEMORY_DEBUG).
...
Make sure LBER_INTIALIZED is set on any ber_mem* call.
1999-06-07 19:33:08 +00:00
Kurt Zeilenga
012f4e29b0
Hide assert(p == NULL) behind LDAP_MEMORY_DEBUG.
...
Add detection for duplicate free in LDAP_MEMORY_DEBUG code.
1999-06-07 18:48:22 +00:00
Kurt Zeilenga
f257ee858c
Use LDAP_VERSION2 instead of LDAP_VERSION.
1999-06-07 18:45:52 +00:00
Kurt Zeilenga
8c772985c7
s/LDAP_OPT_MATCHED_STRING/LDAP_OPT_MATCHED_DN/
...
Added place holder for LDAP_FILTER_EXTENDED code.
Added assert() here and there and removed lint.
Removed version promotion code (version must be manually set).
Added messages.c to MSVC project.
1999-06-05 20:18:32 +00:00
Kurt Zeilenga
b219b6aa48
Remove DOS comment.
1999-06-05 20:14:02 +00:00
Kurt Zeilenga
48c8aa035d
EXPERIMENTAL ldap_extended_operation() and ldap_parse_extended_result()
1999-06-04 00:34:04 +00:00
Kurt Zeilenga
a53823a613
Update comments to reflect RFC2251 specs.
1999-06-03 19:22:33 +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
21c70857f1
s/<stdlib.h>/<ac/stdlib.h>/
1999-06-03 00:37:44 +00:00
Kurt Zeilenga
3046c0449e
Fix up s/NULL.*/NULL/ errors
1999-06-02 23:21:06 +00:00
Kurt Zeilenga
f472d3abcf
No anonymous unions.
1999-06-02 22:40:58 +00:00
Kurt Zeilenga
1f52f6e43e
Add ber_strdup(), remove ldap_int_strdup(), add LDAP_STRDUP macro
...
and ripple change through -lldap.
1999-06-02 22:28:22 +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
09fe2bc905
Add experimental wrong heap detection behind LDAP_MEMORY_DEBUG macro.
1999-06-02 21:34:34 +00:00
Kurt Zeilenga
12176a0af9
Update Release/SRelease include paths
1999-06-02 04:08:50 +00:00
Kurt Zeilenga
e44971436c
Minor adjustments to the LBER_VFREE() & LDAP_VFREE macros.
1999-06-01 19:25:17 +00:00
Kurt Zeilenga
8e60c8e287
Clean up memory handlers. Share vector free routines... ber_memvfree().
1999-06-01 19:08:27 +00:00
Kurt Zeilenga
716523f1ac
Clean up namespace
1999-06-01 19:03:47 +00:00
Kurt Zeilenga
4ccab0d4df
move berval memory routines to memory.c
...
Add ber_memvfree(void** vector)
1999-06-01 19:01:05 +00:00
Kurt Zeilenga
2718ec4238
Add "lutil*.h" to project.
1999-06-01 18:58:19 +00:00
Kurt Zeilenga
847c452c9d
Add extended.c to projects
...
remove bogus libldap_r/apitest.ds[pw] files.
1999-06-01 02:07:05 +00:00
Kurt Zeilenga
f83e93af21
Share errcode lookup code. Modify ld_version conditions not to test absolutes.
...
Add asserts and additional param checks.
1999-06-01 02:06:12 +00:00
Kurt Zeilenga
60d9aeed6e
Remove LDAP_LIBUI dependency.
1999-06-01 02:03:21 +00:00
Kurt Zeilenga
c581055b54
Add skeleton ldap_extended_operation routines.
1999-05-31 21:19:07 +00:00
Kurt Zeilenga
f704f1c475
(barely) hide AVL internals
1999-05-31 20:40:42 +00:00
Kurt Zeilenga
322bb86fa4
#ifdef out non-reentrant prototypes.
...
Only testavl uses this interface.
1999-05-31 20:32:21 +00:00
Kurt Zeilenga
a641a9266d
use LDAP_MALLOC instead of malloc. Check for allocation errors.
1999-05-31 20:04:15 +00:00
Kurt Zeilenga
7bd5b261fb
Move most header inclusion below #ifdef HAVE_XXX.
...
Use LDAP_MALLOC instead of ch_malloc
1999-05-31 19:59:29 +00:00
Kurt Zeilenga
37636eabd3
Clean up LDAP_BOOL_GET and fetching via ldap_get_option().
...
Modify apitest to test for non-zero instead of LDAP_OPT_ON.
1999-05-31 17:30:22 +00:00
Julio Sánchez Fernández
2b69b706de
Syntaxes.
...
Accept X- experimental clauses.
1999-05-31 12:04:06 +00:00
Julio Sánchez Fernández
f804c46da6
Cosmetic/spelling fixes.
1999-05-31 11:23:41 +00:00
Kurt Zeilenga
5176f4e356
Free strings returned by ldap_get_option().
1999-05-31 05:34:49 +00:00
Kurt Zeilenga
d8032bcbaa
Use #error if ctime_r nargs are screwy.
1999-05-31 05:34:13 +00:00
Kurt Zeilenga
c72cb0c8fe
Remove dependency upon lber-int.h by using ber_set_option().
1999-05-31 05:27:32 +00:00
Kurt Zeilenga
2e5a52414a
Initial round 2 memory allocation changes. THIS IS A WORK IN PROGRESS.
...
includes single to multiple hooks changes.
ber_mem* reimplementation.
namespace glue (finally naming has not be decided upon nor implemented).
Added ldap_int_strdup to handle "internal" strdup'ing, this version uses hooks.
ldap_pvt_strdup still available for when strdup() is missing, this version
directly uses system allocators.
Updated -lldif to use ber allocators. Items returned by ldif routines
should be ber_memfree()d as needed.
1999-05-30 23:00:52 +00:00
Julio Sánchez Fernández
be051c3fb3
Relax some rules to survive Netscape DS brokennes, more to come.
...
A few parse_whsp were missing.
Detect and survive null input.
1999-05-30 00:01:53 +00:00
Kurt Zeilenga
fbc0bd013e
Minor adjustments to better handle NT vs UNIX.
1999-05-29 18:57:23 +00:00
Kurt Zeilenga
2f969f8552
First cut at ber_set_option(NULL,LBER_OPT_MEMORY_FN, myrealloc) where
...
myrealloc is pointer to a realloc() wrapper.
Must be first library call or else.
1999-05-29 05:16:31 +00:00
Kurt Zeilenga
87a8abe880
old_abandon should be int* not long*.
1999-05-29 03:32:33 +00:00
Kurt Zeilenga
4839e570fb
safe_free_string() should be static
1999-05-29 01:45:55 +00:00
Kurt Zeilenga
cad31e00cc
Add memory.c to -llber
1999-05-29 01:35:34 +00:00
Julio Sánchez Fernández
e6f9faa94a
Fixed parsing of noidlen
1999-05-29 01:32:37 +00:00
Kurt Zeilenga
1bcec8bf6a
Add LBER_ and LDAP_ memory allocators/deallocators for internal
...
library use:
LBER_ macros expand to system routines.
LDAP_ macros expand to new ber_ allocators.
Add ber_ and ldap_ memory allocators/deallocator:
ber_ routines are wrappers of LBER_ macros.
ldap_ routines are wrappers of ber_ routines.
Removed safe_realloc() macro from various files. This issue
(if an issue) should be resolved across whole package.
ldapmodify.c now uses ber_ allocators to resolve ber_bvfree()
vs. WIN32 multiple heaps issue.
These changes should facilate implementation of
ber_set_option( NULL, LBER_OPT_MEMORY_FN, ...)
and
ldap_set_option( NULL, LDAP_OPT_MEMORY_FN, ...).
1999-05-29 01:19:14 +00:00
Kurt Zeilenga
27caa58f51
ber_clear() no longer needed. Removed.
1999-05-28 20:19:28 +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
06c5f96b49
safe_string_free was freeing the string value, so we have to save it.
1999-05-28 18:51:21 +00:00
Julio Sánchez Fernández
8c954245fd
Add schema support
1999-05-28 14:26:25 +00:00
Julio Sánchez Fernández
76da8881d2
Change to be in line with libldap, i.e. add schema
1999-05-28 14:25:14 +00:00
Howard Chu
d44ac9835a
In try_read1msg, clear errno before calling ber_get_next, otherwise leftover
...
values will obscure EOF condition on closed sockets.
1999-05-28 05:19:18 +00:00
Kurt Zeilenga
6e0c7b95ab
Death to LBER_END_SEQORSET.
1999-05-28 03:24:41 +00:00
Kurt Zeilenga
2b9a296eb4
Initial implementation of ldap_int_get_controls()... EXPERIMENTAL.
1999-05-28 02:15:57 +00:00
Kurt Zeilenga
c1501fd3a7
Use difftime() to determine cache age.
1999-05-27 22:48:14 +00:00
Kurt Zeilenga
f90277edc5
strlen returns size_t not int.
1999-05-27 22:33:12 +00:00
Kurt Zeilenga
8c793fa1c9
rename ldap_pvt_init_utils() to ldap_int_utils_init() and provide
...
prototype in ldap-int.h.
1999-05-27 22:25:55 +00:00
Julio Sánchez Fernández
d5509bbbe9
Incorporate #define's per Kurt's suggestion
1999-05-27 18:18:36 +00:00
Kurt Zeilenga
40874c6d2c
Add missing MSVC5 workspace/projects.
1999-05-26 19:49:10 +00:00
Julio Sánchez Fernández
676558aa64
Provide human-readable syntax errors.
1999-05-26 19:21:55 +00:00
Julio Sánchez Fernández
fd488b3846
Fix namespace contamination, some comments added.
1999-05-26 13:52:11 +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
Kurt Zeilenga
e8116a8a74
Use memcmp not strncmp for non-string comparisons.
1999-05-24 22:51:13 +00:00
Kurt Zeilenga
4b832f1d35
Do not set db_cachesize under BerkeleyDB 2.4.
1999-05-24 21:21:09 +00:00
Julio Sánchez Fernández
06239ebd66
Untested support for parsing attribute type definitions
1999-05-24 12:44:48 +00:00
Julio Sánchez Fernández
b2b3581bc1
Initial incomplete and broken version.
1999-05-24 01:38:57 +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
5654a0b231
fix url vs url_in typo.
1999-05-21 22:20:28 +00:00
Kurt Zeilenga
ca2145cccf
Initial checkin of ldap_search_ext() and friends.
1999-05-21 19:20:25 +00:00
Kurt Zeilenga
3d9c49f982
Fix typo in ldap_delete_ext() which caused msgid to be incremented twice.
1999-05-21 16:11:52 +00:00
Kurt Zeilenga
9c2ebd1f42
Assert pointer args
1999-05-21 03:56:17 +00:00
Kurt Zeilenga
6a56886cf5
etest/dtest now work correctly. Commented out bogus assert
...
in io.c.
1999-05-20 22:28:45 +00:00
Kurt Zeilenga
97e5524af9
found my lber bug... ber_buf should have been freed in ber_peek_tag. Ugh!
1999-05-20 21:53:56 +00:00
Kurt Zeilenga
68fb44b450
Fix initialization bug in ber_init_w_nullc()
...
Added assert(), additional comments, and a few minor adjustments.
1999-05-20 21:21:57 +00:00
Kurt Zeilenga
042898d2f0
Version.c deprecated in favor of mkversion.
...
Minor cleanup to lber files.
1999-05-20 19:38:03 +00:00