Pierangelo Masarati
ee34f3fb64
add to 'val[.<style>=<value>' ACLs special match styles for DN-valued attributes; add negated objectClass to attribute name lists for ACLs and partial replication
2003-12-16 00:49:10 +00:00
Jong Hyuk Choi
fa2aa5bb25
fix for concurrent persistent searches
2003-12-11 00:04:52 +00:00
Kurt Zeilenga
38ccdaf7a3
unifdef -DLDAP_CONTROL_PAGEDRESULTS (as it is always defined)
2003-12-08 18:16:07 +00:00
Pierangelo Masarati
a4c5f54601
detect problems in saslauthz
2003-12-01 07:59:30 +00:00
Kurt Zeilenga
9d811eb1fa
Notices
2003-11-28 21:08:20 +00:00
Jong Hyuk Choi
1fdda703e6
Support multiple sync replication at the consumer :
...
1) simultaneous operation of multiple active sync replication threads
2) cookie management for individual sync replication thread
(include rid=%3d to the slapd cookie command line option (-c))
2003-11-26 19:49:47 +00:00
Jong Hyuk Choi
f97dc983ac
Collective entryUUID transmission of PRESENT messages in a single PDU
...
(refer to draft-zeilenga-ldup-sync-04.txt)
2003-11-20 02:14:47 +00:00
Jong Hyuk Choi
f3586499d0
update ldapsync/syncrepl code according to the new version of
...
the protocol (draft-zeilenga-ldup-sync-04)
2003-11-11 20:25:19 +00:00
Jong Hyuk Choi
279760a467
1. Session history support
...
- memory based session history to minimize sync traffic
- when client is covered by a session history, then
[add+delete] mode is used
- when client cookie is not covered by the history because
the cookie is too outdated and/or the history is truncated,
[add+present] mode is used
2. Sync cookie syntax : comma separated name=value pairs
- csn=yyyymmddhh:mm:ssZ#0xSSSS#r#ssssr,sid=nnn
2003-11-10 02:44:25 +00:00
Kurt Zeilenga
25f2985024
Don't return garbage when plist is empty.
2003-10-23 01:15:36 +00:00
Howard Chu
95a5866965
Shortcut syncrepl candidate selection if CSN is up to date
2003-10-22 07:53:28 +00:00
Howard Chu
7710791382
ITS#2684 keep psearch operations on the connection's active list so they
...
can be located by connection_abandon() during an unexpected close. Remove
the operations in bdb_abandon() etc.
2003-10-19 11:20:34 +00:00
Kurt Zeilenga
71f484bad8
Finish off berbuf fix
2003-10-12 06:07:02 +00:00
Jong Hyuk Choi
eee84463c0
do not cache internal search results for present entry priming
2003-09-25 07:49:50 +00:00
Kurt Zeilenga
99f968b597
Initial support for pre/post read controls.
...
TODO:
Fix transactional consistency
Add client response control handling
2003-09-16 18:56:04 +00:00
Jong Hyuk Choi
d5be4896a3
add bdb_get_commit_csn() for use in bdb_search
2003-09-10 17:03:01 +00:00
Jong Hyuk Choi
7357caac90
memory mgmt cleanup
2003-09-03 23:47:37 +00:00
Jong Hyuk Choi
853c03e38d
more patches for ITS#2692 (Thanks Luke!)
2003-08-29 17:02:53 +00:00
Jong Hyuk Choi
090ac0a772
unifdef LDAP_SYNC and LDAP_SYNCREPL
2003-08-27 22:16:04 +00:00
Jong Hyuk Choi
4559aa06aa
cleanup
2003-08-27 20:51:04 +00:00
Jong Hyuk Choi
81a53a9a5c
LDAP Sync protocol extension
...
- do not send updates in state mode when
syncCookie >= contextCSN (or omitCSN if changelog is used)
2003-08-26 22:49:44 +00:00
Jong Hyuk Choi
79b04b12a2
Context CSN Patch (5)
...
- persistent search patch
- cascading search patch
2003-08-26 00:35:27 +00:00
Jong Hyuk Choi
3be0b77c88
Context CSN Patch (2)
...
- BDB context csn codes moved to a separate function in back-bdb/ctxcsn.c
2003-08-25 19:15:04 +00:00
Jong Hyuk Choi
d53c90dc29
Context CSN patch (1) - cleanup
...
- serialize search_candidates() with the read of search_context_csn
2003-08-25 17:10:18 +00:00
Jong Hyuk Choi
660617ae66
Context CSN patch (1)
...
- currenty works for refreshOnly mode of LDAP Sync
- Context CSN for add / modify is implemented
- code for delete / modrdn / refreshAndPersist will be soon committed
2003-08-23 02:51:33 +00:00
Jong Hyuk Choi
6659cf3ea1
LDAP Sync protocol change : state mode (add+present) and log mode (add+delete)
2003-08-14 16:27:36 +00:00
Jong Hyuk Choi
aaa66d254e
Various udpates for SyncRepl
2003-07-15 00:43:39 +00:00
Jong Hyuk Choi
262f8bf11f
LCUP primitive routines removed
2003-06-27 17:39:48 +00:00
Jong Hyuk Choi
5d203d0cc5
not returning glue entries unless manageDSAit is set
2003-06-25 16:22:08 +00:00
Kurt Zeilenga
a8e859a401
Add server side assert control support.
2003-06-10 04:44:41 +00:00
Kurt Zeilenga
12304f64e5
Merge partial and intermediate responses
2003-05-31 05:01:49 +00:00
Jong Hyuk Choi
732f5501a9
base entry checking for refreshAndPersist as well
2003-05-30 21:47:15 +00:00
Howard Chu
4a3748b6cf
Restructured to avoid direct use of sl_malloc functions. Minimizes impact
...
of #ifdef USE_SL_MALLOC...
2003-05-25 00:53:08 +00:00
Jong Hyuk Choi
a0faa93683
If the sync mode is refreshAndPersist,
...
search does not return error when base entry is not found
2003-05-21 23:44:10 +00:00
Jong Hyuk Choi
7e7429267e
persistent search updates with recent changes
2003-05-20 20:21:39 +00:00
Howard Chu
fb52e37e06
ITS#2506 - fix prev patch, don't ignore undefined filters. treat as False,
...
test_filter will never match them anyway.
2003-05-13 01:16:26 +00:00
Howard Chu
759996c6e9
Fix HDB search_aliases crash, cleanup search scope processing: call dn2idl
...
directly instead of going thru filter_candidates. Use hdb_ function prefix
in dn2id.c to avoid ambiguities...
2003-05-01 11:59:08 +00:00
Howard Chu
7e1a91340c
Use computed filters to pass in search scope.
2003-04-30 07:46:01 +00:00
Jong Hyuk Choi
b10f1c5780
- manageDSAit is implicitly assumed for LCUP / SYNC
...
- LCUP / SYNC search both entries and subentries at the same time
2003-04-30 02:04:23 +00:00
Howard Chu
6f461690c1
Function renaming, make internal funcs static, etc.
2003-04-23 06:34:55 +00:00
Howard Chu
7c39a5e726
filter_candidate tweaks, search_stack tweaks
2003-04-22 18:22:51 +00:00
Howard Chu
89127c93d0
Mem context tweaks for bdb_dn2idl
2003-04-22 06:29:13 +00:00
Howard Chu
6002ad5233
Minor fixes
2003-04-18 07:43:07 +00:00
Howard Chu
8d8a52f9d2
ITS#2453, Fix filter candidate generation
2003-04-18 03:36:52 +00:00
Howard Chu
c754980045
Use EntryInfo navigation for search scope checks
2003-04-17 11:03:21 +00:00
Howard Chu
ec13a69220
Finish alias scope support
2003-04-17 09:23:53 +00:00
Howard Chu
377bccbc6c
Hierarchical cache management.
2003-04-16 16:23:36 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Howard Chu
d01d31e54f
Better detection of new search scopes
2003-04-08 11:17:20 +00:00
Pierangelo Masarati
b2075ea932
cleanup & more
2003-04-05 09:57:21 +00:00
Howard Chu
3814b5f1a1
Range check cleanup, added alias processing comments
2003-04-05 09:46:54 +00:00
Howard Chu
fbc6a7e8ac
Fix cursor initialization, scope IDs
2003-04-05 08:54:24 +00:00
Kurt Zeilenga
c866e28049
Cleanup
2003-04-05 08:40:07 +00:00
Howard Chu
cb92eaf96c
Fix locking etc. in prev commit
2003-04-05 07:50:01 +00:00
Howard Chu
48a9cf3416
Added code for BDB_ALIASES. Please test.
2003-04-05 06:35:16 +00:00
Howard Chu
9355dca9af
Consolidated slap_callbacks into one function. Removed send_search_result.
2003-04-01 04:12:18 +00:00
Howard Chu
8188bd1752
Fix typo in prev commit
2003-03-30 18:49:25 +00:00
Howard Chu
e8c58b4e7f
Major API change - (SLAP_OP_BLOCKS) All request parameters are
...
consolidated into the Operation structure. All reply parameters
are consolidated into the new SlapReply structure. Most operations
now have identical call signatures... Changes are not #ifdef'd,
revert to -r NO_SLAP_OP_BLOCKS if necessary to back out.
2003-03-30 09:03:54 +00:00
Kurt Zeilenga
6c7a1194c3
reorder to statements for debugging purposes
2003-03-16 18:48:44 +00:00
Pierangelo Masarati
498f8a7454
init var
2003-03-03 21:33:29 +00:00
Kurt Zeilenga
152829be87
SLAP_NVALUES:
...
schema engine updated (but not schema routines so things don't run yet)
nvalues mostly populated, enough for tests 0-2 to pass
schema routines needs lots of work
modify/mods codes needs lots of work
2003-02-27 01:54:43 +00:00
Howard Chu
00837465c4
Don't need TXN/opinfo support in read-only operations
2003-02-26 11:45:30 +00:00
Jong Hyuk Choi
71ca4d51f1
log message fix
2003-02-25 21:15:26 +00:00
Kurt Zeilenga
737f4b0d34
Misc LCUP cleanup
2003-02-09 08:43:20 +00:00
Kurt Zeilenga
282f6bc32d
Cancel exop updates
2003-02-09 05:54:45 +00:00
Kurt Zeilenga
c04e9ac993
rename "permit modify" control to "permissive modify"
...
rename "no referrals" controls to "domain scope"
misc cleanup
2003-02-09 05:39:21 +00:00
Kurt Zeilenga
48d47954a6
Rework #ifdef'ing of expermental controls to ease release engineering
...
using LDAP_DEVEL (to indicate experimental) to enable experimental features
(true for HEAD unless LDAP_REL_ENG is defined)
2003-02-08 21:53:05 +00:00
Jong Hyuk Choi
886179fbca
cleanup
2003-02-07 20:16:09 +00:00
Jong Hyuk Choi
55cf8bbd88
use of pre-assigned locker in bdb_group() / bdb_attribute()
2003-02-07 15:47:32 +00:00
Jong Hyuk Choi
85b1783d5c
LDAP Sync Operation (draft-zeilenga-ldup-sync) as a groundwork for an LDAP replication design
2003-02-05 07:37:02 +00:00
Jong Hyuk Choi
0c43007e55
LDAP cancel operation
2003-01-25 00:36:50 +00:00
Hallvard Furuseth
1fbbc11811
Fix LBER_ERROR vs. -1 confusion.
2003-01-19 13:10:17 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Howard Chu
89ab02479d
Use ber_flatten2
2002-12-18 19:17:15 +00:00
Howard Chu
349e05ff4d
Added config keyword "searchstack" for setting search stack cache depth.
...
Default is still 16.
Added IDL caching, modified from ITS#2182. Uses "idlcachesize" config
keyword. Code is #ifdef'd, currently defined, with default cache of 0.
2002-12-10 20:33:49 +00:00
Howard Chu
d4a422329b
From ITS#2183, use a long-lived IDL stack per thread.
2002-12-10 17:59:21 +00:00
Julius Enarusai
9b5ec8f43b
Fixed minor compile errors in LDAP_LOG debug statements.
2002-12-03 17:06:58 +00:00
Kurt Zeilenga
8754c8f2a3
#unifdef paged results, remove lint
2002-11-28 04:38:41 +00:00
Pierangelo Masarati
415a8d325f
add limits to entries count for paged results
2002-11-21 20:49:02 +00:00
Pierangelo Masarati
2b639068b6
seems to be leaking a ber
2002-11-21 20:21:22 +00:00
Pierangelo Masarati
59aea47963
improve limits handling and consistency; return "Admin limit exceeded" instead of "Unwilling to perform"
2002-11-21 12:58:59 +00:00
Pierangelo Masarati
b26ecba01a
- allow interactive pagedResults size change
...
- implement pagedResults abandon by setting size=0
- misc code cleanup
2002-11-21 03:36:37 +00:00
Pierangelo Masarati
c354bb23bf
Support for RFC 2696:
...
LDAP Control Extension for Simple Paged Results Manipulation
contributed by Lynn Moss <lynnmoss@us.ibm.com> (ITS#2189)
applied with changes.
2002-11-21 02:16:53 +00:00
Stig Venaas
0f86bbde87
Fix referrals and alias. For ldbm and I think for bdb, this is necessary
...
now that we normalize to lower case. Should be merged into 2.1.
2002-10-31 16:48:04 +00:00
Pierangelo Masarati
7b3f889ec1
fix hasSubordinate filtering; now it can be safely turned on
2002-10-26 16:18:31 +00:00
Jong Hyuk Choi
8074294f1d
LCUP persistent search code drop
2002-10-25 17:51:30 +00:00
Kurt Zeilenga
a1da292989
Wrap csn filter frees with sync mode check.
2002-09-15 22:42:50 +00:00
Kurt Zeilenga
2a9783bd5e
Fix typos in last commit
2002-09-15 22:13:25 +00:00
Kurt Zeilenga
629a0219f2
Cleanup up LDAP_CLIENT_UPDATE code... including some bug fixing.
2002-09-15 21:08:34 +00:00
Jong Hyuk Choi
1509e321de
LCUP Response Control Code
2002-09-14 00:29:06 +00:00
Kurt Zeilenga
e6fdfd4cee
only optimize objectClass filters when (objectClass=*) is
...
presented... avoids (&(objectClass=*)(objectClass=foo)) problems.
2002-09-09 23:25:22 +00:00
Howard Chu
9953574b47
Fix: if slapadd was used with an un-ordered LDIF file, we can't rely on
...
entries having ascending entry IDs. Always start from the beginning of
the candidate list. (This should be fine in the general case as well,
since the subtree index will also have refined the candidates.)
2002-09-09 04:24:38 +00:00
Kurt Zeilenga
37d9880495
Some LCUP clean up
2002-09-06 00:29:20 +00:00
Jong Hyuk Choi
4b48c05a8e
LDAP Client Update Protocol - non-persistent update (TODO: response control ...)
2002-09-04 02:00:42 +00:00
Pierangelo Masarati
c38f1a63b0
this test is useless, since noop is masked SLAP_CTRL_UPDATE
2002-08-29 12:17:28 +00:00
Pierangelo Masarati
fbc11bd16a
- added the capability to filter based on hasSubordinate attribute
...
to back-bdb, back-ldbm and back-sql (the latter with limitations);
- added handling of ":dn" attributes to extended rfc2254 filters
and to matched value filter
- altered the behavior of get_mra() when a matching rule is given:
now it checks whether it is compatible with the attribute syntax
and, in case it is, the given mr is used. In case of no type,
the check is delayed when filtering
2002-08-29 10:55:48 +00:00
Howard Chu
53b194fa32
Fix oc_filter, it could exit early before counting the full depth of the
...
filter tree. Also, only give special treatment to objectclass=*.
2002-08-26 12:04:53 +00:00
Kurt Zeilenga
e1536926b7
Quick check of LOCK_ID() return. Likely should retry... but not forever.
2002-08-20 03:10:08 +00:00
Kurt Zeilenga
9fc4a749dc
More places where LOCK_ID() calls need to be checked.
2002-08-20 02:57:06 +00:00
Howard Chu
44ac8a3564
Plug config leaks
2002-08-07 08:43:52 +00:00