Commit Graph

6077 Commits

Author SHA1 Message Date
Pierangelo Masarati
0cc024a370 more on DN munging; now works for all operations 2004-12-02 00:33:36 +00:00
Pierangelo Masarati
396743f62f fix DN munging; also fix potential error when logging incomplete deletes 2004-12-01 23:16:21 +00:00
Sang Seok Lim
98485f5247 1) existing matching rules support in component filter
2) remove double buffering for decoded component values
3) caching decoded component assertion values
2004-12-01 22:11:55 +00:00
Pierangelo Masarati
6e12819387 allow undefined schema items to be returned by back-ldap and remapped by the rwm overlay 2004-12-01 21:47:13 +00:00
Howard Chu
996354e2dd Pass entire entry to password_quality check module, not just attrs 2004-12-01 16:01:04 +00:00
Pierangelo Masarati
8866a28fb3 don't yell at regex styling that wraps all the suffix in a submatch 2004-11-30 22:50:07 +00:00
Jong Hyuk Choi
8771bdfcbb restructuring and cleanup 2004-11-30 16:32:37 +00:00
Howard Chu
4869523567 Add comments, fix search args in syncrepl_entry 2004-11-30 11:08:25 +00:00
Pierangelo Masarati
0c65f51ab2 fix user/operational mix of attribute request 2004-11-30 01:49:06 +00:00
Pierangelo Masarati
66a66db3da retry if addition of an entry previously added as glue fails; entryUUID must be added to mods in pretty and normalized form 2004-11-30 01:48:08 +00:00
Howard Chu
86ef9285b7 Delete define of SLAPD_OVER_GLUE 2004-11-30 01:40:58 +00:00
Pierangelo Masarati
e77570799b essential support for refreshOnly syncrepl 2004-11-29 22:04:53 +00:00
Howard Chu
ad9f3ebe34 Backglue hastily modified as an overlay 2004-11-29 20:55:50 +00:00
Sang Seok Lim
decfd7217f 1) <all> type component reference support
2) nibble type memory support when decoding
3) description type object identifier support
4) OPTIONAL, DEFAULT support in certificate decoder/extractor/matching
5) Misc bug fix
2004-11-29 20:21:38 +00:00
Howard Chu
7bdf2ab549 _operational should return SLAP_CB_CONTINUE 2004-11-29 19:33:35 +00:00
Pierangelo Masarati
9114b1b116 glue also in case of no such object, indicating that the suffix entry is missing yet (unordered results of initial content poll) 2004-11-29 19:03:55 +00:00
Howard Chu
7129b27810 Fix db_close 2004-11-29 14:17:16 +00:00
Pierangelo Masarati
6b1c641bc1 warn users of the need to use the rwm overlay 2004-11-29 12:40:36 +00:00
Howard Chu
ef2df3e398 Cleanup - enable config, delete unused code 2004-11-29 10:27:38 +00:00
Pierangelo Masarati
6c3715aff9 more on syncprov support 2004-11-29 09:36:22 +00:00
Howard Chu
4fec2f56df Fix slap_known_controls initialization 2004-11-29 08:55:50 +00:00
Howard Chu
d47f98c2eb Cleanup... never replicate syncConsumersubentries. Plug memleaks. 2004-11-29 06:51:44 +00:00
Howard Chu
a88c78d64e Remove syncinfo si_UUID_dn, make consumer use modify/modrdn instead of
just deleting and adding modified entries.
2004-11-29 05:56:51 +00:00
Howard Chu
948aca3540 Partially revert previous commit. Fix startup csn generation.
Fix findbase initialization.
2004-11-29 05:54:55 +00:00
Howard Chu
0145d54325 In build_new_dn, rdn may be part of a larger string, use strncopy. 2004-11-29 04:03:56 +00:00
Pierangelo Masarati
2c89c53cda fix typo 2004-11-29 00:53:43 +00:00
Pierangelo Masarati
873a5b73ff first round at enabling back-sql as LDAPsync provider 2004-11-29 00:50:55 +00:00
Pierangelo Masarati
fc57a3e3f8 generate contextCSN if not available; don't fail if a referral is sent (or don't accept referrals?) 2004-11-29 00:48:26 +00:00
Pierangelo Masarati
870cc69c93 fix o_hdr use 2004-11-28 16:25:20 +00:00
Howard Chu
74b745454e Use rdwr lock for si_mods to avoid deadlock 2004-11-27 20:34:12 +00:00
Howard Chu
8f64cb135f Fix syncprov_db_close, only cleanup thrctx once 2004-11-27 16:05:49 +00:00
Pierangelo Masarati
6f182a7547 make unregistered known controls show up as undefined; move LDAPsync cid to frontend; some cleanup 2004-11-27 15:08:24 +00:00
Howard Chu
8d0cd119ab Let the backend know there's a sync search 2004-11-27 14:54:49 +00:00
Howard Chu
865f0db180 Add checkpointing to save contextCSN periodically. Read contextCSN
on startup, save on shutdown.
2004-11-27 14:52:28 +00:00
Howard Chu
30333b989c Let the overlay run before the backend in bi_db_close 2004-11-27 14:43:07 +00:00
Howard Chu
38b430be3c Fix prev commit 2004-11-27 11:50:54 +00:00
Howard Chu
d3ced75fe7 Add SLAP_DBFLAG_OVERLAY 2004-11-27 11:45:54 +00:00
Howard Chu
b4eceddb52 Add slap_find_control_id 2004-11-27 11:45:07 +00:00
Howard Chu
ed9925f6d9 Cleanup controls 2004-11-27 10:49:47 +00:00
Pierangelo Masarati
27529430a6 wait until syncprov freezes 2004-11-27 10:16:15 +00:00
Howard Chu
1bb93ae084 Fix modify serialization 2004-11-27 08:55:04 +00:00
Howard Chu
584d5355b8 Fix overlay aux_operational, add contextCSN as operational attribute
of suffix entry
2004-11-27 08:30:44 +00:00
Howard Chu
8866cc9c92 Force a refresh if the search base has changed 2004-11-27 07:47:24 +00:00
Howard Chu
ee20d206cd Cleanup 2004-11-27 07:29:10 +00:00
Howard Chu
08564beb6b Serialize multiple modifies of the same entry (ala seqmod.c) 2004-11-27 07:05:24 +00:00
Howard Chu
287d5be13c Fix op_cleanup 2004-11-27 07:04:52 +00:00
Howard Chu
8d9509d8d0 Fix abandon sequencing 2004-11-27 06:17:24 +00:00
Howard Chu
5dc1dd1441 Added abandon/cancel support 2004-11-27 01:26:12 +00:00
Howard Chu
5f99f7c991 More migration of syncrepl from frontend to syncprov overlay
define OPERATION_BUFFER_SIZE for dummy Operations
2004-11-27 00:57:37 +00:00
Howard Chu
a2400fc0f8 Self-contained detached operation 2004-11-26 23:10:48 +00:00
Howard Chu
2620b4084d Added response queuing for updates occurring during a refresh 2004-11-26 21:24:40 +00:00
Howard Chu
d413097d8b Fix prev commit 2004-11-26 17:32:36 +00:00
Howard Chu
e6dd9ec8a2 More Opheader fixes 2004-11-26 10:10:29 +00:00
Howard Chu
c2b339d456 More syncprov fixes. test019 now passes. 2004-11-26 09:40:22 +00:00
Howard Chu
3426a11983 More BDB_PSEARCH cleanup 2004-11-26 09:39:33 +00:00
Howard Chu
127a85b553 More Operation/Opheader fixes 2004-11-26 09:39:14 +00:00
Pierangelo Masarati
e891dbcdc4 fix dynacl compile 2004-11-26 00:34:48 +00:00
Howard Chu
90cc409325 Split Operation into Opheader and op 2004-11-25 22:59:00 +00:00
Howard Chu
3a5bde98ba Disable back-bdb native syncrepl support, enable syncprov overlay,
remove syncrepl stuff from Operation struct
2004-11-25 21:16:54 +00:00
Howard Chu
618cc56265 Merge op->o_sync_mode into op->o_sync 2004-11-25 18:31:31 +00:00
Howard Chu
f0cae31b0e Fix send_ldap* macros 2004-11-25 14:41:00 +00:00
Howard Chu
dca809ff8d Revert previous commit, it breaks everything. 2004-11-25 07:03:43 +00:00
Howard Chu
bf97a1f865 Cleanup, add some more descriptive comments.
Still needs: error checking, queuing results when refresh is in progress
2004-11-24 20:34:28 +00:00
Jong Hyuk Choi
7fa860ef16 Add the omitted part from the original buddy allocator commit 2004-11-24 17:46:47 +00:00
Jong Hyuk Choi
83fd442ded Omitted from the original buddy allocator commit 2004-11-24 17:27:25 +00:00
Howard Chu
a6d2bfe9a4 Persist passes test018 2004-11-24 17:07:14 +00:00
Howard Chu
fe4095ebc3 Use normalized UUID... 2004-11-24 16:13:20 +00:00
Howard Chu
4e530bf54d First pass at persist, not working 2004-11-24 15:58:38 +00:00
Howard Chu
02e171e886 Use BackendInfo instead of direct references to back-ldap functions 2004-11-24 11:31:43 +00:00
Howard Chu
a057ff5bee ITS#3401 avoid empty make target when SLAPD_DYNAMIC_BACKENDS is empty 2004-11-24 06:41:21 +00:00
Howard Chu
6170a2bbb4 Fix ITS#3400, move ebadf declaration 2004-11-24 05:27:59 +00:00
Pierangelo Masarati
dceaa05c0e should fix compile when SLAPD_ACI_ENABLED is undefined 2004-11-23 21:20:13 +00:00
Jong Hyuk Choi
7891097a79 remove schema which was used for component match testing 2004-11-23 17:10:38 +00:00
Howard Chu
dbe5e00929 Use SLAP_CONTROL_* constants 2004-11-23 16:02:07 +00:00
Jong Hyuk Choi
994edd5500 buddy allocator for sl_malloc. Configurable at thread heap creation time. Need optimization for higher perf. 2004-11-23 15:37:06 +00:00
Howard Chu
50ed4465fb slap_known_controls is now an array. (control.c r1.117) 2004-11-23 14:45:36 +00:00
Howard Chu
6bbca5e368 Now that we have a fixed number of slots for controls, don't bother
realloc'ing slap_known_controls.
2004-11-23 14:42:04 +00:00
Howard Chu
155387428a Add comment for spare bits in ctrlflags 2004-11-23 14:12:13 +00:00
Howard Chu
47dd8d8732 Dynamic control management 2004-11-23 13:08:45 +00:00
Howard Chu
99ee94a3de Tweak findcsn conditions for validating cookie csn 2004-11-22 03:56:27 +00:00
Howard Chu
09e2035c39 Passes test017 2004-11-22 03:24:59 +00:00
Howard Chu
c5006f4b87 Fix modtail initialization in loop 2004-11-22 02:11:15 +00:00
Howard Chu
e49c13b874 More refresh working... 2004-11-21 18:25:02 +00:00
Howard Chu
884ab2e0c7 Getting refresh working 2004-11-21 17:59:21 +00:00
Howard Chu
8632d8cd04 BDB 4.3 compatibility - errcall prototype 2004-11-21 16:50:24 +00:00
Howard Chu
70d3e8f102 Don't bother including <sys/epoll.h> if we're not using epoll. 2004-11-21 02:18:26 +00:00
Pierangelo Masarati
f93d4a31e8 allow a "users" type in ACI 2004-11-20 14:07:07 +00:00
Pierangelo Masarati
cc0353610f more cleanup and ITS number 2004-11-20 12:12:57 +00:00
Pierangelo Masarati
c75386a279 cleanup fix to ITS#3303 2004-11-20 12:07:39 +00:00
Pierangelo Masarati
40762c524a fix ITS#3303 2004-11-20 11:55:46 +00:00
Pierangelo Masarati
1e650374c2 add more semantics to the "type" field; fix a bug in anonymous operations; treat children aci_mask() as internal searches 2004-11-20 11:45:05 +00:00
Pierangelo Masarati
e79fbb88cf move ACIs under a dynamic infrastructure that allows run-time loadable custom access control logic (needs work) 2004-11-20 01:27:03 +00:00
Howard Chu
2a50cbffd1 Use avl_find2, not avl_find 2004-11-20 00:55:58 +00:00
Howard Chu
87c74c2d52 Cleanup, delete test define 2004-11-19 23:45:31 +00:00
Howard Chu
d7c5ccabe9 Use exop_is_write() macro 2004-11-19 23:27:02 +00:00
Howard Chu
59b50101bd Overlay for serializing modifications of a specific entry without
using backend-specific locks
2004-11-19 23:22:49 +00:00
Howard Chu
c8f49d0337 Add SLAP_EXOP_WRITES flag, expose flags in Operation,
add exop_is_write() macro for detecting exops that modify a target entry
2004-11-19 22:19:13 +00:00
Howard Chu
c7a8625da7 Fix waking test 2004-11-19 00:13:00 +00:00
Howard Chu
f0372748e8 Fix prev commit 2004-11-18 23:08:57 +00:00
Howard Chu
f825367acf Check for sys/epoll.h 2004-11-18 22:07:37 +00:00
Howard Chu
fb7a5d7a55 shutdown on failure in epoll_ctl when adding a socket... 2004-11-18 19:29:24 +00:00
Howard Chu
bf0d729454 Fix prev commit, didn't mean to have HAVE_EPOLL hardcoded 2004-11-18 19:15:21 +00:00
Howard Chu
495ea2c13c epoll support works 2004-11-18 19:06:14 +00:00
Howard Chu
b4e10e194d Fix epoll compilation 2004-11-18 17:27:43 +00:00
Howard Chu
b7d4e1a5f1 First pass at macro-izing event handling method. Still only supports
select(). If you think this is too ugly, feel free to revert...
2004-11-18 16:41:04 +00:00
Howard Chu
0464155205 Allow a small number of waking events to be outstanding, not just 1
(chose 5 arbitrarily)
2004-11-18 15:40:49 +00:00
Howard Chu
69dc60e5ca Count writers, don't pass w fd_set if there are none
Deleted broken/unused FD_MANUAL_COPY code
2004-11-18 00:19:52 +00:00
Pierangelo Masarati
f1187e4165 the caching database may need to inherit ACLs and limits from the proxy 2004-11-17 21:38:14 +00:00
Howard Chu
ecf5581f0d Fix include path for backend.h when using separate object directory 2004-11-17 20:22:46 +00:00
Pierangelo Masarati
6ff5fce743 FIXME: needs work/cleanup 2004-11-17 19:42:19 +00:00
Pierangelo Masarati
6eec000889 improve diagnostics 2004-11-17 17:55:44 +00:00
Pierangelo Masarati
dd18c8b2a4 revert last commit 2004-11-17 15:56:25 +00:00
Howard Chu
f1ae2e63c1 Fix BDB 4.3 fasttool, flag must be set before opening environment 2004-11-17 15:12:31 +00:00
Pierangelo Masarati
262df940f1 cleanup previous commit 2004-11-17 15:05:59 +00:00
Pierangelo Masarati
bc478dee46 log the right function names 2004-11-17 14:53:03 +00:00
Pierangelo Masarati
437bd421bb test "entry" as default attribute 2004-11-17 13:43:04 +00:00
Pierangelo Masarati
c7d2cf91fd cleanup and line up with code 2004-11-16 22:14:21 +00:00
Howard Chu
2415f5085d Avoid filling the wake_sds when massive numbers of connections close at once. 2004-11-16 20:26:50 +00:00
Pierangelo Masarati
184fc4878a more on ITS#3396: note that the filter is mandatory, and that the protocol must be ldap:// 2004-11-16 18:57:40 +00:00
Pierangelo Masarati
227961178e fix ITS#3396 (filter in URI replacement must be present) 2004-11-16 18:43:48 +00:00
Pierangelo Masarati
947268c5ee partially revert previous commit (the "creator" special DN pattern is redundant as "dnattr" is more expressive 2004-11-15 22:57:03 +00:00
Pierangelo Masarati
064eb88ef8 move special dn patterns to style enum; add creator special dn pattern 2004-11-15 22:15:28 +00:00
Pierangelo Masarati
78ddb88960 minor cleanup 2004-11-15 22:10:10 +00:00
Pierangelo Masarati
b29bf83e7e remove back-*/external.h 2004-11-15 19:45:49 +00:00
Pierangelo Masarati
fcf89c9a3d add directory in labeledURI for back-bdb/hdb; put overlays in database entry's children 2004-11-15 15:46:56 +00:00
Pierangelo Masarati
2d5ec082dd cleanup 2004-11-15 14:17:08 +00:00
Pierangelo Masarati
5a91da6624 don't list multiple occurrences of the same overlay 2004-11-15 14:13:54 +00:00
Pierangelo Masarati
ee4c10d5d0 allow backends to automatically install overlays; issue warnings in case of duplicates (fixes ITS#3395 for cases (1.a), (1.b) and (2) simultaneously) 2004-11-15 10:28:33 +00:00
Howard Chu
04b078d6eb Fix prev commit. I wonder if we should convert the fdset bitvector into
an array like winsock does. That would speed up response time for small
number of connections with large FD_SETSIZE, but probably equalize out
as the number of active connections goes up. ??
2004-11-15 04:05:32 +00:00
Howard Chu
a59243ceee Slight tweak for select descriptor checking 2004-11-14 21:27:53 +00:00
Sang Seok Lim
a90e63fde0 ComponentFilterMatch support for userCertificate 2004-11-14 20:11:38 +00:00
Pierangelo Masarati
9c550e7235 first step towards removing back-*/external.h 2004-11-13 18:52:44 +00:00
Pierangelo Masarati
cd35386935 fix ITS#3391 2004-11-13 18:40:16 +00:00
Pierangelo Masarati
9cff3e39d8 inherit from back-ldap 2004-11-13 18:36:02 +00:00
Pierangelo Masarati
158067a46e sanity check 2004-11-13 17:27:15 +00:00
Pierangelo Masarati
db4f223c66 improve overlay helpers 2004-11-13 17:20:24 +00:00
Pierangelo Masarati
7ff445d8ae further cleanup 2004-11-13 15:10:47 +00:00
Pierangelo Masarati
f036fff9e5 further cleanup 2004-11-13 14:57:39 +00:00
Pierangelo Masarati
363fdcd951 no longer required (moved to rwm overlay) 2004-11-13 14:50:34 +00:00
Pierangelo Masarati
253266ef07 import stuff removed from back-ldap 2004-11-13 14:45:18 +00:00
Pierangelo Masarati
f176935a58 remove rewrite stuff -- now delegted to rwm overlay 2004-11-13 14:43:30 +00:00
Howard Chu
3cfbe2ec29 fasttool: BDB 4.3 uses DB_LOG_INMEMORY instead of DB_TXN_NOT_DURABLE 2004-11-13 13:23:33 +00:00
Howard Chu
ab25b43364 Update BDB 4.3 errcall prototype again to silence warnings 2004-11-13 13:22:48 +00:00
Pierangelo Masarati
d7bdb8cb24 disable referral rewrite in default suffix massage 2004-11-13 12:15:40 +00:00
Pierangelo Masarati
34478b3ca6 more on monitor customization 2004-11-12 12:54:42 +00:00
Pierangelo Masarati
5d99b9d747 cleanup 2004-11-12 12:53:19 +00:00
Pierangelo Masarati
f41f1aaac0 initialize var 2004-11-12 12:52:42 +00:00
Pierangelo Masarati
166f9afa34 check validity of naming context 2004-11-12 12:51:53 +00:00
Pierangelo Masarati
018526ff14 fix spurius noSuchObject when base=suffix 2004-11-12 12:51:16 +00:00
Pierangelo Masarati
5b67eecb45 don't hijack members of op for temporaries... 2004-11-12 12:49:43 +00:00