Commit Graph

7198 Commits

Author SHA1 Message Date
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
Pierangelo Masarati
0873f03b39 don't unparse starttls field in slap_bindconf if default 2005-05-23 07:23:46 +00:00
Pierangelo Masarati
e73e9ddd7c allow LDAP_AUTH_NONE 2005-05-23 07:22:32 +00:00
Pierangelo Masarati
c573fe70fb authid-rewrite*: fix parsing, rework unparsing 2005-05-23 07:21:58 +00:00
Pierangelo Masarati
950c9a78a1 try to propagate cf info; required, e.g. by translucent overlay and more (please review) 2005-05-23 07:20:49 +00:00
Pierangelo Masarati
da2a26d19f first round of back-config support; need to #define LDAP_BACK_BCONFIG; no support for rewrite and so, still stuff to fix. Doesn't pass most of the tests 2005-05-21 19:07:14 +00:00
Pierangelo Masarati
8ff019ad83 minor cleanup 2005-05-21 15:01:44 +00:00
Pierangelo Masarati
f505aec4bc publish updateref... 2005-05-21 14:54:11 +00:00
Pierangelo Masarati
be53e82650 fix entry DN free 2005-05-21 14:53:05 +00:00
Pierangelo Masarati
546cba035c add comment on slap_dummy_bv 2005-05-21 14:51:37 +00:00
Pierangelo Masarati
58abc661f6 "restrict" is a c99 keyword (ITS#3739) 2005-05-21 00:15:16 +00:00
Pierangelo Masarati
e799b27eed ISO C forbids zero-size array (ITS#3739) 2005-05-21 00:08:28 +00:00
Pierangelo Masarati
7b0d820ce5 minor cleanup 2005-05-20 23:36:23 +00:00
Pierangelo Masarati
5f361f31b3 initialize AttributeName structures; allow '*' attribute set (related to ITS#3741) 2005-05-20 23:27:42 +00:00
Howard Chu
3801ba6435 ITS#3731 catch another BDB error leaking out to the frontend 2005-05-18 04:41:24 +00:00
Kurt Zeilenga
872b0a09fd ITS#3725 fix 2005-05-14 18:52:15 +00:00
Kurt Zeilenga
812efa5723 Allow no-user-modification attributes to be managed.
Need to fix the slap_mods_opattrs() clobber.
2005-05-14 06:40:50 +00:00
Kurt Zeilenga
18c3f9e093 Add manage obsolete attributes capability. 2005-05-13 23:51:43 +00:00
Kurt Zeilenga
31727f0f4d Additional manageDIT changes.
Now require be_isroot() instead of "manage".
2005-05-13 21:09:26 +00:00
Pierangelo Masarati
d508114a9e improve fix 2005-05-13 20:27:12 +00:00
Pierangelo Masarati
6868323e17 fix ACL_PRIV_MASK for manage 2005-05-13 19:29:38 +00:00
Pierangelo Masarati
6bd4ef7667 fix cleanup in case of error 2005-05-13 19:08:41 +00:00
Kurt Zeilenga
feeeabcd68 manageDIT framework and obsolete objectclasses/DIT-content-rule override 2005-05-13 19:07:31 +00:00
Kurt Zeilenga
002f7ca062 finish global_schemacheck removal 2005-05-13 17:35:36 +00:00
Pierangelo Masarati
46387a12a9 fix sizelimit interaction with glue overlay (ITS#3724) 2005-05-13 13:10:33 +00:00
Howard Chu
dfaffea154 LDIF include must use a file URL 2005-05-13 09:56:17 +00:00
Pierangelo Masarati
96773427db don't bother about slap_dummy_bv 2005-05-13 09:06:28 +00:00
Pierangelo Masarati
cf31d48665 don't free officially dummy values 2005-05-13 08:50:10 +00:00
Kurt Zeilenga
d1143204b2 Add parsing for manageDIT control. 2005-05-13 08:22:08 +00:00
Kurt Zeilenga
2544a320b9 extend manageDIT test cases (now just need to find time
to implement this)
2005-05-13 06:43:06 +00:00
Kurt Zeilenga
cfb3f81582 Control cleanup 2005-05-13 02:34:16 +00:00
Howard Chu
55585110bf ITS#3608 - ignore unavailable non-critical controls 2005-05-13 01:35:20 +00:00
Howard Chu
bfe9ba5b0b Fix parseSearchOptions 2005-05-13 01:33:22 +00:00
Howard Chu
8223663865 Fix typo 2005-05-12 23:38:59 +00:00
Pierangelo Masarati
c4cfe03619 fix sizelimit bug (ITS#3720) 2005-05-12 22:37:56 +00:00
Howard Chu
25877b0d23 Sample LDIF slapd configuration 2005-05-12 03:53:02 +00:00
Howard Chu
70ebcc6305 core.schema converted to LDIF 2005-05-12 03:31:52 +00:00
Howard Chu
923bea9e14 Fix attribute sorting 2005-05-12 03:24:49 +00:00
Howard Chu
37ed2af7e7 Fix for slapadd'ing a config db 2005-05-12 03:24:34 +00:00
Howard Chu
c225c4af34 Updated ldif_read_record to support LDIF include: directive 2005-05-12 00:46:39 +00:00
Pierangelo Masarati
3ce45e11bb fix and strengthen the structural objectClass test 2005-05-12 00:43:29 +00:00
Pierangelo Masarati
740835dff9 remove global_schemacheck 2005-05-12 00:03:50 +00:00
Kurt Zeilenga
bb49be254a Never publish:
supportedLDAPversion: 2
2005-05-11 22:40:50 +00:00
Kurt Zeilenga
c83f7539ae Mostly remove global_schemacheck. More cleanup needed in
bconfig.c and back-sql.
2005-05-11 22:24:18 +00:00
Howard Chu
376537f3d7 ITS#3577 Make librewrite shared - > liblrewrite.la 2005-05-11 10:18:27 +00:00
Pierangelo Masarati
1c8a9fdbeb remove cruft 2005-05-11 08:41:35 +00:00
Pierangelo Masarati
f9e17b539a remove obsolete tests 2005-05-11 08:39:39 +00:00
Howard Chu
c79ecbb390 Add LDAP_DEBUG_SYNC loglevel 2005-05-10 20:42:39 +00:00
Howard Chu
e165806e25 Fix typo, use dn.base instead of dn.exact in unparse 2005-05-10 01:16:21 +00:00
Howard Chu
f19a4ea9ec More value ACL style tweaks 2005-05-10 00:51:28 +00:00
Howard Chu
29a37854bf Fix acl_unparse - add missing style specifiers 2005-05-10 00:32:43 +00:00
Kurt Zeilenga
ccbf18b7d0 Don't split description across multiple values. 2005-05-09 19:07:42 +00:00
Howard Chu
f2e62ea04c Fix (temporary) crash on ldbm 2005-05-09 11:20:24 +00:00
Howard Chu
b8bfb044d1 Add comments for config_overlay 2005-05-09 10:41:05 +00:00
Howard Chu
1d283c2154 More fixes for overlay support. Converted pcache to config table. 2005-05-09 10:33:43 +00:00
Howard Chu
cfccf68bf6 Fix debug msg 2005-05-09 10:33:01 +00:00
Pierangelo Masarati
fd52d607b0 don't compare freed pointers (no harm) 2005-05-09 09:32:44 +00:00
Howard Chu
41127de6bf Fix prev commit, extra objectclass table 2005-05-09 05:14:59 +00:00
Howard Chu
048a36a60f Fix prev commit, trim unused cfOC vars 2005-05-09 05:02:23 +00:00
Howard Chu
bd63507868 Table-driven config 2005-05-09 05:02:01 +00:00
Howard Chu
ee59484f7b Restructured to allow miscellaneous Adds under database/overlay objects 2005-05-09 03:42:51 +00:00
Howard Chu
f8bba201f4 More for error propagation 2005-05-09 01:20:03 +00:00
Howard Chu
179032ffe2 Explicitly set LTONLY_MOD for shared overlays 2005-05-09 00:13:47 +00:00
Howard Chu
a1570f9185 NUL at end of entry not needed any more 2005-05-08 01:12:01 +00:00
Howard Chu
086ab17a8b Delete unused entry_lenlen code 2005-05-08 00:52:24 +00:00
Howard Chu
a740c83208 Macro fix, again 2005-05-08 00:47:14 +00:00
Howard Chu
b5ed840a17 Fix bad macro interaction in prev commit 2005-05-08 00:45:58 +00:00
Howard Chu
f597e7651b Simplify static build 2005-05-07 23:14:57 +00:00
Pierangelo Masarati
e6e80d00f1 don't leave consts around 2005-05-07 10:52:05 +00:00
Howard Chu
f82e2cbf39 Make entry_encode/decode independent of slapd structure sizes 2005-05-06 21:24:49 +00:00
Pierangelo Masarati
54de0cbffc use appropriate log level if bailing out; need to use Debug() instead fprintf( stderr ) in many places... 2005-05-06 20:36:59 +00:00
Howard Chu
6d7b27fcca Propagate config errors back to caller. 2005-05-06 20:20:45 +00:00
Pierangelo Masarati
dde3f1ad3f cleanup ident string 2005-05-06 17:11:40 +00:00
Pierangelo Masarati
d23243a507 more on strict config parsing (ITS#3705) 2005-05-06 16:42:03 +00:00
Pierangelo Masarati
5ad7133202 add support for "subordinate" scope 2005-05-06 10:21:00 +00:00
Howard Chu
f101ea70cc Fix prev commit 2005-05-06 09:52:42 +00:00
Howard Chu
6b47c11e2f Fix undefined attributetype initializer 2005-05-06 09:47:18 +00:00
Howard Chu
26eee89841 ITS#3710 add missing space 2005-05-06 05:14:02 +00:00
Howard Chu
54eb6f539c Remove redundant def 2005-05-06 01:45:44 +00:00
Howard Chu
c5b355bacb Fix Windows export setup 2005-05-06 01:45:05 +00:00
Howard Chu
86b7448a47 More for ITS#3681 2005-05-06 00:39:25 +00:00
Howard Chu
f4a69f1e8a Fix backends.o dependencies 2005-05-06 00:14:36 +00:00
Howard Chu
9b045fa734 Fix for WIN32 mkdir 2005-05-06 00:02:26 +00:00
Howard Chu
0079690f8f ITS#3681 separate static from dynamic overlays 2005-05-05 22:57:19 +00:00
Howard Chu
345ba007b8 Must always accept "base" for ACL_STYLE_BASE since that is always how
it gets unparsed.
2005-05-05 21:47:40 +00:00
Howard Chu
4107187ecc Fix global entry setup 2005-05-05 20:55:35 +00:00
Kurt Zeilenga
43dba4fd45 Wrap w in WAKE_LISTENER 2005-05-05 20:39:58 +00:00
Kurt Zeilenga
b9139ebf07 Increase listen() backlog to 1024, allow compile time override 2005-05-05 19:41:12 +00:00
Pierangelo Masarati
1001d062d3 consistently rename function 2005-05-05 18:11:35 +00:00
Pierangelo Masarati
a215fdea66 a bit more reworking and streamline; the change to the LAST_CONN test seems to eliminate the last LDAP_BUSY problems on the only machine that was showing it yet; please test 2005-05-05 17:34:11 +00:00
Pierangelo Masarati
8ad34dc76b fix previous commit: don't loop on undefined; return success with no data in case of undefined filter 2005-05-05 12:01:12 +00:00
Pierangelo Masarati
7f61a2739a fix support for absoluteFilters 2005-05-05 11:19:11 +00:00
Pierangelo Masarati
d30933af36 fix previous commit 2005-05-05 00:31:11 +00:00
Pierangelo Masarati
f0122ce3fc move discover function to frontend 2005-05-05 00:22:43 +00:00
Pierangelo Masarati
c80eb34888 honor T-F filters (ITS#3706) and some cleanup 2005-05-05 00:07:17 +00:00
Pierangelo Masarati
4d9750afb5 honor T-F filters (ITS#3706) and lots of cleanup 2005-05-04 23:57:55 +00:00
Pierangelo Masarati
b8b0bb000b honor T-F filters (ITS#3706) 2005-05-04 23:57:33 +00:00
Pierangelo Masarati
4199f4577a if for any reason ldap_search_ext() fails (e.g. ITS#3706) don't wait for results 2005-05-04 23:16:56 +00:00
Pierangelo Masarati
87d7ca8957 ITS#3705: bailout if unknown config directive is found 2005-05-04 18:46:45 +00:00
Howard Chu
735ee711fe ITS#3702 add tool entry points 2005-05-04 10:52:42 +00:00
Howard Chu
02f1ede034 ITS#3699, #3702 fix ldif_back_search to send entries immediately instead
of queueing them up.
2005-05-04 09:53:10 +00:00
Pierangelo Masarati
2c8829b8ca add "monitorIsShadow" (ITS#3696); more to come (see discussion) 2005-05-04 09:27:22 +00:00
Howard Chu
1ac4df71c9 ITS#3703 skip checkpoint on close if ReadOnly mode 2005-05-04 06:41:39 +00:00
Howard Chu
6a2d53f396 In backend_group, return LDAP_COMPARE_FALSE if attr exists but value is
not matched, instead of LDAP_NO_SUCH_ATTRIBUTE
2005-05-04 06:28:27 +00:00
Pierangelo Masarati
642b788fb2 fix printing a NULL value (ITS#3698) 2005-05-03 23:42:28 +00:00
Pierangelo Masarati
a7b82686a8 fix SIGSEGV when default style is used for "val" (ITS#3700) 2005-05-03 12:13:16 +00:00
Howard Chu
d73fa98cf6 ITS#3699 fix dbconfig, limits schema flags 2005-05-03 09:44:46 +00:00
Howard Chu
9a1beb7fe4 unifdef SLAP_USE_CONFDIR 2005-05-01 20:57:32 +00:00
Howard Chu
cb686a5eb7 Fix config selection:
if -f but no -F, just read config file
	if -f and -F, convert config file to config dir
	else, try reading config dir
	if no config dir, try config filE
2005-05-01 20:55:15 +00:00
Pierangelo Masarati
137e46059c don't return client API error if the server is down... 2005-04-30 17:54:35 +00:00
Kurt Zeilenga
0ad446f014 ITS3693: fix of authPasswordSchemes for whom ever ends up implementing this 2005-04-30 05:43:09 +00:00
Kurt Zeilenga
efe91e52f4 Move $STRIP to top.mk, expand use. 2005-04-30 03:48:25 +00:00
Howard Chu
43cd22a639 Fix ITS#3695 preserve stack alignment in slap_sl_realloc 2005-04-30 01:15:10 +00:00
Pierangelo Masarati
8045a0882e anticipate monitor schema definition 2005-04-29 20:29:59 +00:00
Pierangelo Masarati
8d41d6d927 hardcode "description" and "seeAlso" 2005-04-29 20:29:29 +00:00
Pierangelo Masarati
0714716a3d sanity check 2005-04-29 20:28:35 +00:00
Pierangelo Masarati
50f3fe14db perform internal operations as rootdn, if any 2005-04-29 01:42:24 +00:00
Howard Chu
e3703bfaab Propagate Abandon to allow cleanup callbacks to run 2005-04-28 18:50:24 +00:00
Howard Chu
b33098b962 Propagate SLAPD_ABANDON results to to allow cleanup callbacks to run 2005-04-28 18:49:24 +00:00
Howard Chu
b45a912070 Check for abandon during transaction retry 2005-04-28 18:45:31 +00:00
Howard Chu
3a42760472 ITS#3671 more abandon/error checks 2005-04-28 18:36:47 +00:00
Howard Chu
0f4a5f7445 ITS#3671 must release conn->c_mutex to allow blocked writers to exit 2005-04-28 18:36:08 +00:00
Howard Chu
df22b333a5 Mroe abandon checks for ITS#3671 2005-04-28 16:45:52 +00:00
Howard Chu
67c68bab9c More for ITS#3671, check for Abandon before replaying queued events 2005-04-28 16:21:52 +00:00
Pierangelo Masarati
5697bed1f9 anticipate undefined symbols when compiling for 2.2 2005-04-28 11:03:22 +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
Howard Chu
080586f482 ITS#3688 don't sort range IDLs! 2005-04-27 17:29:30 +00:00
Pierangelo Masarati
145221472e cleanup entity registration 2005-04-27 02:43:38 +00:00
Sang Seok Lim
ea0033e439 Misc bug fix: component matching 2005-04-27 00:25:30 +00:00
Pierangelo Masarati
58a358e7b2 more cleanup in handling timeouts in ldap_result() 2005-04-26 21:48:43 +00:00
Pierangelo Masarati
bb21f09d1f use safe(r) default 2005-04-26 20:10:15 +00:00
Howard Chu
59de8333d0 Fix ppolicy libltdl usage on Win32 2005-04-26 12:54:24 +00:00
Pierangelo Masarati
6076695eb8 handle the null lud_dn case... 2005-04-26 10:34:37 +00:00
Pierangelo Masarati
6b035aac3e work around the last issue: some times the result times out while the other party is not willing to send any response; give it a second chance 2005-04-26 10:02:19 +00:00
Howard Chu
842b5ce076 ITS#3682, dup entry and free the DB's copy before sending it 2005-04-26 02:01:19 +00:00
Howard Chu
c899848afb Fix tool startup, don't start main backend twice 2005-04-26 00:46:00 +00:00
Pierangelo Masarati
1cc6b2ebe2 don't use temporaries 2005-04-26 00:33:43 +00:00
Pierangelo Masarati
06eef0c78d reset candidates when intentionally abandoning; consistently handle referrals 2005-04-25 23:54:51 +00:00
Pierangelo Masarati
fa49a73fc4 fix retry; add per-target configurable number of retries; addresses ITS#3672, ITS#3676 & ITS#3680 2005-04-25 18:56:56 +00:00
Howard Chu
0ec5e2df77 Fix some return codes 2005-04-25 09:18:32 +00:00
Howard Chu
be99e9e758 More error reporting for clients 2005-04-25 08:44:52 +00:00
Howard Chu
5b1330a4b3 More modpath fixes 2005-04-25 05:45:53 +00:00
Howard Chu
75164fbe1c ITS#3671 make sure to flush queue when able 2005-04-25 00:38:37 +00:00
Howard Chu
bae2f5f083 Fix modify deadlock 2005-04-25 00:07:26 +00:00
Howard Chu
acd1e2852a Better fix for #3671 2005-04-24 23:20:15 +00:00
Howard Chu
895b74cb1d ITS#3671 free all locks before calling send_search_*, queue entries if
the connection is busy. Probably need to set a queue limit here and
abandon the psearch if the limit is reached.
2005-04-24 22:55:21 +00:00
Howard Chu
b92387bb1c ITS#3671 add REP_ENTRY_MUSTRELEASE flag, release the entry before
attempting to write the response on the network. (This should probably
be the default behavior anyway, since network hangs of this sort can
cause problems for any backend that has entry locks.)
2005-04-24 22:21:57 +00:00
Howard Chu
a6fb962984 Cleanup ModulePath handling 2005-04-23 17:56:25 +00:00
Howard Chu
afd3f7c5ec Fix DB_CONFIG loading 2005-04-23 17:21:45 +00:00
Howard Chu
f01bb8d9ab Tweak runqueue reporting 2005-04-23 16:58:38 +00:00
Howard Chu
173330187e Tweak online_index task interval 2005-04-23 16:58:23 +00:00
Howard Chu
5639c07137 Add hdb symbols, make sure only one indexer runs 2005-04-23 16:16:54 +00:00
Howard Chu
e3b66a409d ITS#3677 use LDAP_DEBUG_ANY when logging the shutdown reason 2005-04-23 15:55:26 +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
Howard Chu
2d277bef3b More for dynamic dbenv swapping 2005-04-22 23:02:01 +00:00
Pierangelo Masarati
41aad6e27f more on error handling reworking; should address ITS#3672 and ITS#3676 2005-04-22 21:43:52 +00:00
Howard Chu
8d0fba2d97 Dynamic environment swapping 2005-04-22 21:35:45 +00:00
Howard Chu
cfc73a837b Fix prev commit 2005-04-22 21:34:49 +00:00
Howard Chu
9754ccacfd ITS#3607 use shared memory when configured 2005-04-22 21:18:59 +00:00
Howard Chu
7674aa817f Fix single-value delete, replace 2005-04-22 21:15:20 +00:00
Howard Chu
855f7d44e9 pwdReset was not supposed to be NO-USER-MODIFICATION 2005-04-22 18:42:52 +00:00
Howard Chu
c49ba400db Cleanup db_close vs db_destroy steps 2005-04-22 18:07:02 +00:00
Pierangelo Masarati
4ecdb6285d cleanup 2005-04-22 17:30:59 +00:00
Howard Chu
0398f254ee Fix checkpoint task start/stop 2005-04-22 15:32:09 +00:00
Howard Chu
6d66968ab0 Cleanup task tracking 2005-04-22 14:50:28 +00:00
Howard Chu
8f78d064ee Isolate syncrepl stuff in syncrepl.c 2005-04-22 14:38:35 +00:00
Howard Chu
7e27799b95 Fix prev commit 2005-04-22 14:34:10 +00:00
Howard Chu
cc2288b444 Fix bdb_attrinfo_free 2005-04-22 14:21:54 +00:00
Pierangelo Masarati
eda6c5abcb remove unnecessary call 2005-04-22 12:59:30 +00:00
Howard Chu
5158e46d59 Note draft 8 in comment 2005-04-22 09:10:06 +00:00
Howard Chu
3400b96d71 ITS#3655 patch from Ralf rhafer@suse.de update to draft 8 behavior 2005-04-22 09:09:12 +00:00
Pierangelo Masarati
18d18d25dc more attr_merge cleanup (please check) 2005-04-21 23:36:37 +00:00
Pierangelo Masarati
22aed7ddf9 add a consistency check 2005-04-21 23:35:00 +00:00
Pierangelo Masarati
17dbf7a49f fix previous commit 2005-04-21 22:57:49 +00:00
Pierangelo Masarati
95d3db5d25 fix previous commit 2005-04-21 22:22:43 +00:00
Pierangelo Masarati
2d94c4bd52 set alias dereferencing (please check) 2005-04-21 21:19:35 +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
a7b1017f44 partial fix to ITS#3659; still problems in merging values with "permissive" set 2005-04-21 19:55:22 +00:00
Howard Chu
8b6d9467ea Fix prev commit for component indexer op 2005-04-21 19:54:54 +00:00
Howard Chu
180d28dab7 Fix typo, add Truncate support 2005-04-21 19:46:47 +00:00
Howard Chu
88cdbab5f4 config cleanup handler 2005-04-21 19:31:39 +00:00
Howard Chu
5bf5288be5 Allow shutdown to interrupt the indexer 2005-04-21 19:23:33 +00:00
Howard Chu
5de908e7e1 Dynamic indexing support 2005-04-21 19:04:31 +00:00
Howard Chu
eac3fc3737 Added some delete handlers 2005-04-21 12:45:25 +00:00
Howard Chu
df6701667e Placeholders for unimplemented Delete handlers 2005-04-21 12:03:35 +00:00
Howard Chu
f5e36e1bbd Fix dnattr unparsing 2005-04-21 07:15:02 +00:00
Howard Chu
854b433489 Fix X-ORDERED SIBLINGS 2005-04-21 06:39:58 +00:00
Pierangelo Masarati
08a6909f73 add basic support for retry; protect internal bind behind mutexes; rework search, review candidate selection; minor cleanup. Passes concurrency test036 2005-04-21 03:17:31 +00:00
Pierangelo Masarati
471f4772a0 cleanup connection locking 2005-04-21 00:49:35 +00:00
Pierangelo Masarati
c3fd851a59 slightly reduce malloc overhead; minor cleanup 2005-04-20 18:52:10 +00:00
Howard Chu
3f542e1868 Fixes for ordered deletes 2005-04-19 18:37:39 +00:00
Howard Chu
b5ef8ea6f4 More modify support. ACL editing works. 2005-04-19 16:39:48 +00:00
Pierangelo Masarati
410638fda1 fix memory leak (ITS#3669) 2005-04-19 14:31:07 +00:00
Pierangelo Masarati
1dbf872d61 set deref 2005-04-18 09:16:50 +00:00
Pierangelo Masarati
f6d136a99a fix overlay access control; cleanup 2005-04-18 09:16:26 +00:00
Pierangelo Masarati
f2c4803dbd someone (e.g. an overlay) might muck with this data (e.g. remove a modification from the list...) 2005-04-17 19:12:46 +00:00
Pierangelo Masarati
623615e2f1 protect macro 2005-04-16 03:13:37 +00:00
Pierangelo Masarati
a141e3badf enable use of asynchronous call to StartTLS 2005-04-16 02:56:46 +00:00
Pierangelo Masarati
c1b5e84e2d a) implement a new candidate selection procedure, based on target naming
context checking and multiple match resolution via an internal search
b) move the candidate listing in a persistent per-thread buffer
c) fix bind procedure
d) minor cleanup

(a) and (b) should address ITS#2935; (b) and (c) should address ITS#3171

A test is also added
2005-04-16 02:25:41 +00:00
Howard Chu
41d37a335e ITS#3660 fix BDB verbose calls 2005-04-16 01:24:00 +00:00
Howard Chu
3189027df7 ITS#3661 use MAXPATHLEN, not PATH_MAX 2005-04-15 22:15:46 +00:00
Howard Chu
6399387580 ITS#3616 store contextCSN in glue entry if database suffix is empty 2005-04-15 06:58:03 +00:00
Howard Chu
46bea91379 ITS#3657 added missing check 2005-04-15 03:57:57 +00:00
Howard Chu
90ccff7163 Fix config_build_entry, normalized attributes 2005-04-14 11:36:37 +00:00
Howard Chu
d1288bf70e Ignore back-ldif if config directory is inaccessible 2005-04-14 11:16:20 +00:00
Howard Chu
d882ce511d Generic ordered value support 2005-04-14 10:31:51 +00:00
Howard Chu
562916939e Add STRIP macro to allow overriding strip on make install 2005-04-14 08:57:07 +00:00
Howard Chu
5ef9978afe ITS#3616 don't index the dummy context entry 2005-04-13 19:05:56 +00:00
Howard Chu
d9ab73837a ITS#3647 back-hdb fixes, create unsorted subtree IDLs and sort later. 2005-04-13 11:55:25 +00:00
Howard Chu
1afb2c8e6e Store modification in back-ldif 2005-04-13 06:56:26 +00:00
Howard Chu
4f95c63211 Fix typo in OMsInteger macro 2005-04-13 06:44:32 +00:00
Howard Chu
60533ad197 More for Modify. Single-valued attrs working. 2005-04-13 06:38:00 +00:00
Howard Chu
1ad2e448c5 Basic Modify framework, still in progress 2005-04-13 05:36:13 +00:00
Howard Chu
18e19a3a52 ITS#3607 more enhancements
- recovers correctly, logs status
  - for Quick mode, where no transactional environment exists, refuses to
     start if the database is inconsistent
  - warns of poor performance if DB_CONFIG is not present
  - detects changes to DB_CONFIG and forces a recovery
2005-04-13 04:34:15 +00:00
Howard Chu
28af130e89 unifdef BDB_SUBDIRS, was never used 2005-04-13 04:08:43 +00:00
Pierangelo Masarati
a6f8cd07f6 partially revert previous commit (ITS#3652) 2005-04-13 01:03:46 +00:00
Pierangelo Masarati
4a5cef7472 fix access control when no backend could be found (might need work) 2005-04-13 00:01:53 +00:00
Pierangelo Masarati
ec0b3b4b3c fix access control when no backend could be found (might need work) 2005-04-13 00:00:06 +00:00
Pierangelo Masarati
98294f1125 fix access unparse (ITS#3631) 2005-04-12 23:10:48 +00:00
Pierangelo Masarati
a85603c10b more on ITS#3652 2005-04-12 22:38:54 +00:00
Pierangelo Masarati
2430af4e8b fix slapacl when doing cross-database access checking 2005-04-12 22:13:42 +00:00
Pierangelo Masarati
da69eca714 more issues related to slapacl 2005-04-12 20:33:45 +00:00
Pierangelo Masarati
e9ab146a41 fix previous commit in case of access to non existent backend (e.g. rootDSE); add (and document) authzID/DN support 2005-04-12 19:36:56 +00:00
Pierangelo Masarati
387864a9f2 cleanup previous commit 2005-04-12 19:35:53 +00:00
Pierangelo Masarati
239f8fe2b2 fix the fix to previous commit 2005-04-12 17:11:30 +00:00
Pierangelo Masarati
42dda802ba add comment (see ITS#3652) 2005-04-12 17:01:31 +00:00
Pierangelo Masarati
6f1ebb180e fix previous commit (ITS#3654) 2005-04-12 16:35:52 +00:00
Howard Chu
bb9011b385 ITS#3648 use slapd runqueue for periodic sync 2005-04-12 12:35:00 +00:00
Howard Chu
fbce032cf2 Fix checkpoint task - must call stoptask before returning 2005-04-12 12:32:48 +00:00
Howard Chu
5aed76fe78 ITS#3573, mark pwdChangedTime, pwdGraceUseTime, pwdExpirationWarned,
pwdHistory, and pwdReset NO-USER-MODIFICATION
2005-04-12 10:58:50 +00:00
Howard Chu
d38707a952 Fix slapMode parens 2005-04-12 10:48:22 +00:00
Pierangelo Masarati
d2dd3a616c hide changes behind specific #ifdef, conditioned by LDAP_DEBUG; always allow access on back-dnssrv 2005-04-12 01:07:30 +00:00
Pierangelo Masarati
f103c78530 cleanup previous commit 2005-04-12 00:34:13 +00:00
Pierangelo Masarati
15016154b6 add ACL hook to overlays 2005-04-12 00:24:04 +00:00
Pierangelo Masarati
50bb034d97 in case of success, release the entry only after global overlays have seen it on the way back 2005-04-12 00:20:16 +00:00
Pierangelo Masarati
159dad3d9f iptr was unint'd 2005-04-11 21:44:29 +00:00
Pierangelo Masarati
91b4e991be cleanup & silence warnings 2005-04-11 21:35:34 +00:00
Pierangelo Masarati
e17ec4eb52 call frontend's be_unbind, if any, to honor hooks registered by global overlays (ITS#3649) 2005-04-11 19:12:30 +00:00
Howard Chu
b0627689e8 ITS#3647 fix hdb dn2idl SEGV 2005-04-11 04:00:08 +00:00
Pierangelo Masarati
5affbfa428 add SASL bind for acl-authc; use slap_bindconf 2005-04-10 23:44:06 +00:00
Pierangelo Masarati
c1885efd83 more bindconf cleanup 2005-04-10 23:43:17 +00:00
Pierangelo Masarati
f7ead8f919 apply naming scheme to global/database schema 2005-04-10 22:27:50 +00:00
Kurt Zeilenga
3e800f20bd <limits.h> cleanup && ITS#3643 2005-04-10 19:32:14 +00:00
Pierangelo Masarati
3546934005 same for objectClass; improve previous commit 2005-04-10 15:40:15 +00:00
Pierangelo Masarati
fa4b1c69d7 Added further consistency checks and a new schema parse error value
which should help in debugging schema development for back-config.
The check essentially verifies, when a duplicate attributeType is found,
that the new attributeType definition is an exact duplicate of the
definition already present in the schema.
2005-04-10 15:14:13 +00:00
Pierangelo Masarati
f1870628be clarify comment 2005-04-10 09:54:21 +00:00
Pierangelo Masarati
53ce94a25d protect all occurrences of ACL_DISCLOSE 2005-04-09 17:00:40 +00:00
Pierangelo Masarati
59c40035fd cleanup 2005-04-09 16:50:07 +00:00
Howard Chu
e2a3fc3af3 Preserve OID macros for display in back-config 2005-04-09 16:13:04 +00:00
Pierangelo Masarati
58d4f7fc20 base64 encode passwords in back-config 2005-04-09 15:19:36 +00:00
Howard Chu
a2a28f7b95 ITS#3616 allow adding entry with zero-length DN if the suffix is zero-length 2005-04-09 11:28:06 +00:00
Howard Chu
7aac82d31c ITS#3616 allow adding entry with zero-length DN if the suffix is zero length 2005-04-09 11:27:35 +00:00
Howard Chu
335e8a8ba7 Don't do ctxcsn checks in Tool mode, don't generate ctxcsn if it's missing
and we're also a consumer.
2005-04-09 11:26:31 +00:00
Howard Chu
20eaae2c7c Silence warnings in prev commit 2005-04-09 11:21:08 +00:00
Howard Chu
f43086d1c1 ITS#3616 fixes for zero-length DN entry. generate context entry on the
fly if a modify is attempted and it does not exist.
2005-04-09 11:15:05 +00:00
Howard Chu
90d9791047 ITS#3616 use fake context entry if suffix is empty. 2005-04-09 10:01:13 +00:00
Howard Chu
632d7186c0 Don't crash on update_ctx if context entry has no contextCSN 2005-04-09 10:00:15 +00:00
Howard Chu
0c0cb6a924 ITS#3616 skip naming checks for entry with zero-length DN 2005-04-09 09:59:40 +00:00