Commit Graph

377 Commits

Author SHA1 Message Date
Pierangelo Masarati
a6453f28f8 silence warnings 2005-11-06 23:27:09 +00:00
Pierangelo Masarati
2f63454973 don't leak on exit 2005-11-03 15:08:23 +00:00
Pierangelo Masarati
bd5706d8e5 complete fix of slapd-monitor log modify (ITS#4091) 2005-10-15 17:37:18 +00:00
Pierangelo Masarati
57df4bf9c2 fix log level modification via slapd-monitor (ITS#4091) 2005-10-15 15:43:53 +00:00
Pierangelo Masarati
b90a496187 fix previous commit (modifyTimestamp didn't get appended to the list); add opattrs to back-monitor mods 2005-10-14 10:02:50 +00:00
Kurt Zeilenga
6db7e605ee Align Operation buffers using LBER_ALIGNED_BUFFER 2005-10-12 23:17:28 +00:00
Pierangelo Masarati
3093f97767 fix messages in previous commit 2005-09-08 14:32:09 +00:00
Pierangelo Masarati
5f20374de1 reject registrations when back-monitor is not configured 2005-09-08 14:23:35 +00:00
Pierangelo Masarati
9baa6f4c99 don't let back-monitor appear __after__ a database that hides it; currently, only <suffix ""> :-( ; make error messages more descriptive 2005-08-30 10:38:11 +00:00
Pierangelo Masarati
9f1703d0d3 more (in)sanity stuff 2005-08-08 22:49:54 +00:00
Hallvard Furuseth
7843e7fbb2 Destroy monitor_info.mi_cache_mutex 2005-08-08 21:29:13 +00:00
Pierangelo Masarati
c984c229d6 plug more one-time leaks; rearrange subsystems setup 2005-08-08 20:45:10 +00:00
Pierangelo Masarati
b286c9264b plug another one-time leak 2005-08-08 20:01:04 +00:00
Pierangelo Masarati
47d39181d6 cleanup 2005-08-06 21:03:26 +00:00
Luke Howard
12d006d17d Add o_no_schema_check to operation structure
entry_schema_check() nows takes Operation instead of Backend as first
argument, allows it to check o_no_schema_check
2005-08-01 15:26:13 +00:00
Pierangelo Masarati
a91ebfac79 plug leaks 2005-07-25 20:47:39 +00:00
Pierangelo Masarati
4655f12858 same for overlays; fix typo ("Overlays" instead of "Overlay" in parent entry) 2005-07-23 15:55:29 +00:00
Pierangelo Masarati
5aadfdfedb add back-config suppor to back-monitor; advertize what backends provide back-config support; HEADS-UP: changed monitor OIDs (reflected in OID repository) 2005-07-23 15:29:16 +00:00
Pierangelo Masarati
3df83d7089 destroy cache on exit 2005-07-20 14:59:56 +00:00
Pierangelo Masarati
77ad940c10 more on deadlock/dangling pointers 2005-07-20 00:50:35 +00:00
Pierangelo Masarati
5748d3ff72 connection_client leave c_peer_* fields NULL 2005-07-20 00:49:33 +00:00
Pierangelo Masarati
0f18805d65 Memory cleanup 2005-07-19 14:39:43 +00:00
Hallvard Furuseth
81ecb0b153 assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL). 2005-07-18 06:22:33 +00:00
Pierangelo Masarati
ea5952342c fix some unclean unlock issues; fix potential leaks 2005-07-17 22:19:20 +00:00
Pierangelo Masarati
27eeb15fda fix generated connection entries 2005-07-17 22:18:45 +00:00
Pierangelo Masarati
ea85bcadfc remove #defines moved to frontend 2005-06-05 22:58:18 +00:00
Pierangelo Masarati
f505aec4bc publish updateref... 2005-05-21 14:54:11 +00:00
Kurt Zeilenga
feeeabcd68 manageDIT framework and obsolete objectclasses/DIT-content-rule override 2005-05-13 19:07:31 +00:00
Kurt Zeilenga
ccbf18b7d0 Don't split description across multiple values. 2005-05-09 19:07:42 +00:00
Pierangelo Masarati
dde3f1ad3f cleanup ident string 2005-05-06 17:11:40 +00:00
Pierangelo Masarati
2c8829b8ca add "monitorIsShadow" (ITS#3696); more to come (see discussion) 2005-05-04 09:27:22 +00:00
Pierangelo Masarati
8045a0882e anticipate monitor schema definition 2005-04-29 20:29:59 +00:00
Pierangelo Masarati
50f3fe14db perform internal operations as rootdn, if any 2005-04-29 01:42:24 +00:00
Pierangelo Masarati
cb291bb940 refactor ABI for arbitrary attribute/entry/callback registration; propagate pointers to Operation and SlapReply structures to entry create/update/modify callbacks; cleanup 2005-04-27 21:30:35 +00:00
Pierangelo Masarati
fee10862c3 fix attributeType DESC; #ifdef the legacy monitoredInfo 2005-04-27 18:33:22 +00:00
Pierangelo Masarati
27adc4b1a3 explode connection monitored info into dedicated attributes 2005-04-27 17:51:54 +00:00
Pierangelo Masarati
145221472e cleanup entity registration 2005-04-27 02:43:38 +00:00
Howard Chu
f01bb8d9ab Tweak runqueue reporting 2005-04-23 16:58:38 +00:00
Howard Chu
cd1bdf99e2 Add task names to runqueue entries. Display running tasks under
cn=Runqueue,cn=Threads,cn=Monitor
2005-04-23 00:28:43 +00:00
Pierangelo Masarati
17dbf7a49f fix previous commit 2005-04-21 22:57:49 +00:00
Pierangelo Masarati
5fe42e8853 either pass normalized values to attr_merge*() or call attr_merge_normalize*() (fixes ITS#3659) 2005-04-21 21:05:38 +00:00
Pierangelo Masarati
09e4da6bef check parameters 2005-04-09 00:11:31 +00:00
Pierangelo Masarati
b109d018eb honor disclose 2005-04-08 23:33:03 +00:00
Pierangelo Masarati
64ae69f6df honor disclose and search access of searchBase; fix potential lock issue; honor abandon 2005-04-08 23:20:37 +00:00
Howard Chu
0076b40c32 Convert backendInfo/backendDB to STAILQs 2005-03-24 05:13:31 +00:00
Howard Chu
119cbcaba4 Schema unparsing support 2005-03-21 08:31:48 +00:00
Howard Chu
fba9235d0f Add HARDCODE schema flags 2005-03-21 00:22:54 +00:00
Howard Chu
e509e81ecd Fix slapi plugin info 2005-03-01 20:05:20 +00:00
Pierangelo Masarati
fbb2b75ace matched values is "global" 2005-01-30 22:04:02 +00:00
Pierangelo Masarati
42b7753803 should we touch timestamps when internally updating? 2005-01-18 09:48:53 +00:00
Kurt Zeilenga
dc0eacd40b Happy New Year! 2005-01-01 20:49:32 +00:00
Pierangelo Masarati
10ce37aa31 fix schema (1.3.6.1.4.1.4203.666.3.13 for 'monitoredObject' was already assigned to 'lastmod') 2004-12-08 19:21:37 +00:00
Pierangelo Masarati
fefa59059d minor cleanup 2004-12-08 19:11:27 +00:00
Pierangelo Masarati
5769f419db cleanup previous commit (still temporary, need to define dedicated attributeTypes) 2004-12-02 12:32:36 +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
90cc409325 Split Operation into Opheader and op 2004-11-25 22:59:00 +00:00
Pierangelo Masarati
6ff5fce743 FIXME: needs work/cleanup 2004-11-17 19:42:19 +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
9c550e7235 first step towards removing back-*/external.h 2004-11-13 18:52:44 +00:00
Pierangelo Masarati
db4f223c66 improve overlay helpers 2004-11-13 17:20:24 +00:00
Pierangelo Masarati
f036fff9e5 further cleanup 2004-11-13 14:57:39 +00:00
Pierangelo Masarati
34478b3ca6 more on monitor customization 2004-11-12 12:54:42 +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
79f744f30b rework static backend initialization 2004-11-11 00:39:19 +00:00
Pierangelo Masarati
70884b8860 allow to register entries and entry callbacks; radical namespace cleanup 2004-11-08 18:52:27 +00:00
Pierangelo Masarati
c8fd4a203b allow creation of subsystems whatever order the databases appear 2004-11-08 11:33:53 +00:00
Pierangelo Masarati
3743579870 fix typo in rww; general cleanup 2004-11-08 10:55:33 +00:00
Pierangelo Masarati
b3ec75d032 rework subsystem initialization (can be added dynamically...) 2004-11-08 10:10:15 +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
Pierangelo Masarati
761f287943 multiple precision with BIGNUM/gmp/ulong 2004-09-26 22:58:47 +00:00
Pierangelo Masarati
55e251e6e8 lots of cleanup; few improvements; fix RDN selection bug when creating connection dynamic entries; rework entries ordering - now it's more intuitive and regular; optimize counters update 2004-09-12 22:12:58 +00:00
Pierangelo Masarati
9eca1bd75e fix previous commit... 2004-09-11 17:46:00 +00:00
Pierangelo Masarati
c07979b968 fix previous commit when GMP is not defined 2004-09-11 17:29:05 +00:00
Pierangelo Masarati
a637926bf2 use GMP for multiple precision in counters 2004-09-11 16:15:53 +00:00
Pierangelo Masarati
7dc5a0bb83 fix negative counters; prepare for imrpved count of sent data 2004-09-11 11:05:41 +00:00
Kurt Zeilenga
d611a4b49a unifdef -UNEW_LOGGING 2004-09-04 04:54:28 +00:00
Kurt Zeilenga
e0a9ea2f50 Move MSVC port to the Attic 2004-09-04 04:37:41 +00:00
Pierangelo Masarati
4297cbaed2 fix attr_merge() usage 2004-08-06 16:38:41 +00:00
Pierangelo Masarati
cd9a9c628d frontend stuff moved into a database structure, essentially to allow overlays to be processed before database selection; passes all tests (ITS#3080) 2004-07-26 21:26:34 +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
392366818e fix ITS#3254 2004-07-25 22:57:52 +00:00
Pierangelo Masarati
1bbdcba854 add {creators|modifiers}Name to all entries 2004-07-19 21:42:11 +00:00
Howard Chu
ebd1832d21 Required by backover.c -r1.22 2004-07-19 20:25:43 +00:00
Howard Chu
e918210fc2 Required by backover.c -r1.22 2004-07-19 20:01:26 +00:00
Pierangelo Masarati
b94d5e17e2 rework op/rs structures to deal with opeartional attributes 2004-07-18 21:44:29 +00:00
Pierangelo Masarati
dddee82680 cleanup 2004-05-06 14:51:14 +00:00
Pierangelo Masarati
d7ff03d4be allow consistent modification of readOnly and restrictedOperation attributes 2004-05-02 22:08:12 +00:00
Pierangelo Masarati
05fbf1cc97 add restrictedOperation to databases; modification to come soon 2004-05-01 18:55:52 +00:00
Howard Chu
2349373daf Don't allow changes to the monitor database 2004-04-27 12:18:42 +00:00
Pierangelo Masarati
932c79eac5 set schema first, so it can be used, e.g., in ACLs 2004-04-27 12:04:46 +00:00
Howard Chu
9644d6d820 Added readOnly attribute, can be toggled on individual databases. 2004-04-27 01:56:38 +00:00
Pierangelo Masarati
cbe91bccdb typo 2004-04-10 10:13:12 +00:00
Kurt Zeilenga
6daaf88244 Fix typo 2004-04-09 21:13:41 +00:00
Kurt Zeilenga
c7f0438044 bvalue cleanup 2004-04-08 06:49:17 +00:00
Howard Chu
8c6fe48806 More dynamic/static cleanup 2004-04-08 05:58:54 +00:00
Howard Chu
f2e1df3ef7 Consolidated static/dynamic backend switches 2004-04-08 05:56:23 +00:00
Kurt Zeilenga
44725e7303 use BER_BVNULL 2004-04-07 04:11:43 +00:00
Kurt Zeilenga
9a64fdb991 use SLAP_DBFLAGS instead of be->be_flags 2004-04-05 23:42:59 +00:00
Kurt Zeilenga
4122a9dd6a Use SLAP_MONITOR(be) to check flag 2004-04-05 20:24:18 +00:00
Howard Chu
e9188de738 Replaced slap_overinfo.oi_bd with oi_orig. 2004-03-20 12:56:31 +00:00
Pierangelo Masarati
802e3cc069 add labeledURI to back-ldap databases 2004-03-17 22:37:40 +00:00
Pierangelo Masarati
ec6a663820 reset SlapReply flags 2004-03-17 11:50:15 +00:00
Pierangelo Masarati
fc28663a14 seeAlso to overlays as well 2004-03-16 22:18:45 +00:00
Pierangelo Masarati
c76427d8db add overlay subsystem and connect it to databases 2004-03-16 21:58:29 +00:00
Pierangelo Masarati
27f28d5270 handle overlays 2004-03-16 01:22:34 +00:00
Pierangelo Masarati
fa2cb48f3a should fix ITS#2983 - total count of ops initiated/completed in root of operations branch 2004-02-28 14:36:19 +00:00
Kurt Zeilenga
3c598e89fb Happy new year 2004-01-01 19:15:16 +00:00
Luke Howard
516fd0ff50 First round of SLAPI cleanups - use slapi_int_XXX for internal functions
(slapi_x_XXX is still reserved for exported functions that are not part
of the SLAPI specification)
2003-12-16 15:49:31 +00:00
Kurt Zeilenga
fbba83b20f notices and acknowledgements 2003-12-08 17:41:40 +00:00
Howard Chu
0690f79a5a Cleanup unknown config directive handling. 2003-12-07 07:07:00 +00:00
Luke Howard
e114ecbad5 Use gmtime_r()/localtime_r if HAVE_GMTIME_R/HAVE_LOCALTIME_R is defined (need to add autoconf check) 2003-12-06 05:50:47 +00:00
Howard Chu
7b423b20b0 Fix slapi include path 2003-12-01 12:14:39 +00:00
Hallvard Furuseth
51f1b8ccd7 Avoid /* inside comments. 2003-11-29 17:29:44 +00:00
Kurt Zeilenga
0bc23d571e Fix last commit 2003-11-27 06:45:08 +00:00
Kurt Zeilenga
674e71710f Notice and acknowledgements
"this is an altered version" statement
2003-11-27 02:35:20 +00:00
Kurt Zeilenga
e3a4c4ec9c Notice/Acknowledge updates 2003-11-26 02:58:56 +00:00
Kurt Zeilenga
aa225c2c70 Explicitly mark attribute/assertion syntax of values to be normalized 2003-10-18 06:18:05 +00:00
Jong Hyuk Choi
c36f32a9e4 slaptool update for LDAP Sync replication 2003-08-30 15:19:35 +00:00
Howard Chu
aa3b69eb32 ITS#2440 unmunge init_module names 2003-06-12 22:25:20 +00:00
Pierangelo Masarati
412f510868 fix typo; need to port fix in OPENLDAP_REL_ENG_2_2 2003-05-31 22:27:19 +00:00
Kurt Zeilenga
f0063245ad Set schema flags (might need schema check routines as well) 2003-05-31 21:56:18 +00:00
Kurt Zeilenga
c68057f598 Schema registration stuff needs work to set flags 2003-05-31 21:46:33 +00:00
Kurt Zeilenga
7ca24a8591 Another round of minor copyright updates 2003-05-25 03:56:57 +00:00
Hallvard Furuseth
05d7b891ec Move SLAPD_MONITOR_DN out of format strings.
Otherwise slapd would break if SLAPD_MONITOR_DN contained a '%'.
2003-05-20 18:16:45 +00:00
Kurt Zeilenga
60fc6860d2 Fix typo 2003-05-19 18:54:15 +00:00
Pierangelo Masarati
988287d681 do not init schema that's not specific to monitoring 2003-05-18 00:15:28 +00:00
Pierangelo Masarati
072280600a use back-monitor without including core.schema; commit by now; will cleanup later 2003-05-17 17:19:16 +00:00
Pierangelo Masarati
48c65151c9 add create/modify timestamp to all entries; use monitorTimestamp for start/current time; minor cleanup 2003-05-15 01:19:30 +00:00
Hallvard Furuseth
44a99d694e #include <ac/string.h>, to get strlen(), strncmp() and strncasecmp(). 2003-05-14 21:36:34 +00:00
Kurt Zeilenga
5cd994ed21 remove dnNormalize2
replace calls to dnNormalize2 with calls to dnNormalize
2003-04-29 18:28:14 +00:00
Kurt Zeilenga
eebc51b9bf remove dnPretty
rename dnPretty2 to dnPretty
2003-04-29 18:13:10 +00:00
Pierangelo Masarati
1150becd63 use a macro for the entry buffer size 2003-04-18 17:17:18 +00:00
Kurt Zeilenga
cde0999b52 Rename header macro 2003-04-13 04:51:12 +00:00
Pierangelo Masarati
a1b407b44d improve schema 2003-04-12 18:16:05 +00:00
Pierangelo Masarati
be8820d660 HEADS-UP: complete reworking of back-monitor 2003-04-12 17:41:49 +00:00
Kurt Zeilenga
8321227972 Fix OIDs 2003-04-12 17:11:26 +00:00
Pierangelo Masarati
784672d60a disable by default right now 2003-04-12 10:05:12 +00:00
Pierangelo Masarati
74671953ef fix schema definitions (duplicate objectClass OID still there) 2003-04-12 10:02:31 +00:00
Kurt Zeilenga
f4304936d4 Assign experimental OIDs 2003-04-12 03:19:43 +00:00
Pierangelo Masarati
ab47effcfd more cleanup and api rewriting (too tired to do anything better) 2003-04-12 01:17:05 +00:00
Pierangelo Masarati
99ac2cb422 slight improvement 2003-04-12 00:48:16 +00:00
Pierangelo Masarati
576089061d add new schema stuff (no #ifdef, too heavy) 2003-04-12 00:30:47 +00:00
Pierangelo Masarati
29c2594fe4 pass Operation instead of private info 2003-04-11 23:08:16 +00:00
Pierangelo Masarati
465a50cffc fix memory context (hope NULL at init is valid) 2003-04-11 22:30:48 +00:00
Howard Chu
ece7452b05 More memory context tweaks 2003-04-11 01:29:28 +00:00