Commit Graph

7252 Commits

Author SHA1 Message Date
Pierangelo Masarati
499906f464 use appropriate format when no arbitrary precision library is available 2005-07-19 19:31:24 +00:00
Pierangelo Masarati
c4aedadc56 improve previous commit 2005-07-19 19:13:50 +00:00
Pierangelo Masarati
b838f3e2a1 Solaris doesn't like being passed NULL pointers to [vsf[n]]printf 2005-07-19 18:59:50 +00:00
Pierangelo Masarati
ac590d6b55 fix previous commit 2005-07-19 18:03:06 +00:00
Luke Howard
7bd627d491 Reenable pre-result plugins, these were supported in OpenLDAP 2.2
Pre-entry and pre-referral plugins will be enabled after testing
2005-07-19 15:39:25 +00:00
Luke Howard
04e499e28c back out previous commit, fat fingers 2005-07-19 15:36:24 +00:00
Luke Howard
2d7a2144dc result.c 2005-07-19 15:35:00 +00:00
Pierangelo Masarati
551dab0d03 more cleanup 2005-07-19 15:13:32 +00:00
Pierangelo Masarati
0f18805d65 Memory cleanup 2005-07-19 14:39:43 +00:00
Pierangelo Masarati
be1a5057a9 ObjectClass cleanup 2005-07-19 14:39:19 +00:00
Pierangelo Masarati
16934eb8ef cleanup 2005-07-19 14:38:55 +00:00
Pierangelo Masarati
707082fcb7 AttributeType cleanup 2005-07-19 14:38:34 +00:00
Pierangelo Masarati
c5c0c3e4f5 fix previous commit (ITS#3871) 2005-07-19 14:25:10 +00:00
Pierangelo Masarati
882f43bf01 more about rewrite leaks 2005-07-19 14:24:26 +00:00
Pierangelo Masarati
efe74fbae0 fix yet another leak 2005-07-19 11:16:24 +00:00
Luke Howard
c8ef1e1861 Always set sml_desc when converting from LDAPMods 2005-07-19 09:37:36 +00:00
Luke Howard
0acd5d97bd Check op->o_bd != NULL 2005-07-19 08:40:26 +00:00
Luke Howard
4832af0a50 Fix callback API for cast safety
Copy controls returned by backend to pblock before they go out of scope
2005-07-19 08:39:56 +00:00
Luke Howard
6f5dde0734 Fix pointer error in readback control 2005-07-19 08:39:05 +00:00
Luke Howard
2007c4b8b9 Add slap_parse_ctrl() API for parsing already decoded controls; needed
for SLAPI internal operations to use controls
2005-07-19 08:38:46 +00:00
Luke Howard
5eda803bc1 Add slapi_x_filter_set_attribute_type() API 2005-07-19 06:55:56 +00:00
Luke Howard
9e9c4b5397 Implement more of SLAPI 5.x - all SLAPI internal operations now take pblocks
as the canonical argument (wrappers for old APIs are provided)
2005-07-19 06:48:45 +00:00
Luke Howard
07ffdd8893 Associate global plugins with frontendDB
When unparsing plugin configuration, don't crash if no arguments
(dynamically registered plugins such as computed attributes don't
have arg vectors)
2005-07-19 06:47:43 +00:00
Luke Howard
ed424c55ee Support for pre-entry, pre-result, pre-referral SLAPI plugins (not
enabled yet; behind #ifdef notdef)
2005-07-19 06:46:53 +00:00
Luke Howard
7de0268c98 Global plugins are now associated with frontendDB 2005-07-19 06:46:14 +00:00
Luke Howard
979e64d0f0 The order of uidNumber and gidNumber was swapped in revision 1.331,
which breaks existing ACLs. This patch restores the old behaviour.
2005-07-19 06:45:57 +00:00
Hallvard Furuseth
9d5308163c assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL). 2005-07-19 05:03:12 +00:00
Howard Chu
c8bffb5584 Fix bdb_tool_dn2id_get() - nobody should be calling bdb_dn2id() directly,
always call through the cache instead - bdb_cache_find_ndn().
2005-07-19 02:12:34 +00:00
Luke Howard
c09550766b Fix another crasher if parent is NULL 2005-07-19 01:37:48 +00:00
Luke Howard
da758bb150 Fix crasher in hdb_dn2id() when parent is NULL 2005-07-19 01:32:29 +00:00
Pierangelo Masarati
54a0c02c3d implement per-target, per-operation timeouts 2005-07-19 00:43:38 +00:00
Pierangelo Masarati
1100973301 trim unused (wrong) code 2005-07-19 00:30:34 +00:00
Pierangelo Masarati
51346cfa68 fix ITS#3862 2005-07-18 21:32:31 +00:00
Luke Howard
ee2c377d08 Fix for previous commit 2005-07-18 14:11:55 +00:00
Luke Howard
cfbb52459b Fix pointer error 2005-07-18 14:09:47 +00:00
Hallvard Furuseth
965c270cbb Fix format arg to "overlay...configuration failed" message 2005-07-18 08:30:33 +00:00
Hallvard Furuseth
df0e227201 Remove spurious snprintf(..., "<%s> cannot be deleted") lacking a format arg 2005-07-18 08:28:25 +00:00
Hallvard Furuseth
2b70a083e6 Delete unused variable. 2005-07-18 06:30:47 +00:00
Hallvard Furuseth
03c85cc68d send_ldap_controls() returns int, so fix return LBER_ERROR to -1. 2005-07-18 06:28:28 +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
Hallvard Furuseth
c2b65937fe Fix cast in BDB_ID2DISK(): unsigned char *_p ... = (char *)...; 2005-07-18 05:58:43 +00:00
Hallvard Furuseth
ae3ef7b3cd Make ConfigArgs.lineno int like elsewhere instead of unsigned long 2005-07-18 05:48:21 +00:00
Hallvard Furuseth
8adef9eec8 Delete unused variables 2005-07-18 05:34:04 +00:00
Hallvard Furuseth
f43a823c73 Add missing "static" for functions declared static but defined non-static 2005-07-18 05:14:41 +00:00
Hallvard Furuseth
11ab0b655e strip_cav_tag() should return ber_tag_t, not int 2005-07-18 05:11:11 +00:00
Hallvard Furuseth
64e9d0e58f #include <ldif.h> for ldif_must_b64_encode_*() 2005-07-18 05:08:57 +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
Hallvard Furuseth
ec4d6d0d69 Remove spurious printf argument 2005-07-17 12:17:54 +00:00
Hallvard Furuseth
ecef4972fe rc in glue_tool_entry_put() is an int, not NOID (unsigned long). 2005-07-17 12:14:42 +00:00
Hallvard Furuseth
ca615a4b3a bvlist *list was updated through the wrong type. 2005-07-17 12:08:32 +00:00
Hallvard Furuseth
0cc537e6f1 Declare ldap_back_init_cf(). 2005-07-17 12:06:09 +00:00
Hallvard Furuseth
98a303fca9 Remove spurious fprintf arguments 2005-07-17 11:55:34 +00:00
Pierangelo Masarati
03b6a692aa trim (long ago) unused files 2005-07-16 16:06:34 +00:00
Pierangelo Masarati
1e5334eb80 mark leak 2005-07-16 15:41:39 +00:00
Pierangelo Masarati
7fb778e522 fix leak 2005-07-16 15:40:14 +00:00
Pierangelo Masarati
7236c4b223 improve diagnostics when configuring suffix for special databases 2005-07-15 16:21:15 +00:00
Howard Chu
f8173c6e8a ITS#3841 fix test in rev 1.220 2005-07-15 01:17:35 +00:00
Pierangelo Masarati
5cb994ad36 fix memory leak (ITS#3862) 2005-07-15 01:08:34 +00:00
Hallvard Furuseth
885c73d02f struct slab_heap *sh was accessed through the wrong type 2005-07-14 21:57:25 +00:00
Hallvard Furuseth
0d06b7334e Make ebuf/ecur char* instead of unsigned char* (which they are never used as) 2005-07-14 21:02:59 +00:00
Hallvard Furuseth
d6cc947561 Silence "unused <something>" warnings 2005-07-14 19:52:08 +00:00
Hallvard Furuseth
8dddff803e Silence "unused variable" warning 2005-07-14 19:35:09 +00:00
Hallvard Furuseth
7ab3d2c245 Silence warnings 2005-07-14 19:32:21 +00:00
Hallvard Furuseth
3fd6f18d25 Silence "unused static function" warning 2005-07-14 19:20:52 +00:00
Hallvard Furuseth
d449c9d08b Silence "unused variable" warnings 2005-07-14 19:18:55 +00:00
Pierangelo Masarati
395207029b need a regular file (ITS#3865) 2005-07-14 18:03:29 +00:00
Hallvard Furuseth
ae385b3af0 Silence "empty statement" warnings 2005-07-14 03:06:58 +00:00
Pierangelo Masarati
684860502e should address ITS#3861 2005-07-13 17:43:30 +00:00
Howard Chu
675b19dce6 Fix loglevel to accept negative integers 2005-07-12 14:25:15 +00:00
Howard Chu
08ec8ad068 Fix SLAP_SOCK_IS_MUTE typo 2005-07-12 14:19:57 +00:00
Howard Chu
0b93bfc4f3 ITS#3854 fix Modify logging, add handlers for unrecognized ops. 2005-07-12 14:00:01 +00:00
Howard Chu
fbbfac6771 ITS#3857 fix bottom-up modrdn cascades, use a global modrdn counter. 2005-07-12 13:17:56 +00:00
Kurt Zeilenga
8d365728fc Schema cleanup 2005-07-11 19:20:36 +00:00
Hallvard Furuseth
d5685734d2 retcode_op_func(): Fix uninitialized variable 'ref':
Under rs->sr_err == LDAP_REFERRAL, return LDAP_OTHER "bad referral
object" if both rdi->rdi_ref and default_referral are NULL.
2005-07-11 19:09:30 +00:00
Hallvard Furuseth
62b653fa85 Declare component matching functions 2005-07-11 19:06:10 +00:00
Hallvard Furuseth
da1c57ff3e Add missing function declarations in config.h 2005-07-11 19:03:27 +00:00
Hallvard Furuseth
ba5305eea4 fp_parse_line():
* More slapd.conf-keywords with passwords to log as "<keyword> ***":
  "syncrepl" (in slapd), "acl-bind", "acl-method", "idassert-bind"
  (in back-ldap), "acl-passwd" (in back-<ldap/meta>).
* When no tokens, i = -1 initialization caused out-of-bounds access.
* Handle initial argc == argv_size (e.g. 0).
2005-07-11 18:56:50 +00:00
Howard Chu
0f2f4f3196 ITS#3841 skip db_close if db_open was never called 2005-07-11 17:12:43 +00:00
Howard Chu
5d2ba11ad9 ITS#3847 silence warnings 2005-07-11 12:11:15 +00:00
Howard Chu
3d6fb19006 ITS#3824 remove env after slapadd/slapindex -q 2005-07-11 10:27:59 +00:00
Hallvard Furuseth
26ea01e67e goto loop_begin; skipped initialization of scopeok. 2005-07-10 16:14:28 +00:00
Hallvard Furuseth
ac7513155b fbuf in syncprov_findcsn() got used before it was fully filled in 2005-07-10 10:20:21 +00:00
Howard Chu
b131aab00e Streamline call to lutil_passwd_scheme 2005-07-08 06:05:02 +00:00
Howard Chu
46fab05997 ITS#3846 don't give hashed passwords to SASL, it only wants cleartext. 2005-07-08 06:02:00 +00:00
Howard Chu
532da5699c ITS#3844 fix typo 2005-07-08 04:57:17 +00:00
Hallvard Furuseth
b1f5e9258a Complete the replacement of LDAP_CONTROL_X_TREE_DELETE with
SLAP_CONTROL_X_TREE_DELETE, which is only defiend when LDAP_DEVEL.
back-sql triggered an assert(0): It expected the control to be supported.
2005-07-07 20:36:37 +00:00
Howard Chu
d518a76b35 ITS#3844 fix slap_operational_subschemaSubentry 2005-07-07 17:39:29 +00:00
Howard Chu
00dae75f7b ITS#3842 from jtownsend@opendarwin.org - don't free slap_listeners until
after connection_shutdown().
2005-07-07 04:21:53 +00:00
Howard Chu
11a1349366 ITS#3843 from jtownsend@opendarwin.org: hide index_attrs / index_dummy 2005-07-07 03:51:43 +00:00
Hallvard Furuseth
f841c364eb Format fixes (%d<->%lu etc) 2005-07-06 05:53:02 +00:00
Pierangelo Masarati
61312e7989 fix ITS#3834 2005-07-05 12:05:47 +00:00
Pierangelo Masarati
deec44b89a fix further ITS#3830 issues; allow to specify a matching rule for non-DN match 2005-07-05 12:00:14 +00:00
Ralf Haferkamp
54fa643a9b fix previous commit (check for co_type==Cft_Overlay before calling
overlay_destroy_one)
2005-07-05 11:46:55 +00:00
Ralf Haferkamp
7027609818 Destroy Backend/Overlay after an error happend during one of the
config_parse_add() calls, as backend_db_init() might have been called.
2005-07-05 11:17:25 +00:00
Howard Chu
3232686cc1 ITS#3833 assume environment was already recovered by an external action
if it's missing, just succeed in this case.
2005-07-05 02:40:01 +00:00
Pierangelo Masarati
754a059951 fix concurrency issues 2005-07-04 22:41:54 +00:00
Pierangelo Masarati
681a547e13 fix potential deadlock 2005-07-04 22:41:27 +00:00
Pierangelo Masarati
a0d8a981ac address ITS#3831 (mostly code readability) 2005-07-04 16:34:42 +00:00
Hallvard Furuseth
a1e27aae40 Format fix: Make style_strings[] global for debug output in dynacl_aci_parse() 2005-07-04 06:25:02 +00:00
Hallvard Furuseth
40c91251e6 Debug output: printed soc_cname, should be soc_cname.bv_val 2005-07-04 06:05:04 +00:00
Hallvard Furuseth
430fdb7a1c isspace() needs <ac/ctype.h> 2005-07-04 05:56:45 +00:00
Hallvard Furuseth
8a696d21b2 Format fixes (%d<->%lu etc) 2005-07-04 05:29:12 +00:00
Hallvard Furuseth
e35ffd471b Cast away const 2005-07-04 05:24:00 +00:00
Hallvard Furuseth
b746066b9b Let bdb_attr_index_unparser() return int (0) instead of void; the return
value of an AVL_APPLY function is significant.
2005-07-04 05:21:39 +00:00
Hallvard Furuseth
cc0d91716e Don't do pointer arithmetic on void* 2005-07-04 05:18:01 +00:00
Pierangelo Masarati
9146b262ad fix potential deadlock; first round of refcnt for connections 2005-07-03 23:28:35 +00:00
Pierangelo Masarati
982981d465 fix potential deadlock; improve idassert in case of authzFrom rules (new flag values); rootdn can always idassert 2005-07-03 23:27:56 +00:00
Howard Chu
9c246fce39 ITS#3830, fix val-specific ACLs 2005-07-03 01:51:35 +00:00
Howard Chu
7cb7bc3341 ITS#3829 fix attributeoptions parse order 2005-07-02 10:54:09 +00:00
Pierangelo Masarati
d576364089 more checks (ITS#3817) 2005-07-01 09:53:20 +00:00
Pierangelo Masarati
b42207d048 don't use missing hooks (ITS#3817) 2005-07-01 09:25:55 +00:00
Howard Chu
b3655504a7 Tweak prev commit 2005-07-01 02:18:10 +00:00
Howard Chu
17a4215256 ITS#3815 fix olcDbConfig parsing 2005-07-01 02:08:14 +00:00
Howard Chu
9ec474db25 ITS#3793 don't init thread pool in tool mode 2005-07-01 01:36:49 +00:00
Howard Chu
21e49339b7 ITS#3820 fix olcReadOnly check 2005-07-01 00:20:54 +00:00
Howard Chu
c384e2ed13 HDB needs its own config objectclass to avoid confusion when parsing the
config db
2005-07-01 00:17:51 +00:00
Howard Chu
4a107089d8 ITS#3818 fix index_substr_any_step keyword 2005-06-30 23:24:48 +00:00
Howard Chu
6236574efc ITS#3456 better fix, use a child thread. 2005-06-30 04:06:40 +00:00
Howard Chu
0e00a1af79 ITS#3456 - omit FIND_MAXCSN call from syncprov_db_open. Will probably
delete all associated code soon; since the maxcsn will be updated as
soon as any write op occurs, it's no big deal for this to be out of date.
Also, since the maxcsn will get checkpointed on close, it will only get
out of date on an actual slapd crash, which is hopefully too rare to
worry about.
2005-06-30 03:42:51 +00:00
Pierangelo Masarati
1aaa18b180 more on ITS#3808 2005-06-29 18:16:29 +00:00
Pierangelo Masarati
9e811df052 seems to definitely fix issues related to ITS#3808 2005-06-29 16:38:09 +00:00
Pierangelo Masarati
cbe9c74675 return LDAP_SUCCESS if Start TLS failed but was not critical 2005-06-29 12:38:18 +00:00
Pierangelo Masarati
5ae22791ab hardcode normalized instead of funky DN form 2005-06-29 12:37:28 +00:00
Pierangelo Masarati
671b02f748 more on ITS#3808 2005-06-29 12:28:40 +00:00
Pierangelo Masarati
196af0e056 (partial?) fix ITS#3808 2005-06-29 11:44:11 +00:00
Pierangelo Masarati
ba0f3112c4 add "matchedDN" field when appropriate 2005-06-28 23:22:48 +00:00
Pierangelo Masarati
904d86a28a better fix to ITS#3806 2005-06-28 22:06:24 +00:00
Pierangelo Masarati
7df9b6f5a8 fix spaces in DN-valued attrs (ITS#3806) 2005-06-28 19:23:46 +00:00
Pierangelo Masarati
b00f3fa77f fix ITS#3805 2005-06-28 15:58:33 +00:00
Howard Chu
52165180f7 ITS#3796 fix IDL cache lock setup/teardown 2005-06-28 00:43:41 +00:00
Pierangelo Masarati
297c7933b1 add "onerr" flag 2005-06-25 15:13:44 +00:00
Pierangelo Masarati
aa16988d3c don't try to lookup the rootdn; handle errors separately 2005-06-25 15:05:02 +00:00
Howard Chu
7b245a0a55 Fix entry writing, truncate file if rewriting. 2005-06-25 14:15:11 +00:00
Kurt Zeilenga
e3c59d222c Rework substring error checking 2005-06-21 00:38:55 +00:00
Pierangelo Masarati
f7541b5e8d cleanup 2005-06-19 22:43:45 +00:00
Pierangelo Masarati
fddeed7903 add support for connection_init/destroy and retcode overlay 2005-06-19 22:42:12 +00:00
Pierangelo Masarati
9f2faed566 add support for connection_init/destroy 2005-06-19 22:41:49 +00:00
Pierangelo Masarati
b836fc3ea2 first round of provisions for back-config 2005-06-19 22:41:12 +00:00
Pierangelo Masarati
f86daac8c8 import retcode overlay 2005-06-19 22:39:44 +00:00
Pierangelo Masarati
3172222266 cleanup of previous commit 2005-06-18 18:59:04 +00:00
Pierangelo Masarati
595d41b421 cleanup 2005-06-18 18:57:46 +00:00
Howard Chu
143635437a ITS#3549 don't queue Unbind requests 2005-06-18 09:06:12 +00:00
Pierangelo Masarati
2abaf7bf66 fix ITS#3788: don't free slapo-rwm callback, rather reuse it 2005-06-16 23:08:23 +00:00
Pierangelo Masarati
789717fee5 fix ITS#3784 2005-06-16 20:01:41 +00:00
Pierangelo Masarati
c7c572f883 fix ITS#3785: do our best to deal with invalid filters... 2005-06-16 19:27:03 +00:00
Pierangelo Masarati
7fdcd2ec60 fix ITS#3785: do our best to deal with invalid filters... 2005-06-16 19:19:11 +00:00
Kurt Zeilenga
b703938d61 symbol rename for AIX (ITS#3787) 2005-06-16 19:17:38 +00:00
Luke Howard
f90800667d Fix OpenLDAP ITS#3782 - broken logic in bitwise matching rules 2005-06-16 05:31:24 +00:00
Howard Chu
b6aa697000 ITS#3779 fix pwdLockoutDuration handling 2005-06-15 21:21:12 +00:00