Hallvard Furuseth
c9a63dc01a
Fix a comment
2010-11-28 18:20:54 +00:00
Hallvard Furuseth
f23fb051d5
Add/fix comments. No other change.
2010-11-28 18:04:22 +00:00
Hallvard Furuseth
5f2af361ba
ITS#6532 Support extensible match=...OrderingMatch
...
Handles: caseExactOrderingMatch, generalizedTimeOrderingMatch,
caseIgnoreOrderingMatch, integerOrderingMatch,
octetStringOrderingMatch, numericStringOrderingMatch.
Based on patch from Daniel Pluta.
2010-11-24 13:10:29 +00:00
Hallvard Furuseth
def5d26f13
ITS#6722: Fix some matching rules to ensure strict ordering
...
booleanMatch, octetStringMatch, octetStringOrderingMatch, uniqueMemberMatch
2010-11-23 11:17:40 +00:00
Hallvard Furuseth
4484781b0d
ITS#6721: Fix uninitialized tv_usec from ITS#6282
2010-11-23 10:10:45 +00:00
Hallvard Furuseth
0ab060091e
Silence gcc -Wsign-compare (no real change)
2010-11-22 13:45:11 +00:00
Hallvard Furuseth
e1469fff44
For ITS#5421: Also LBER_FREE() -> ber_memfree()
2010-11-22 13:14:29 +00:00
Hallvard Furuseth
b39e9d151d
For ITS#5421: Remove ldap-int.h dependencies.
...
LDAP_FREE() -> ber_memfree(), msg->lm_ber -> ldap_get_message_ber(msg).
2010-11-22 12:51:44 +00:00
Hallvard Furuseth
92986c3434
ITS#6715 cleanup: Handle attr_valfind(0 values) when SLAP_ATTR_SORTED_VALS
2010-11-22 12:16:08 +00:00
Pierangelo Masarati
b68703031b
initialize rc in syncrepl_add_glue_ancestors (ITS#6719)
2010-11-22 12:09:45 +00:00
Hallvard Furuseth
2a9cbcc5b5
No-op change for ITS#6715: help compiler a bit in attr_valfind()
2010-11-22 12:09:43 +00:00
Rein Tollevik
d3cddce244
ITS#6718: Send NEW_COOKIE messages to all consumers.
2010-11-21 19:00:38 +00:00
Rein Tollevik
990d8f562f
ITS#6710: Force clients to refresh if context is dirty.
2010-11-21 17:56:09 +00:00
Rein Tollevik
877fc0ab37
ITS#6709: Wait for active mods to finish before initiating new consumers.
2010-11-21 15:31:38 +00:00
Hallvard Furuseth
efcb0ad5a3
ITS#6715: Fix slap_sort_vals(attr with 1 value)
...
Also rearrange slightly to silence gcc -Wuninitialized, get a single
exit point, and skip the unnecessary sorting of the single value.
2010-11-19 12:21:34 +00:00
Pierangelo Masarati
9c1eae14a7
fix previous commit (ITS#6712)
2010-11-18 11:54:23 +00:00
Pierangelo Masarati
67f21784fd
do not add hasSubordinates if already present (blind-fixes ITS#6712 for back-monitor)
2010-11-18 11:53:59 +00:00
Pierangelo Masarati
3dcc62503a
do not add hasSubordinates if already present (blind-fixes ITS#6712 for back-sql)
2010-11-18 11:51:15 +00:00
Pierangelo Masarati
41858b7047
do not add hasSubordinates if already present (blind-fixes ITS#6712 for back-ndb)
2010-11-18 11:46:18 +00:00
Pierangelo Masarati
40831ba54f
do not add hasSubordinates if already present (fixes ITS#6712 for back-bdb/hdb, other backends may need work)
2010-11-18 11:33:47 +00:00
Ralf Haferkamp
66fa1f6198
ITS#6693 value dependent ACL didn't work when they were the first ACL
2010-11-15 16:27:56 +00:00
Rein Tollevik
ba86259aa0
ITS#6708: Mutex protect fixing the filter.
2010-11-15 15:42:06 +00:00
Rein Tollevik
e1dfe6e911
ITS#6707: Free the presentlist (if any) before connecting.
2010-11-15 14:15:46 +00:00
Pierangelo Masarati
001b30ebc6
fix slapo-chain startup issue when using back-config, related to ITS#6540
2010-11-14 23:53:54 +00:00
Howard Chu
1e18b823a0
ITS#6699 search references must turn onelevel scope to base
2010-11-12 04:35:49 +00:00
Ralf Haferkamp
e1c2a67517
Unregister VLV control as well when last overlay instance
...
is removed (additional fix for ITS#6647)
2010-11-04 12:13:26 +00:00
Ralf Haferkamp
ccd5b3d52d
Added -VVV to usage output
2010-11-01 15:20:39 +00:00
Ralf Haferkamp
c4d6e40ee1
List static overlays/backends when started with -VVV
2010-11-01 14:51:23 +00:00
Howard Chu
de6dbc981e
ITS#6685 fix result code tag
2010-10-26 00:59:10 +00:00
Ralf Haferkamp
76c611ad42
Removed unused variables
2010-10-19 10:48:21 +00:00
Ralf Haferkamp
02753d1555
ITS#6677 moved one more #endif, addtional fix for previous commit
2010-10-19 10:47:41 +00:00
Howard Chu
2cd0b96158
ITS#6677 move #endif
2010-10-17 01:36:47 +00:00
Pierangelo Masarati
2ec0347152
set rebind proc if needed and bind succeeds (ITS#6665)
2010-10-08 22:42:55 +00:00
Pierangelo Masarati
85369497aa
do not expose control until sssvlv overlay is actually instantiated at least once (ITS#6647)
2010-10-06 08:24:45 +00:00
Pierangelo Masarati
1c5d78ec95
line up with back-bdb/hdb (ITS#6661)
2010-09-30 14:27:26 +00:00
Pierangelo Masarati
55f88b5b49
do not assume sr_err == LDAP_SUCCESS; cleanup
2010-09-30 14:26:56 +00:00
Pierangelo Masarati
3ae8934f84
fix previous commit (ITS#6661)
2010-09-30 12:51:15 +00:00
Pierangelo Masarati
e04ff8fbf1
(blind) fix for ITS#6661
2010-09-29 16:34:36 +00:00
Pierangelo Masarati
aecd2f33d6
o_pagedresults_state not freed from slab (only noticeable when built with SLAP_NO_SL_MALLOC; could be related to ITS#6660, although unlikely)
2010-09-28 19:57:02 +00:00
Pierangelo Masarati
dc78654c0b
make sure so is correctly initialized (spotted by valgrind, possibly related to ITS#6649)
2010-09-18 18:27:28 +00:00
Pierangelo Masarati
50a21d512f
cleanup related to ITS#6565 (also plugs a leak)
2010-09-10 22:19:41 +00:00
Pierangelo Masarati
dfe1f2e572
hack to try as hard as possible to recover a broken database (ITS#6482)
2010-09-09 21:49:04 +00:00
Pierangelo Masarati
1760501cea
add per-target tls options; start tls if required by idassert (ITS#6642)
2010-09-09 01:30:19 +00:00
Pierangelo Masarati
aa63f21e4f
cleanup previous commit
2010-09-09 00:57:04 +00:00
Pierangelo Masarati
fa7d65bbbe
minor cleanup
2010-09-09 00:56:22 +00:00
Pierangelo Masarati
65b042b4fb
if required by the bindconf configuration, force TLS (partially addresses ITS#6642)
2010-09-09 00:12:01 +00:00
Pierangelo Masarati
00efc1c507
check return code (ITS#6643)
2010-09-08 17:31:50 +00:00
Pierangelo Masarati
79d4e4cf6a
add support for ADD_IF_NOT_PRESENT and SOFTDEL internal modification types (ITS#6561)
2010-09-07 13:21:20 +00:00
Pierangelo Masarati
856f1b401a
allow '-o value-check={yes|no}' for optional value checking, disabled in quick mode (ITS#6592)
2010-09-07 05:47:55 +00:00
Pierangelo Masarati
34f4f38acc
cleanup option parsing
2010-09-07 05:45:36 +00:00
Pierangelo Masarati
c405143a0a
ignore undefined attrs (ITS#6600, based on patch by Jonathan CLARKE)
2010-09-07 02:03:23 +00:00
Pierangelo Masarati
c78014bc5d
make sure callback is freed (ITS#6640)
2010-09-07 02:01:35 +00:00
Pierangelo Masarati
938778ffd9
free controls, if needed (ITS#6629)
2010-08-29 17:23:08 +00:00
Pierangelo Masarati
8be2af29bb
plug leak when ARG_OFFSET and ARG_BERVAL (ITS#6634)
2010-08-29 16:28:16 +00:00
Pierangelo Masarati
9146659c6c
plug leak when presence filter with undef attr (ITS#6635)
2010-08-29 16:27:08 +00:00
Pierangelo Masarati
eb11ba008c
let the error propagate to overlays (ITS#6633)
2010-08-29 15:35:47 +00:00
Pierangelo Masarati
df2573b4a9
hacks ITS#6632
2010-08-29 08:08:42 +00:00
Pierangelo Masarati
15d737badb
fix potential leak introduced by fix to ITS#6574
2010-08-29 00:35:49 +00:00
Kurt Zeilenga
81912bd377
Remove extraneous ber_peek_tag() call
2010-08-27 21:44:00 +00:00
Pierangelo Masarati
3e2ca2f8b2
support back-config (ITS#6624, Ondrej Kuznik)
2010-08-17 18:56:29 +00:00
Pierangelo Masarati
672e87776a
fix previous commit (ITS#6611)
2010-08-17 01:05:40 +00:00
Pierangelo Masarati
ab4f21d5a0
fix buffer overflow in ACL unparse (ITS#6611)
2010-08-17 00:54:11 +00:00
Pierangelo Masarati
abc5b002a7
blind fix for ITS#6621
2010-08-13 00:55:57 +00:00
Pierangelo Masarati
f6a693a4ed
(blind) support for long long keys (ITS#6617; needs ITS#6622 patch)
2010-08-12 23:33:54 +00:00
Pierangelo Masarati
4a8d873529
fix function name in logs
2010-08-12 22:44:10 +00:00
Pierangelo Masarati
bca5e0ed1e
(blind) addition of 'autocommit' configuration statement (ITS#6612)
2010-08-10 19:55:28 +00:00
Pierangelo Masarati
4fbbedcf29
quick fix for ITS#6616; root cause not clear yet
2010-08-07 22:34:36 +00:00
Pierangelo Masarati
7c19cf6547
minor cleanup
2010-08-07 22:32:59 +00:00
Pierangelo Masarati
41fe685d35
improve ID logging when arbitrary key is set (almost blind fix; compiles in both cases)
2010-08-07 22:30:53 +00:00
Howard Chu
5cf46a8820
Fix up winsock init
2010-08-06 03:32:42 +00:00
Howard Chu
8cddd34852
Add support for multiple listener threads. Lightly tested on Linux,
...
Winsock needs a couple more tweaks
2010-08-06 03:24:24 +00:00
Howard Chu
a8ffb63331
Better fix - avoid allocating callback for non-logged mod ops
2010-08-04 08:50:29 +00:00
Howard Chu
21d299e370
More for ITS#6608 - don't replicate ppolicy state changes on replicas
2010-08-04 08:14:59 +00:00
Howard Chu
9434a7d676
ITS#6608 don't update mod opattrs on single-master slaves
2010-07-28 02:43:21 +00:00
Howard Chu
7e7f24f13f
ITS#6606 send error if consumer is newer than provider
2010-07-28 02:21:27 +00:00
Pierangelo Masarati
22e5e49f26
use request/referral DN, scope, filter according to RFC4511 (related to ITS#6565)
2010-07-22 19:17:20 +00:00
Howard Chu
c7305c4133
Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax
2010-07-12 03:20:57 +00:00
Howard Chu
ce11612e9b
Add SLAP_SYNTAX_DN syntax flag
2010-07-12 03:17:02 +00:00
Pierangelo Masarati
08763f42ed
cleanup connection release
2010-07-03 01:09:17 +00:00
Ralf Haferkamp
beb536298d
use be_ctrls[cid] for counting the number of overlay instances that have
...
registered the control for a specific BackendDB to make sure that
the control is unregistered only after the last instance calls
overlay_unregister_control().
2010-07-02 11:31:34 +00:00
Ralf Haferkamp
81dcd3ca58
Fixed last commit. gcc was complaining about defined behavior.
2010-07-02 07:43:29 +00:00
Howard Chu
3b2cef17eb
ITS#6577 real fix: keep dn2id cursor open until we re-acquire lock
...
on entryInfo, otherwise BDB locks in reader txn are released too soon
2010-07-01 16:38:32 +00:00
Ralf Haferkamp
c4f0c2cc2b
unregister controls when removing syncprov, ppolicy, valsort, chain or
...
sssvlv overlay
2010-07-01 11:51:43 +00:00
Ralf Haferkamp
7f70a7aad6
New call to unregister controls registered form overlays
2010-07-01 11:28:47 +00:00
Ralf Haferkamp
b435efa694
new call unregister_supported_control(), will be
...
needed for cn=config delete support
2010-06-30 12:38:01 +00:00
Pierangelo Masarati
14fcbf4cfc
implement unload_extop for symmetry (needs test)
2010-06-30 00:22:01 +00:00
Howard Chu
f12290c64f
move slap_graduate_commit_csn() to after entry lock is released
2010-06-30 00:00:59 +00:00
Ralf Haferkamp
21bac1cbed
Disallow removing global and cn=config overlays for now.
...
Those require some special handling.
2010-06-29 16:23:31 +00:00
Pierangelo Masarati
a6ab844c17
cleanup previous commit (ITS#6581)
2010-06-26 04:44:06 +00:00
Pierangelo Masarati
9785c24661
return error (ITS#6581)
2010-06-24 19:26:22 +00:00
Quanah Gibson-Mount
8d30f419d6
dyngroup schema in LDIF format
2010-06-24 01:04:40 +00:00
Pierangelo Masarati
6e2422d97d
cleanup previous commit
2010-06-23 17:44:56 +00:00
Ralf Haferkamp
7b2dc4c059
Send error to active psearches upon overlay removal
2010-06-23 16:34:25 +00:00
Pierangelo Masarati
cec460d3ee
make sure non-anonymous bind uses DN and creds (ITS#6574)
2010-06-23 00:13:50 +00:00
Pierangelo Masarati
e338733c97
don't risk leaving around client library error codes; try to return additional information
2010-06-22 23:26:06 +00:00
Pierangelo Masarati
1242443553
don't risk leaving around client library error codes
2010-06-22 23:10:48 +00:00
Pierangelo Masarati
127c533853
use realloc
2010-06-21 20:24:20 +00:00
Howard Chu
e43f0a2cf0
Fix rewriterule, free rewrite info in syncinfo_free
2010-06-21 18:01:29 +00:00
Howard Chu
995c4c5bb3
Fix prev commit, return NULL if rewrite returns original DN
2010-06-21 17:26:50 +00:00
Howard Chu
bdf52f4fc4
ITS#6577 potential fix, found using valgrind/drd. please test.
2010-06-20 21:28:04 +00:00
Howard Chu
6ee6739b48
Add suffixmassage processing
2010-06-19 03:15:41 +00:00
Howard Chu
bc82f314c3
Add config support for suffixmassage. Note - no actual massage code
...
present in this commit.
2010-06-19 01:29:39 +00:00
Howard Chu
9a0e94b4dc
More for ITS#6572, fix copy/paste error
2010-06-17 22:05:33 +00:00
Howard Chu
8a197d1a6c
Don't set bi_db_config since we have no config options
2010-06-13 22:02:15 +00:00
Howard Chu
28072167c7
ITS#6572 zero out freed DN vals. from mbackes@symas.com
2010-06-13 18:47:21 +00:00
Howard Chu
004540b360
ITS#6570 part #1 (again), reject RDNs with binary BER values
2010-06-07 00:02:32 +00:00
Howard Chu
007cd13010
ITS#6570 part #2 , reject RDNs with empty values
2010-06-06 23:22:07 +00:00
Howard Chu
ea138247b3
ITS#6570 part #1
2010-06-06 20:32:53 +00:00
Howard Chu
c8c3847103
ITS#6566 use Debug, not fprintf(stderr)
2010-06-02 00:18:32 +00:00
Pierangelo Masarati
d43cabbcc1
make sure bind credentials are consistent
2010-05-24 22:22:53 +00:00
Howard Chu
a07d3630cb
Quit send loops if slapd is shutting down
2010-05-21 17:47:17 +00:00
Ralf Haferkamp
a06696a1ef
During the refresh phase the sync filter needs to be adjusted (skipping
...
the "(entrycsn>=cookie)" part that was inserted) when checking whether a
change needs to be replicated, otherwise we lose DELETES that happen during
the refresh phase (ITS#6555).
2010-05-20 17:08:28 +00:00
Howard Chu
c45fca65fc
Init uninit'd vlv flag
2010-05-18 07:35:12 +00:00
Pierangelo Masarati
ba507dc27b
try harder to compute hasSubordinates (ITS#6549)
2010-05-18 02:18:48 +00:00
Ralf Haferkamp
5743591419
Reset BackendInfo to original value after checkpoint. Plugs a memory leak
...
when deleting the syncprov overlay from a database (when compiled with
-DSLAP_CONFIG_DELETE)
2010-04-29 15:47:27 +00:00
Howard Chu
6273df07da
ITS#6533 put rid first, in front of url
2010-04-26 12:07:08 +00:00
Pierangelo Masarati
68257f6c5c
log rid when syncrepl stanza successfully added (ITS#6533)
2010-04-25 17:49:37 +00:00
Pierangelo Masarati
3a28608f0d
allow successful binds to return control responses (ITS#6530)
2010-04-22 18:18:15 +00:00
Pierangelo Masarati
2189d8d4cb
add slapmodify (ITS#6165; may need cleanup)
2010-04-20 06:00:16 +00:00
Quanah Gibson-Mount
fa428ed259
Agreed upon log messages for sl_malloc/zn_malloc when falling back
2010-04-19 22:55:51 +00:00
Pierangelo Masarati
993d377b68
remove redundant logs (underlying backends already log enough)
2010-04-18 18:42:44 +00:00
Pierangelo Masarati
c939422ae5
alreadyExists is a legitimate result code (further improve ITS#6472 commit; also fix ITS#6528)
2010-04-18 17:11:29 +00:00
Pierangelo Masarati
4480b22a91
don't use dangling stack pointers (more on ITS#6472 fix)
2010-04-18 06:53:22 +00:00
Pierangelo Masarati
8025becf91
fix syncrepl when attr has no matching rule (ITS#6458)
2010-04-18 05:37:36 +00:00
Pierangelo Masarati
a9990e8914
fix out of order add/rename, when rename to newly added new superior occurs while consumer is offline (ITS#6472)
2010-04-17 21:59:35 +00:00
Pierangelo Masarati
71a11b44e8
fix memory handling in rewrite parsing (ITS#6526)
2010-04-17 16:29:34 +00:00
Pierangelo Masarati
467a1da79f
add support for don't use copy in SASL auxprops lookup/store (ITS#6475; TODO: document new directives)
2010-04-15 18:13:53 +00:00
Pierangelo Masarati
9d2e03f052
allow to specify a per-database list of attributes that need to be always collected, even if not explicitly requested by clients (addresses ITS#6513)
2010-04-15 05:26:21 +00:00
Pierangelo Masarati
a3a603eca6
malloc as much as possible on slab
2010-04-15 05:11:23 +00:00
Pierangelo Masarati
bbe7272c7f
allow strict adherence to RFC4370 wrt/ control criticality (ITS#6523)
2010-04-14 21:37:03 +00:00
Pierangelo Masarati
ed92b02856
properly initialize acl_attrval_style (ITS#6520)
2010-04-14 17:01:39 +00:00
Howard Chu
68ce33cd77
ITS#6519 don't replicate purge deletes
2010-04-13 23:28:35 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Pierangelo Masarati
6632ea601f
use slab memory as much as possible
2010-04-13 05:03:34 +00:00
Pierangelo Masarati
9702081201
handle ordered values as appropriate (ITS#6516)
2010-04-12 18:01:37 +00:00
Pierangelo Masarati
5564ee0173
don't free before use
2010-04-12 16:24:01 +00:00
Pierangelo Masarati
f57a216f1c
use slab allocation
2010-04-12 07:44:56 +00:00
Pierangelo Masarati
32048a5128
fix previous commit
2010-04-12 02:28:40 +00:00
Pierangelo Masarati
2355fb516a
backout unintended commit commit
2010-04-12 00:08:11 +00:00
Pierangelo Masarati
0dc3a13c01
fix previous commit
2010-04-12 00:06:45 +00:00
Pierangelo Masarati
f75825881a
honor X-ORDERED in olcDbIdAssertAuthzFrom; add olcDbIdAssertPassthru (ITS#6456); note: breaks binary compatibility with module back-meta.la
2010-04-09 22:47:55 +00:00
Pierangelo Masarati
81469d0ff1
more on ITS#6507
2010-04-08 19:51:18 +00:00
Pierangelo Masarati
a6298f97fc
keep attrs count consistent (ITS#6508)
2010-04-08 17:24:44 +00:00
Pierangelo Masarati
a53019e688
don't set dummy cookie when dealing with last database (ITS#6507)
2010-04-08 17:16:38 +00:00
Pierangelo Masarati
cd5dda252a
don't mix code and declarations
2010-04-08 00:27:18 +00:00
Pierangelo Masarati
de84e6a09d
do not assume that someone parsed the paged results response; in case, re-parse (ITS#6507)
2010-04-07 00:53:36 +00:00
Pierangelo Masarati
5da876f5fc
make sure cookies are set/reset as appropriate when a page ends at database boundaries (ITS#6507)
2010-04-06 22:04:58 +00:00
Pierangelo Masarati
bd3414e724
detect misplaced entries in glued databases (ITS#6506)
2010-04-06 20:33:05 +00:00
Pierangelo Masarati
8e96d76a95
rework temporary malloc of glued controls (fixes ITS#6504); fix glued paged results
2010-04-02 19:15:42 +00:00
Howard Chu
c99d8465b7
ITS#6501 zero lockobjs
2010-03-31 06:22:06 +00:00
Pierangelo Masarati
063c844b2a
increment counter (ITS#6497)
2010-03-23 20:33:06 +00:00
Pierangelo Masarati
b8472e3756
handle valid non-entry internal search responses (ITS#6481)
2010-03-22 21:50:32 +00:00
Pierangelo Masarati
7ca6247395
check for NULL backend (ITS#6490)
2010-03-22 21:48:25 +00:00
Howard Chu
7cec659d74
Fix prev commit
2010-03-13 21:41:51 +00:00
Howard Chu
968663d6e4
Fix for CB_TAIL with cached results
2010-03-10 22:25:42 +00:00
Howard Chu
6dc52cc91d
ITS#5195 - use connection's ssf for auxprop lookup
2010-03-04 00:16:49 +00:00
Howard Chu
e85ca5d49a
ITS#6484 don't bypass other overlays' entry_release handler
2010-03-03 23:36:29 +00:00
Howard Chu
47f1c8c887
ITS#6473 fail delta-sync when unknown attrs are received
2010-03-02 21:45:25 +00:00
Howard Chu
f992b66f05
ITS#6484 - cache DB needs to release its own entries
2010-03-02 21:29:32 +00:00
Pierangelo Masarati
0394c805ab
ignore non-critical control with unrecognized flags (ITS#6480)
2010-02-22 21:53:38 +00:00
Pierangelo Masarati
d85e24dfa3
fix return
2010-02-17 20:08:07 +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
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
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
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
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
Howard Chu
7946c100a4
ITS#6322 cleanup close_listeners()
2009-12-30 20:33:27 +00:00
Pierangelo Masarati
ade09a57da
allow direct insert/delete of olcRwmMap (ITS#6436)
2009-12-21 18:58:21 +00:00
Pierangelo Masarati
0329d982a2
better fix to ITS#6434 (olcRwmMap needs work to allow atomic mods)
2009-12-21 17:32:05 +00:00
Rein Tollevik
874d7001cc
ITS#6435: Added optional SLAP_SCHEMA_EXPOSE define.
2009-12-21 17:28:45 +00:00
Pierangelo Masarati
8ddb160ae8
fix in-database configuration of olcRwmMap (no ITS# yet)
2009-12-20 18:31:08 +00:00
Pierangelo Masarati
2047a0d784
plug one-time leaks
2009-12-18 19:07:16 +00:00
Hallvard Furuseth
703571f736
ITS#6403: do not require *ent == NULL on entry to null_back_entry_get()
2009-12-16 09:12:48 +00:00
Ralf Haferkamp
8542dfd6d7
declaration after code (introduced by ITS#6428 fix)
2009-12-11 18:09:47 +00:00
Hallvard Furuseth
198634e945
Fix typo in last commit (ITS#5340: REP_ENTRY_MUSTFLUSH)
2009-12-10 19:54:57 +00:00
Hallvard Furuseth
904ba0d317
Fix rev 1.403 (ITS#6428): C90 does not accept mixed declarations and code
2009-12-10 19:53:10 +00:00