Commit Graph

226 Commits

Author SHA1 Message Date
Howard Chu
30a6f4d24d Better fix for ITS#3365, manage back-bdb's read locks so frontend/etc.
don't need to worry about them.
2004-12-05 02:00:19 +00:00
Howard Chu
916e931065 Always exclude subordinates from top-level ops so glue overlay can
intercept. Now a single syncprov works over the entire glued context.
2004-12-04 19:26:22 +00:00
Howard Chu
5c8fd8bf11 Rename syncrepl_rq to slapd_rq, move to daemon.c 2004-12-03 16:49:23 +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
Howard Chu
86ef9285b7 Delete define of SLAPD_OVER_GLUE 2004-11-30 01:40:58 +00:00
Howard Chu
ad9f3ebe34 Backglue hastily modified as an overlay 2004-11-29 20:55:50 +00:00
Howard Chu
7bdf2ab549 _operational should return SLAP_CB_CONTINUE 2004-11-29 19:33:35 +00:00
Howard Chu
ef2df3e398 Cleanup - enable config, delete unused code 2004-11-29 10:27:38 +00:00
Howard Chu
d47f98c2eb Cleanup... never replicate syncConsumersubentries. Plug memleaks. 2004-11-29 06:51:44 +00:00
Howard Chu
948aca3540 Partially revert previous commit. Fix startup csn generation.
Fix findbase initialization.
2004-11-29 05:54: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
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
ed9925f6d9 Cleanup controls 2004-11-27 10:49:47 +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
c2b339d456 More syncprov fixes. test019 now passes. 2004-11-26 09:40:22 +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
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
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
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
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
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
Pierangelo Masarati
f1187e4165 the caching database may need to inherit ACLs and limits from the proxy 2004-11-17 21:38:14 +00:00
Pierangelo Masarati
158067a46e sanity check 2004-11-13 17:27:15 +00:00
Pierangelo Masarati
7ff445d8ae further cleanup 2004-11-13 15:10:47 +00:00
Pierangelo Masarati
d7bdb8cb24 disable referral rewrite in default suffix massage 2004-11-13 12:15:40 +00:00
Howard Chu
e0726c2b55 A bit more... 2004-11-09 03:12:03 +00:00
Howard Chu
e4c231fe0c Only use libltdl #if SLAPD_MODULES is defined, otherwise ignore
external pwdCheckModules.
2004-11-05 08:57:05 +00:00
Howard Chu
9ebcc83796 Minor cleanup of prev commit 2004-11-04 03:10:03 +00:00
Howard Chu
3d23a4d2c5 Consolidate redundant code 2004-11-04 02:59:34 +00:00
Howard Chu
aa7ed3d8c8 Incomplete skeleton 2004-11-02 04:51:06 +00:00
Howard Chu
1df6d76269 Add ppolicy_hash_cleartext config keyword, hash Adds as well as Modifies.
Changed check_pw_quality callback to pass entry's Attributes in final arg.
2004-10-07 04:07:17 +00:00
Howard Chu
7e87f54716 Revert ITS#3353 patch, it needs to be reworked. 2004-10-06 05:51:38 +00:00
Howard Chu
fda3d6260e ITS#3353 consolidate slapd globals into a single struct 2004-10-01 07:33:16 +00:00
Howard Chu
e014144f98 Move time parsers from ppolicy.c to liblutil; preserve greater precision 2004-09-28 12:23:37 +00:00
Pierangelo Masarati
761f287943 multiple precision with BIGNUM/gmp/ulong 2004-09-26 22:58:47 +00:00
Pierangelo Masarati
2e9d64741c put overlays in alphabetical order 2004-09-26 22:53:54 +00:00
Howard Chu
89b03a1c7e Make ppolicy_add consistent with ppolicy_modify - don't add pwdChangedTime
opattr on replicated entries.
2004-09-21 00:14:28 +00:00
Jong Hyuk Choi
98dc97bcb9 memory leak fixes 2004-09-11 02:02:09 +00:00
Kurt Zeilenga
d611a4b49a unifdef -UNEW_LOGGING 2004-09-04 04:54:28 +00:00
Pierangelo Masarati
ba7bb04ed3 check if "rootdn" is defined 2004-08-25 14:29:40 +00:00
Pierangelo Masarati
23cbd59126 - proxy cache erroneously returns the filtering attributes
and the objectClass right after caching, even if not requested,
  while subsequent searches are fine;
- the response callback needs be apended at the end of the
  callback list, otherwise the resulting entries are cached
  before other overlays can alter them
