Commit Graph

4441 Commits

Author SHA1 Message Date
Hallvard Furuseth
d426e40e57 Remove excess `0' arguments to fprintf. 2003-05-15 11:47:42 +00:00
Hallvard Furuseth
592e05e3e1 #include <ac/string.h> to get strcasecmp(). 2003-05-15 11:43:33 +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
Pierangelo Masarati
a004061c0a need starttime before backend db_open() is invoked 2003-05-15 01:12:17 +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
d0f025bd46 updated certificateExactMatch support,
doesn't yet use ctx malloc routines
2003-05-14 20:52:23 +00:00
Howard Chu
4c6888cada ITS#2514 fix NULL deref 2003-05-14 19:30:25 +00:00
Howard Chu
ae9e88a78a ITS#2509 add missing arg for dnNormalize 2003-05-14 13:58:30 +00:00
Howard Chu
b7351c66bc ITS#2511 use %p to log pointer values 2003-05-14 13:54:15 +00:00
Luke Howard
ac7ac5acef Don't crash if attr_find() fails (Howard, you might like to review this) 2003-05-14 07:25:00 +00:00
Luke Howard
eed45f454c Fix content rule validation code -- don't use validation result variable
as an iterator!
2003-05-14 05:29:46 +00:00
Howard Chu
1e49fdc634 ITS#2507, fix *_candidates error return values 2003-05-13 11:39:14 +00:00
Howard Chu
190f161d74 Optimize modify_internal, only reindex the actual modified values, not
the entire attribute.
2003-05-13 03:09:48 +00:00
Howard Chu
9e8bbf129f Fix prev commit, must passthru precomputed scopes 2003-05-13 02:44:22 +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
b6ef8c1876 ITS#2505 - make sr_strings per-op instead of static 2003-05-12 23:57:19 +00:00
Howard Chu
574ca540d4 Revert prev commit 2003-05-11 10:09:51 +00:00
Howard Chu
236321ce9c Plug leak in hdb 2003-05-11 08:42:58 +00:00
Howard Chu
6aa3637545 Added SLAP_TOOL_READMAIN and SLAP_TOOL_READONLY slapMode flags. The rw
arg to tool_entry_open comes too late for back-bdb to use.
2003-05-11 07:03:48 +00:00
Howard Chu
2d22e02ef9 Another idle time tweak 2003-05-11 06:06:22 +00:00
Howard Chu
c84c133c90 Plug mem leak in slapindex 2003-05-10 03:56:01 +00:00
Howard Chu
399572ba50 For ITS#2502 - force release of locks on exiting threads 2003-05-09 22:30:28 +00:00
Jong Hyuk Choi
ca1da5b89a -reenabling LDAP_CACHING 2003-05-09 16:48:50 +00:00
Jong Hyuk Choi
986bcd52a9 -syncUUID search in syncrepl
-test017-syncreplication
2003-05-09 06:50:44 +00:00
Pierangelo Masarati
f2dfb55780 now LDAP_CACHING can be enabled again; not sure it works, though 2003-05-09 00:36:31 +00:00
Jong Hyuk Choi
35d1bd68b9 runqueue restructuring 2003-05-07 23:52:08 +00:00
Jong Hyuk Choi
580ae073e1 runqueue update 2003-05-07 22:29:26 +00:00
Kurt Zeilenga
e64bb13148 minor tweak 2003-05-07 22:22:21 +00:00
Jong Hyuk Choi
45776bff04 a runqueue for periodic thread execution (for syncrepl) 2003-05-07 02:06:01 +00:00
Jong Hyuk Choi
6b0e1b39e5 temporarily disable LDAP_CACHING (till API update) 2003-05-05 16:03:59 +00:00
Luke Howard
8fd23795f8 Don't crash slapi_filter_get_subfilt() if no "any" filter 2003-05-05 10:23:33 +00:00
Luke Howard
1b3007c22c Content rule logic fix 2003-05-05 09:17:10 +00:00
Luke Howard
13f0acfb6a Don't crash if no attributes in slapi_attr_value_find() 2003-05-04 16:59:10 +00:00
Pierangelo Masarati
0864531e58 add network timeout (ITS#2413 reworked) 2003-05-03 11:30:38 +00:00
Luke Howard
83cb1037a4 Fix slapi_filter_join() behavioural bug.
Fix slapi_filter_dup() crasher.

Add slapi_x_filter_append(), as a replacement for slapi_filter_join() that
can create compound filters containing multiple filters. Will propose API
to Sun DS team; until then it should likely be marked LDAP_DEVEL (if SLAPI
is not entirely marked as such already).
2003-05-03 04:15:35 +00:00
Kurt Zeilenga
a82a6d8403 Junk 2003-05-02 22:14:09 +00:00
Kurt Zeilenga
d2840928c6 Remove junk 2003-05-02 22:12:07 +00:00
Jong Hyuk Choi
9543844d39 strdup cleanup 2003-05-02 18:00:33 +00:00
Howard Chu
2d5d4ecffa ITS#2480 uninit'd vars 2003-05-02 13:38:16 +00:00
Hallvard Furuseth
5ee9264465 Fix assignment of <char/int>* to unsigned <char/int>* and vice versa. 2003-05-02 13:29:28 +00:00
Hallvard Furuseth
c5d60fc043 ctrls[] was initialized with which non-constants. 2003-05-02 13:26:25 +00:00
Hallvard Furuseth
a632038df9 Entry *e could be freed uninitialized after goto return_results; 2003-05-02 13:24:44 +00:00
Hallvard Furuseth
c46cd36088 Insert missing %s in printf format to print ldap_err2string(). 2003-05-02 13:13:30 +00:00
Hallvard Furuseth
3420d12bdc Fix printf/Debug format arguments. 2003-05-02 13:08:47 +00:00
Jong Hyuk Choi
e8cd5c2386 - LDAP_SYNCREPL defined in include/ldap.h
- add "updatedn" to the replication specification
- return referral to update to the slave server
2003-05-01 23:39:29 +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
Luke Howard
bb9d3ff304 Fix build breakage 2003-05-01 10:13:46 +00:00
Howard Chu
46e2b97757 ITS#2424 use two SASL contexts per session to conform to RFC 2222 2003-05-01 04:11:57 +00:00
Jong Hyuk Choi
0cafb28e31 syncrepl REFRESH : a master entry modify case fix 2003-05-01 02:14:47 +00:00
Jong Hyuk Choi
b4e8f8f470 comment cleanup 2003-04-30 16:39:40 +00:00
Jong Hyuk Choi
c4f7bcfc56 list of nonpresent entries in syncinfo_t 2003-04-30 16:38:15 +00:00
Jong Hyuk Choi
e08ba25101 syncrepl refresh mode : both scope-in & scope-out working fine 2003-04-30 16:35:23 +00:00
Howard Chu
04c5d82817 Fix prev commit 2003-04-30 16:00:36 +00:00
Howard Chu
4b73446ab5 ITS#2424 reset SASL on an existing connection 2003-04-30 15:38:32 +00:00
Luke Howard
e4779aefc1 A pre-operation plugin is not required to set SLAPI_RESULT_CODE in
order to prevent the operation from being passed to the backend. It
need only return a non-zero error code.
2003-04-30 13:37:14 +00:00
Howard Chu
7e2273b30e Added errmsg arg to lutil_passwd_{check,hash} functions 2003-04-30 07:52:05 +00:00
Howard Chu
cfaf127eaa Log errors from dn2id failures 2003-04-30 07:47:24 +00:00
Howard Chu
35d18d4ab0 Use DB_RMW when deleting dn2id elements 2003-04-30 07:46:58 +00:00
Howard Chu
7e1a91340c Use computed filters to pass in search scope. 2003-04-30 07:46:01 +00:00
Jong Hyuk Choi
030d5a614d - mods memory allocation fix
- persistent syncreplCookie (in syncConsumerSubentry) access becomes reliable
2003-04-30 04:01:25 +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
Jong Hyuk Choi
2fd73195f5 LCUP / SYNC overrides manageDSAit upon calling select_backend() 2003-04-30 02:01:03 +00:00
Jong Hyuk Choi
e885605f21 cleanup 2003-04-29 23:32:58 +00:00
Howard Chu
15b661c5c7 Revert prev commit. It's a symptom that BDB was built incorrectly. 2003-04-29 22:02:24 +00:00
Howard Chu
c066e87e2c Better handling of computed filters 2003-04-29 21:51:23 +00:00
Kurt Zeilenga
231f8464d1 cleanup 2003-04-29 21:14:12 +00:00
Hallvard Furuseth
7e8ff6df6b Implement slapcat -s <dn>: Only dump a subtree of the database. 2003-04-29 20:47:21 +00:00
Howard Chu
b7fd633e8a Fix computed filter inversion 2003-04-29 20:40:26 +00:00
Hallvard Furuseth
fca812e3aa Must have ';' between default: and '}' 2003-04-29 20:12:00 +00:00
Howard Chu
2c1b7e4e7c ITS#2474 default return value 2003-04-29 20:01:51 +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
Jong Hyuk Choi
77b58e69a5 tab cleanup 2003-04-29 17:55:26 +00:00
Hallvard Furuseth
778a38f49c Reduce warnings: Add missing 0 or NULL initializers for struct members. 2003-04-29 16:36:19 +00:00
Hallvard Furuseth
6387a3b6bf #include <ac/string.h>.
Print unsigned long with %lu, not %d.
2003-04-29 15:05:19 +00:00
Hallvard Furuseth
9d9ac9e4d9 #include <ac/string.h>, to get memset() and strlen(). 2003-04-29 15:02:01 +00:00
Hallvard Furuseth
51da53b4b0 Print long with %ld, not %d. 2003-04-29 14:55:36 +00:00
Hallvard Furuseth
46e0ea292b Don't do arithmetic on void pointers. 2003-04-29 14:54:22 +00:00
Hallvard Furuseth
8a2bb1d1cc Declare lap_free_ctrls() and sl_mem_init(). 2003-04-29 14:53:05 +00:00
Howard Chu
2931966ea5 Fix computed TRUE/FALSE filters 2003-04-29 05:58:28 +00:00
Howard Chu
169c7afcdf ITS#2453 - Handle computed filters, ignore Undefined filters. 2003-04-29 02:55:43 +00:00
Howard Chu
792e97790d Handle SLAPD_FILTER_COMPUTED cases 2003-04-29 00:42:54 +00:00
Kurt Zeilenga
a0bcff1630 generic first component matching routines
Need to add specific routines for schema attribute types
2003-04-28 04:41:47 +00:00
Luke Howard
231a7cacf6 Remove unused variables in slapi_filter_test() 2003-04-26 03:28:48 +00:00
Luke Howard
b0e2fd5a8b Don't crash in slapi_send_ldap_search_entry if no attributes specified 2003-04-26 03:28:12 +00:00
Howard Chu
b63bdc6513 Undo BDB const mucking 2003-04-25 13:14:33 +00:00
Howard Chu
e4f1c459c2 ITS#2464 don't strdup NULL DN 2003-04-25 12:44:19 +00:00
Howard Chu
e0f0a40497 ITS#2467 NULL pointer check 2003-04-25 10:27:55 +00:00
Kurt Zeilenga
7bbc903201 fix up nvalues code so that pretty routines work properly
re-add objectClass pretty routines
2003-04-25 02:28:06 +00:00
Kurt Zeilenga
49a4ae59ba Need to pretty assertion values 2003-04-25 01:01:53 +00:00
Kurt Zeilenga
af5f617d2a cleanup 2003-04-25 00:14:54 +00:00
Kurt Zeilenga
519faf22c2 Backout last commit... needs more work 2003-04-24 23:46:12 +00:00
Kurt Zeilenga
3067954616 rework objectClass mucking to use syntax "pretty" routine
(be liberal in what you accept, strict in what you generate)
2003-04-24 23:40:55 +00:00
Kurt Zeilenga
79262c5703 Fix typo 2003-04-24 12:43:30 +00:00
Luke Howard
958942d8e3 Fix potential attr_merge_normalize() crasher 2003-04-24 11:14:57 +00:00
Luke Howard
5178355d27 Fix another crasher in attr_merge_normalize_one() 2003-04-24 10:51:42 +00:00
Luke Howard
03fcb6526d Fix crasher in attr_merge_normalize_one() 2003-04-24 10:40:45 +00:00
Luke Howard
331e627541 When a validate function fails from within a tool, report the offending
attribute
2003-04-24 10:18:05 +00:00
Kurt Zeilenga
65ea6c23c2 New integer syntax / matching routines
A pretty function likely should be added "to be liberal in what we accept"
2003-04-24 05:16:06 +00:00
Jong Hyuk Choi
e9bd75ae9b ber, bv memory cleanup 2003-04-23 16:29:31 +00:00
Howard Chu
2b6f4ff7d0 Fix byte-ordering in bdb_dup_compare 2003-04-23 11:52:22 +00:00
Luke Howard
b1b8d9d651 slapi_dn_normalize() should pretty DN; slapi_dn_normalize_case() should normalize it
(appears to be correct based on iPlanet documentation)
2003-04-23 11:29:11 +00:00
Howard Chu
184f647b25 Change RDN compare funcs, we don't need lexical ordering 2003-04-23 10:26:06 +00:00
Luke Howard
4a51d2457a Use attr_merge_normalize() instead of attr_mergeit()
(Seems to me that attr_mergeit() can be deprecated in favour of the
former -- Howard?)
2003-04-23 09:50:41 +00:00
Howard Chu
02217c9183 Subtree rename support for the cache 2003-04-23 08:46:23 +00:00
Luke Howard
9e3e91e067 Allow search rewriter plugins to also set the search base, scope, and alias
dereference policy
2003-04-23 08:16:05 +00:00
Howard Chu
f4183f1598 Fix multiple inclusion 2003-04-23 07:25:44 +00:00
Luke Howard
ebe2c10994 Fix incorrect usage of slapi_ch_free() 2003-04-23 07:01:56 +00:00
Howard Chu
350b73c2d6 Added back-hdb. Contributed by Howard Chu @ Symas Corp. 2003-04-23 06:54:36 +00:00
Howard Chu
6f461690c1 Function renaming, make internal funcs static, etc. 2003-04-23 06:34:55 +00:00
Luke Howard
bdb3adca39 Fix SLAPI debug message typo 2003-04-23 05:00:00 +00:00
Jong Hyuk Choi
fd3cf2b5ed get_ldapmsg_ber() -> ldap_get_message_ber() 2003-04-22 22:09:25 +00:00
Jong Hyuk Choi
b67a3b9840 Misc cleanup - more to come. 2003-04-22 21:42:14 +00:00
Kurt Zeilenga
a6da45c9c7 Fix typo in last commit 2003-04-22 20:35:41 +00:00
Howard Chu
1745c2478d Missed a bei_rdn in prev commit 2003-04-22 20:35:29 +00:00
Kurt Zeilenga
b9fe2c2fd6 Fix up subtreeSpecification to allow new GSER-based string format
(real validatator needed).
2003-04-22 20:33:08 +00:00
Jong Hyuk Choi
8e12768eed subtreeSpecification syntax change : -binary +validator 2003-04-22 20:08:37 +00:00
Howard Chu
c7d3d42304 Omit bei_rdn field from EntryInfo 2003-04-22 18:59:37 +00:00
Howard Chu
7c39a5e726 filter_candidate tweaks, search_stack tweaks 2003-04-22 18:22:51 +00:00
Jong Hyuk Choi
f97a85db83 more cleanup for the backend API change 2003-04-22 17:59:54 +00:00
Howard Chu
68822b1e15 Trim dead BDB_HIER stuff 2003-04-22 17:06:35 +00:00
Howard Chu
c9f8d7accb Fix args to bdb_cache_modrdn 2003-04-22 17:05:22 +00:00
Jong Hyuk Choi
4d6469f949 subentry cleanup 2003-04-22 17:00:04 +00:00
Howard Chu
1643145b03 Fix multi-line string literals. new GCC complains... 2003-04-22 16:06:29 +00:00
Howard Chu
0afba16b9b Fix id2entry, let bdb_cache_release_all clean up EntryInfos
Fix idl_cache_put
2003-04-22 13:14:06 +00:00
Howard Chu
89127c93d0 Mem context tweaks for bdb_dn2idl 2003-04-22 06:29:13 +00:00
Howard Chu
ee1cddf6fd Fix typo in prev commit 2003-04-22 05:15:50 +00:00
Howard Chu
bd871d710d Moved IDL cache code to standalone functions.
Use IDL cache in bdb_dn2id_children.
2003-04-22 05:14:27 +00:00
Howard Chu
f0577fcb08 Pass parent EntryInfo instead of parent DN to dn2id_add/delete.
Add bdb_cache_children, remove cache flag manipulation from dn2id_children
2003-04-22 04:06:09 +00:00
Kurt Zeilenga
cd66f42f90 cleanup 2003-04-21 19:01:08 +00:00
Kurt Zeilenga
8cc4866fa1 Assign experimental OID to syncReplCookie 2003-04-21 18:57:49 +00:00
Howard Chu
d290145776 memory context tweaks 2003-04-21 18:28:38 +00:00
Howard Chu
e061628ff3 Fix previous commit 2003-04-21 18:09:44 +00:00
Jong Hyuk Choi
86a46c267a OpenLDAP synchronization based replication engine 2003-04-21 14:08:13 +00:00
Jong Hyuk Choi
3efe7398c9 memory API change 2003-04-21 14:01:39 +00:00
Howard Chu
e374c580f2 Perform is_at_subtype check inline 2003-04-21 03:55:20 +00:00
Howard Chu
d8068af892 Fix glue_sub_init realloc disconnect 2003-04-20 09:18:02 +00:00
Pierangelo Masarati
1150becd63 use a macro for the entry buffer size 2003-04-18 17:17:18 +00:00
Pierangelo Masarati
629885a269 use SLAP_PTRCMP 2003-04-18 17:16:48 +00:00
Pierangelo Masarati
6bcbe9ad31 reset passwords before freeindg them 2003-04-18 10:02:43 +00:00
Pierangelo Masarati
7de67df355 ensure all metasingleconns are init'ed 2003-04-18 10:02:00 +00:00
Howard Chu
6fd41cd254 Add shm_key config keyword to use shared memory for BDB environment
Unmeasurable performance difference on my tests, but who knows...
2003-04-18 09:43:22 +00:00
Luke Howard
d4a9e0ece0 Fix crasher when duplicating substring assertions 2003-04-18 08:21:12 +00:00
Howard Chu
6002ad5233 Minor fixes 2003-04-18 07:43:07 +00:00
Luke Howard
c734eaf68a Improve error checking 2003-04-18 07:29:45 +00:00
Howard Chu
7caf3e0952 Fix prev commit, extended search was broken 2003-04-18 05:53:24 +00:00
Luke Howard
86a18c2ea2 Don't pollute op->o_bd in access_allowed() 2003-04-18 04:57:15 +00:00
Howard Chu
3baffe7cf2 Fix undefined filters 2003-04-18 04:44:46 +00:00
Howard Chu
6b524914c5 Fix undefined substring filters 2003-04-18 04:44:06 +00:00
Howard Chu
8d8a52f9d2 ITS#2453, Fix filter candidate generation 2003-04-18 03:36:52 +00:00