Commit Graph

7057 Commits

Author SHA1 Message Date
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
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
Ralf Haferkamp
f9fb5e63f4 silence warning 2005-06-15 18:00:49 +00:00
Howard Chu
60339c7f77 ITS#3777 fix scheme comparison 2005-06-15 03:06:48 +00:00
Howard Chu
4667a44ae6 Fix typo in prev commit 2005-06-13 23:57:30 +00:00
Howard Chu
f84fc983fd ITS#3774 delete backend/overlay structures after a failed add 2005-06-13 22:49:01 +00:00
Pierangelo Masarati
ba8b6bbd88 add delete stuff to all attributes (needed to deelete with "fail_if_no_mapping yes"); passes write test(s) 2005-06-13 22:13:10 +00:00
Pierangelo Masarati
acf5187b2e rework assertion 2005-06-13 22:12:11 +00:00
Pierangelo Masarati
495106c213 fix potential SIGSEGV when backsql_modify_delete_all_values() is used outside backsql_add() 2005-06-13 22:11:41 +00:00
Howard Chu
a4d2c63a61 ITS#3773 additional fix 2005-06-13 21:25:51 +00:00
Howard Chu
6cacc7fb5d ITS#3773 fix RDN comparison 2005-06-13 21:21:27 +00:00
Pierangelo Masarati
e12c4ca230 preemptive time limit check in proxy backends 2005-06-13 19:14:40 +00:00
Howard Chu
63f6e91a97 ITS#3772 fix dependencies for static overlays 2005-06-13 10:24:39 +00:00
Howard Chu
2cc3190c62 ITS#3770 lockf can return either EACCES or EAGAIN 2005-06-11 19:32:03 +00:00
Howard Chu
117b686da4 ITS#3765 don't allocate cache for empty IDLs 2005-06-11 19:12:49 +00:00
Howard Chu
22b9f5f595 Converted openldap.schema to .ldif, added explanatory text 2005-06-11 00:54:32 +00:00
Howard Chu
0dc29f4dd4 Fix prev commit 2005-06-11 00:53:28 +00:00
Howard Chu
4f28194820 Fix modload/modpath, allow either/both to be empty 2005-06-11 00:47:12 +00:00
Howard Chu
8fe7576158 ITS#3764 add signal handlers so slapcat will cleanup if interrupted.
(Just slapcat for now, other tools don't seem to be critical.)
2005-06-10 20:14:32 +00:00
Howard Chu
cd15432de6 More accesslog updates 2005-06-10 11:41:57 +00:00
Howard Chu
257be58eb6 In-directory logging overlay 2005-06-10 09:18:01 +00:00
Howard Chu
62b81c9632 More for prev commit - break from mask_to_verbs when mask has gone to zero 2005-06-09 23:39:18 +00:00
Howard Chu
e42e8d7130 Add op->o_tincr to distinguish ops with same op->o_time. (We should
be preparing to use timestamps with sub-second resolution, really.)
2005-06-09 22:56:35 +00:00
Howard Chu
0658ff91b7 Tweak mask_to_verbs for multiple-bit masks 2005-06-09 22:55:21 +00:00
Howard Chu
884ebf9142 Fix prev commit - slapdn should not start any databases 2005-06-09 20:09:15 +00:00
Howard Chu
2c8b0f7a49 ITS#3621 slaptest should start databases when dryrun is not specified 2005-06-09 19:27:35 +00:00
Howard Chu
782d767c33 ITS#3763 fix typo in slap_timestamp 2005-06-09 18:59:54 +00:00
Pierangelo Masarati
91bdea2817 use "pgsql" instead of "postgres" for consistency with the directory names in servers/slapd/back-sql/rdbms_depend 2005-06-09 11:03:06 +00:00
Pierangelo Masarati
94747a8489 fix previous commit; document aliasing and aliasing quotes configuration 2005-06-09 09:45:02 +00:00
Pierangelo Masarati
e52d5cb812 make aliasing and aliasing quotes configurable 2005-06-09 09:43:20 +00:00
Howard Chu
58e8817fc1 ITS#3760 don't select on uninit'd writefds 2005-06-09 08:19:05 +00:00
Howard Chu
caefdf007c Fix dynamic modload, make sure to use correct modulepath. 2005-06-09 07:15:49 +00:00
Howard Chu
21b8be393a Add slap_timestamp(), use mutex in slap_get_csn() 2005-06-07 04:12:14 +00:00
Howard Chu
3bae4b4acb ITS#3691 import auditlog overlay 2005-06-07 03:03:18 +00:00
Pierangelo Masarati
ea85bcadfc remove #defines moved to frontend 2005-06-05 22:58:18 +00:00
Howard Chu
8f58409749 Add SLAP_MOD_INTERNAL flag to Modifications, allow internal ops to bypass
ACL checks when modifying user-modifiable attributes as non-root user.
2005-06-04 09:44:39 +00:00
Kurt Zeilenga
43ffb3f235 Fix -ULDAP_DEVEL build 2005-06-03 22:13:27 +00:00
Kurt Zeilenga
da9732a766 fix -ULDAP_DEVEL compile 2005-06-03 21:52:54 +00:00
Kurt Zeilenga
8ef743309b Place manageDIT behind LDAP_DEVEL (not for initial 2.3 release) 2005-06-03 20:54:06 +00:00
Kurt Zeilenga
8297b0b9df ITS:3749: Extend manageDIT support to LDBM. 2005-06-03 17:24:31 +00:00
Howard Chu
ef3989aba8 ITS#3748 fix startup of newly added databases and overlays 2005-06-03 08:26:55 +00:00
Pierangelo Masarati
4d58c2f39f fix previous commit 2005-06-01 19:36:58 +00:00
Pierangelo Masarati
3751f0325d work around syncprov interoperation issues; minor cleanup 2005-06-01 19:35:13 +00:00
Pierangelo Masarati
6434721e42 fix improper use of "fail_if_no_mapping" flag: fail in case of error, don't fail only if mapping is not present 2005-06-01 16:51:36 +00:00
Pierangelo Masarati
4914ea313d fix ITS#3753 2005-05-30 14:49:47 +00:00
Pierangelo Masarati
36c5fe1991 don't leave dangling pointers; pass entry when sending referrals 2005-05-30 12:37:24 +00:00
Pierangelo Masarati
b30b82a65a do not return spurious result codes 2005-05-30 12:36:21 +00:00
Pierangelo Masarati
00c6709896 expose macro(s) to produce string representations of arbitrary precision counters 2005-05-28 14:30:43 +00:00
Howard Chu
b6d515330c ITS#3748 do necessary startup when adding databases online 2005-05-26 09:43:39 +00:00
Pierangelo Masarati
47daec07d5 fix previous commit :) 2005-05-25 12:05:39 +00:00
Pierangelo Masarati
1b9c9577c2 invalidate cached connections if URI changed 2005-05-25 11:54:19 +00:00
Howard Chu
d7745c17d4 Use "pcache" to invoke the overlay instead of "proxycache" 2005-05-24 17:13:37 +00:00
Howard Chu
5f5356567e ITS#3747 move subschemasubentry attr initialization 2005-05-24 17:06:33 +00:00
Pierangelo Masarati
2f0d712492 exit on error 2005-05-23 21:59:14 +00:00
Pierangelo Masarati
3a9fd69747 handle "dn=*" <what> clause 2005-05-23 20:29:01 +00:00
Pierangelo Masarati
672c39024e further fixing of back-ldap config; added enum_to_verb call to ease mapping enumerations to strings... 2005-05-23 14:14:34 +00:00
Howard Chu
bf110af723 Fix slap_verbmask 2005-05-23 12:56:14 +00:00
Pierangelo Masarati
fc148e8e54 fix interaction with table-driven config of back-ldap (please review) 2005-05-23 07:25:45 +00:00
Pierangelo Masarati
a7f44159c1 complete back-config support, including chain overlay; passes all tests; HEADS-UP: few syntax changes (essentially backwards compatible) 2005-05-23 07:25:00 +00:00