Ralf Haferkamp
a2dc37d053
Bring back destructor, to keep ABI compatibile (at least for now)
2010-02-19 14:02:32 +00:00
Ralf Haferkamp
183cdd4398
Example for TlsOptions usage
2010-02-18 16:46:23 +00:00
Ralf Haferkamp
67486ca0aa
exclude some internal structs from documentation
2010-02-18 16:24:41 +00:00
Ralf Haferkamp
26421a5254
TlsOptions documentation
2010-02-18 16:23:40 +00:00
Ralf Haferkamp
35f19eac28
Hide internal use only constructor
2010-02-18 16:22:49 +00:00
Pierangelo Masarati
d85e24dfa3
fix return
2010-02-17 20:08:07 +00:00
Ralf Haferkamp
b0075c970e
method to renew the tlsctx
2010-02-16 17:48:14 +00:00
Ralf Haferkamp
d0f4f42350
Make TlsOptions accessible per connection
2010-02-16 17:47:05 +00:00
Ralf Haferkamp
277b3318d4
use const where appropriate
2010-02-16 17:44:22 +00:00
Ralf Haferkamp
e3a23a0891
removed buggy destructor, use default instead
2010-02-16 15:20:05 +00:00
Ralf Haferkamp
98252925e3
fixed start_tls() error handling
2010-02-16 15:17:53 +00:00
Ralf Haferkamp
4ea6beae06
silenced compiler warning
2010-02-16 11:55:33 +00:00
Ralf Haferkamp
be72826917
uninitialized variable
2010-02-16 11:55:05 +00:00
Ralf Haferkamp
634ab644b6
automake changes for TlsOptions
2010-02-15 17:24:45 +00:00
Ralf Haferkamp
ad93b706a9
New class "TlsOptions" to handle TLS/SSL related settings
2010-02-15 17:17:42 +00:00
Ralf Haferkamp
78c09eadfd
tab<->spaces cleanup
2010-02-15 17:07:46 +00:00
Ralf Haferkamp
5ceb2cd4e0
ITS#6467, use memcpy instead for strcpy when copying across array
...
boundaries. To account for stricter checks when using -D_FORTIFY_SOURCE=2
with GCC 4.5
2010-02-15 15:25:47 +00:00
Pierangelo Masarati
3cd65c0a5d
reduce code duplication
2010-02-12 08:55:34 +00:00
Ralf Haferkamp
bca52e1b18
ITS#6469, don't touch op_attrs when updatedn is modifying contextCSN
2010-02-05 11:49:49 +00:00
Howard Chu
376cdb1e92
Add minimal doc for pbind overlay. Note both chain and pbind are built in
...
to back-ldap.
2010-02-04 04:11:17 +00:00
Howard Chu
32feda4478
Add pbind proxybind overlay. Just intercepts Bind requests on a regular DB
...
and proxies them to a remote server.
2010-02-04 01:59:58 +00:00
Howard Chu
66a58ae93a
ConnTTL, NetworkTimeout, and ProtocolVersion were missing from the
...
config OC, thus inaccessible from cn=config
2010-02-04 01:02:51 +00:00
Rein Tollevik
1af4e43236
ITS#6468: Implement bi_access_allowed.
2010-02-02 15:51:32 +00:00
Ralf Haferkamp
1a9ef3b4ea
ITS#6465, don't unparse empty uri string
2010-02-02 14:43:21 +00:00
Howard Chu
0e16b2ea55
ITS#6466 certificateListValidate: Empty Sequence-of is legal
2010-01-30 23:32:50 +00:00
Kurt Zeilenga
f967ec3b4e
Set res parameter to NULL upon ldap_search_ext_s entry. Likewise for friends.
...
Note in manual that res parameter should be freed regardless of return value
of ldap_search_ext_s (or friends).
2010-01-29 23:11:24 +00:00
Pierangelo Masarati
797387c4ef
skip the serial, whatever its length (ITS#6460)
2010-01-24 19:16:57 +00:00
Ralf Haferkamp
837320eaac
plugged one time memory leak (found with valgrind)
2010-01-22 18:01:25 +00:00
Ralf Haferkamp
9e3517595d
Plugged memory leak. Syncentry wasn't free'd when sending
...
LDAP_SYNC_NEW_COOKIE intermediate results. (ITS#6459)
2010-01-21 13:33:21 +00:00
Pierangelo Masarati
0cf528630f
implement support for selective iteration in slaptools (ITS#6442)
2010-01-18 15:00:40 +00:00
Pierangelo Masarati
a4b109d034
sync with code
2010-01-18 14:52:41 +00:00
Hallvard Furuseth
d58f4ff849
Gentler message when falling back to ch_malloc
2010-01-15 18:53:13 +00:00
Howard Chu
b8a1da95a2
dn2id_lock is no longer needed
2010-01-11 22:14:15 +00:00
Rein Tollevik
fdd2c3a5a7
ITS#6441 cyrus-sasl 2.1.24 auxprop_lookup plugin returns status.
2010-01-06 13:55:35 +00:00
Hallvard Furuseth
67857a6b94
ITS#6437 FORCED COMMIT: 1.62's Ensure Align >= sizeof(ber_len_t) anticipated
...
1.64 sl_malloc()'s size=(size +...+ Align-1 + !size)... to make room for tail.
2010-01-06 09:14:08 +00:00
Hallvard Furuseth
644506db6b
ITS#6437: Fix pool version misalignment: It aligned heads, not returned blocks
2010-01-05 23:31:14 +00:00
Hallvard Furuseth
705bd5bf40
ITS#6437, move structs slab_object and slab_heap from slap.h to sl_malloc.c
2010-01-05 23:14:14 +00:00
Hallvard Furuseth
1af33a46c9
ITS#6437, save space: Do not allocate the tail, except if size==0.
...
Store a tail only in freed blocks. (Alignment ensures there will
be room.) Put the freed mark in next block's head.
2010-01-05 22:11:24 +00:00
Hallvard Furuseth
d515f24255
ITS#6437 cleanup (noop patch): Join SLAP_NO_SL_MALLOC code with identical
...
ctx==NULL code. Add enum No_sl_malloc to avoid #ifdef SLAP_NO_SL_MALLOC.
2010-01-05 19:40:28 +00:00
Hallvard Furuseth
5d883c044a
ITS#6437, follow up previous fixes:
...
Ensure Align >= sizeof(ber_len_t), to clarify the code's requirements.
Rearrange a slap_sl_malloc() branch to factor out ch_malloc fallbacks.
Fix range check (ptr+size >= endptr) -> (size >= endptr-ptr). Fix debug msg.
2010-01-05 19:25:28 +00:00
Howard Chu
0c195fc013
ITS#6438 check for redundant syncops_free() ?
2010-01-05 03:50:10 +00:00
Hallvard Furuseth
40017c3874
Add comments
2010-01-02 23:42:31 +00:00
Hallvard Furuseth
4e66da4ec1
ITS#6437, slap_sl_calloc():
...
Check count*size overflow. Omit slap_sl_malloc failure check, it cannot fail.
2010-01-02 22:53:22 +00:00
Hallvard Furuseth
423c13a6d6
ITS#6437, failure/fallback/debug handling:
...
slap_sl_malloc could return failure. Exit instead, like the rest of sl_malloc.
Since we increase size, reduce it before Debug() and/or fallback to ch_malloc.
Debug() before exit() on failure. Tweak debug formats and a comment.
2010-01-02 22:41:41 +00:00
Hallvard Furuseth
46b99131cb
ITS#6437 cleanup (noop change):
...
Move thread/nothread code to macros SET_MEMCTX()/GET_MEMCTX().
Rename some thread/memory contexts 'ctx' to thrctx/memctx to avoid confusion.
2010-01-02 22:03:48 +00:00
Hallvard Furuseth
cc58227437
ITS#6437, fixes for stack implementation of slap_sl_realloc():
...
Preserve 2*int alignment on hosts where sizeof(int) == sizeof(ber_len_t).
If realloc of last block falls back to ch_malloc, free last block properly.
Fix range check (ptr + size < endptr) --> (size < endptr - ptr).
2010-01-02 21:39:46 +00:00
Hallvard Furuseth
5b164ba74c
ITS#6437: Fix alignment after slap_sl_realloc().
...
Also use -Align instead of ~pad: Valid also for non-twos complement.
2010-01-02 21:05:11 +00:00
Hallvard Furuseth
4c36193a5c
ITS#6437 cleanup (noop change): Simplify slap_sl_free() code reclaiming space
2010-01-02 18:42:33 +00:00
Hallvard Furuseth
d8d00ec45c
ITS#6437 cleanup (noop change): Compute pad,order_start at compile time
2010-01-02 18:27:51 +00:00
Hallvard Furuseth
062021e731
ITS#6437, slap_sl_mem_create():
...
Bugfix: Switching implementation stack<->pool on an old context could
crash or leak, it ran the wrong implementation's cleanup code.
Cleanup: Factor out identical stack/pool code. Call
slap_sl_mem_destroy(NULL,) instead of copying its pool code.
API change: slap_sl_mem_destroy(key=NULL,) gets a new meaning. Does
not affect current OpenLDAP code, it never passed NULL.
2010-01-02 18:05:56 +00:00