- the callback structure and its contents needs be freed
2004-08-24 09:24:55 +00:00
Howard Chu
91033d6552 Reworked fix for ITS#3140 - add access parameter to backend_attribute 2004-08-18 17:14:22 +00:00
Howard Chu
d504ae047e More for ITS#3288 be_pcl_mutex fixes 2004-08-18 16:43:19 +00:00
Howard Chu
77df33a164 Fix crash on modify if userpassword didn't exist yet 2004-08-15 22:23:58 +00:00
Pierangelo Masarati
9f6f5491fe slightly rework user/operational attributes handling (including fixing a bug in the logic of the previous change to backend_operational()); cleanup; more improvements to slapo-rwm and back-relay 2004-07-25 23:16:40 +00:00
Pierangelo Masarati
32d9856fb1 hack to handle cases where o_req_dn = o_req_ndn 2004-07-22 23:48:04 +00:00
Pierangelo Masarati
52a49e0840 improve manual and make naming contexts uniform; NOTE: backwards compatibility not preserved 2004-07-20 00:46:20 +00:00
Pierangelo Masarati
dbb4593d75 rework passwd_extop to comply with rwm requirements... 2004-07-20 00:22:05 +00:00
Pierangelo Masarati
b94d5e17e2 rework op/rs structures to deal with opeartional attributes 2004-07-18 21:44:29 +00:00
Howard Chu
a14bda1df4 strptime is unreliable, just parse time ourselves 2004-07-18 18:28:16 +00:00
Pierangelo Masarati
6a02b9b4fd don't ask for attributes 2004-07-17 17:06:03 +00:00
Pierangelo Masarati
56303ce55a cleanup 2004-07-14 01:16:23 +00:00
Pierangelo Masarati
d02a8cab65 revert previous change; anticipate backend_operational before overlays callbacks (thanks, Howard); rework overlays cycle to allow callbacks to free themselves (thanks Howard) 2004-07-14 00:42:23 +00:00
Pierangelo Masarati
3b8111f1c4 use a separate field for a modified entry in SlapReply 2004-07-13 22:52:54 +00:00
Pierangelo Masarati
d6e3c93001 memory hanling cleanup 2004-07-13 01:00:48 +00:00
Pierangelo Masarati
7011c4f3e2 change flags only if entry massaging goes fine 2004-07-12 22:50:34 +00:00
Pierangelo Masarati
f4a428d060 cleanup 2004-07-12 22:33:44 +00:00
Howard Chu
2954a90483 Add backend_startup_one() 2004-07-12 20:27:33 +00:00
Pierangelo Masarati
22bd2667ce mostly done... 2004-07-11 22:57:51 +00:00
Howard Chu
3dedb0839c Remove redundant code from previous patch 2004-07-10 18:26:05 +00:00
Pierangelo Masarati
7679f37b1d fix previous commit (needs work) 2004-07-10 15:15:01 +00:00
Pierangelo Masarati
1c2759e689 cache backend was not started up 2004-07-10 11:37:48 +00:00
Pierangelo Masarati
8e3fba7e1e silence a few (mostly harmless) warnings 2004-06-12 15:08:59 +00:00
Pierangelo Masarati
d1b692ceb4 clarify no limits in (internal) searches 2004-06-12 11:33:21 +00:00
Jong Hyuk Choi
aa61c0b122 ITS#3180 Fix 2004-06-08 02:54:21 +00:00
Howard Chu
932d924f50 ITS#3170 fix uninit'd mod.sml_nvalues 2004-06-03 23:09:25 +00:00
Howard Chu
88e2a06b5e ITS#3151 always reschedule consistency_check task 2004-05-20 00:13:05 +00:00
Howard Chu
73fa8b7dd9 ITS#3153 only cache queries with at least one entry 2004-05-19 23:37:14 +00:00
Howard Chu
69ff27f9d6 ITS#3150 fix uninit'd return_val 2004-05-19 22:07:06 +00:00
Pierangelo Masarati
657e580bbe fix schema initialization when built as module... 2004-05-13 23:33:14 +00:00
Howard Chu
c0075d57b4 better fix for prev commit 2004-05-13 00:46:52 +00:00
Howard Chu
ee0af2b9d5 ITS#3137 defer schema loading until overlay configuration 2004-05-13 00:38:24 +00:00
Pierangelo Masarati
d40e5a365a fix DN_SEPARATOR() and clarify its use 2004-05-07 09:03:05 +00:00