Commit Graph

6305 Commits

Author SHA1 Message Date
Pierangelo Masarati
a3fbea971b map referrals in regular metadata structure (need to remove some of the specific code) 2005-01-18 23:28:03 +00:00
Pierangelo Masarati
d252d9c535 map referrals in regular metadata structure (need to remove some of the specific code) 2005-01-18 23:21:48 +00:00
Pierangelo Masarati
42b7753803 should we touch timestamps when internally updating? 2005-01-18 09:48:53 +00:00
Pierangelo Masarati
e559e61b4f consistently use BER_* macros 2005-01-18 09:35:09 +00:00
Pierangelo Masarati
71ea8bb244 always invalidate freed memory\! 2005-01-18 09:29:14 +00:00
Pierangelo Masarati
8b26737c27 fix different issues with referrals in searches; remove unused tests; cleanup referrals in tests so that they don't get chased; improve schema checking in modrdn and updates in general; minor cleanup 2005-01-18 01:10:01 +00:00
Pierangelo Masarati
fa498ee015 various issues related to working with schemacheck off; allow referrals to be created as separate objectClasses, so they work with schemacheck on (may rework them to be treated as normal data) 2005-01-17 21:10:55 +00:00
Pierangelo Masarati
143937320b remove dangling text pointer in case of success 2005-01-17 21:06:49 +00:00
Pierangelo Masarati
eb0421c471 fix several schema checking issues; add rename specific statement for entry renaming without losing ID (helps e.g. in renaming referrals, otherwise referential integrity would prevent del/add because of referenced stuff in ldap_referrals and ldap_entry_objclasses); referrals need schemacheck off otherwise objectClass chain is invalid (they need to be attached to another objectClass by now; will address this later) 2005-01-17 19:32:28 +00:00
Pierangelo Masarati
b4e37e518f fixes for ITS#3480,3485,3489; implementation of DISCLOSE access for all operations (ITS#3472); ITS#3432.4; added value validate/pretty when applicable (see comments and #defines in back-sql.h) 2005-01-16 23:12:36 +00:00
Howard Chu
56e45fc1ae Fix ITS#3490, set proper overlay context 2005-01-16 18:23:13 +00:00
Pierangelo Masarati
c8c043bd39 address ITS#3472/3480/3488/3489 2005-01-15 18:43:34 +00:00
Howard Chu
1dbe92c27b Delete dubious use of be_syncinfo - only the consumer can write the
database, and it will only perform writes it received from the provider,
so referring back to the provider is pointless. (And of course, the
consumer never chases referrals.)
2005-01-15 10:39:23 +00:00
Howard Chu
8d0f39bb83 Cleanup slapcat usage 2005-01-14 16:23:50 +00:00
Howard Chu
9e8d2c5bb1 More cleanup 2005-01-14 16:20:15 +00:00
Pierangelo Masarati
06478f2265 silence warnings 2005-01-14 12:01:51 +00:00
Pierangelo Masarati
0079b3ce45 condition compilation of DISCLOSE checking (there's more to do) 2005-01-14 12:01:03 +00:00
Pierangelo Masarati
4644584a75 condition compilation of DISCLOSE checking 2005-01-14 11:51:16 +00:00
Pierangelo Masarati
7f8634e8fc silence (a couple of) warnings 2005-01-14 11:50:24 +00:00
Pierangelo Masarati
53b8653730 small improvements; declare org_dn/org_ndn 2005-01-14 11:01:48 +00:00
Howard Chu
c8f3bbf9e5 ITS#3486 fix link order for static overlays 2005-01-14 07:13:07 +00:00
Howard Chu
2b66ee44bd More cleanup of unused stuff 2005-01-14 05:57:58 +00:00
Howard Chu
aa27cb2262 Delete obsolete syncprovider stuff 2005-01-14 05:49:45 +00:00
Howard Chu
9f30e1e650 Delete obsolete syncprovider stuff 2005-01-14 05:19:51 +00:00
Howard Chu
7f5589174a Fix cascading deletes 2005-01-14 05:11:38 +00:00
Howard Chu
27f7aa5b54 Minor cleanup 2005-01-14 05:10:23 +00:00
Howard Chu
495c315672 More consolidation for single consumer-context syncrepl 2005-01-14 04:26:59 +00:00
Howard Chu
b6fbfe8540 ITS#3463 additional fix 2005-01-14 02:08:02 +00:00
Pierangelo Masarati
014ee81c34 plug memory leak: bsi_attrs member
use tmpmemctx for bsi_attrs (should be used more for temporaries)
fix ITS#3480: allow to fetch all attrs or provide hints
fixed access check to entry for rename
TODO: fetch entries for access checking in selected code portions (e.g. rename)
2005-01-14 00:39:24 +00:00
Kurt Zeilenga
1780c8bf54 Only remove backends.c on make veryclean
Add dependencies
2005-01-14 00:12:14 +00:00
Howard Chu
f845c573b0 Single consumer context per database 2005-01-13 21:15:50 +00:00
Howard Chu
4c21a2712f Fix prev commit 2005-01-13 21:14:52 +00:00
Howard Chu
93c56951ed Use a single sessionlog per context, delete sid 2005-01-13 19:51:01 +00:00
Howard Chu
aa913f1bef Use be_shadow_update, not be_isupdate 2005-01-13 19:02:08 +00:00
Howard Chu
bf27ba977b Deleted syncrepl updatedn 2005-01-13 18:51:29 +00:00
Pierangelo Masarati
69fbd2e66e propagate opattrs if shadow update 2005-01-13 18:43:59 +00:00
Kurt Zeilenga
3118f1fd2e Fix backends.c VPATH builds 2005-01-13 17:30:07 +00:00
Sang Seok Lim
0291e294c5 Handling multi-valued attributes in Component Matching 2005-01-13 09:48:52 +00:00
Sang Seok Lim
eaa58e131c handling multi-valued attrivutes in Component Matching 2005-01-13 09:48:20 +00:00
Pierangelo Masarati
5a7108ee1b add '+' string concatenation operator 2005-01-13 09:21:11 +00:00
Pierangelo Masarati
7348603a53 fix ITS#3484 2005-01-12 23:22:56 +00:00
Pierangelo Masarati
4e06af2247 cosmetic cleanup 2005-01-12 21:02:58 +00:00
Pierangelo Masarati
4e6fd44213 the fixes to ITS#3475 make the referrals callback no longer required 2005-01-12 21:02:23 +00:00
Pierangelo Masarati
9885b55e9d fix referral return in back-ldbm as well (same as ITS#3475) 2005-01-12 21:01:42 +00:00
Pierangelo Masarati
3bbfa91177 fix ITS#3483 (continuation of ITS#3472) 2005-01-12 18:55:40 +00:00
Pierangelo Masarati
6bf8b945dd fix use of uninitialized var 2005-01-12 15:11:17 +00:00
Pierangelo Masarati
42dadd5712 typo 2005-01-12 14:34:46 +00:00
Pierangelo Masarati
d5238b91eb further refinement of ITS#3461 2005-01-12 14:31:03 +00:00
Pierangelo Masarati
b381e1bcc8 cosmetic changes 2005-01-12 14:25:08 +00:00
Howard Chu
16f3cdeb19 More cleanup for prev commit 2005-01-12 02:32:48 +00:00
Howard Chu
53fcde0927 ITS#3463 don't muck with frontend's operations, just our detached ones 2005-01-12 01:49:00 +00:00
Howard Chu
b0da3a0e32 Clear write events after they're processed 2005-01-12 00:57:53 +00:00
Pierangelo Masarati
b46518ff77 silence warning for global scoped global ACLs 2005-01-12 00:53:50 +00:00
Pierangelo Masarati
056c5ba7c1 fix couple of bugs in recent 'disclose' commits; prepare for sending matchedDN when appropriate; note ITS#3480 access control issues 2005-01-12 00:28:37 +00:00
Howard Chu
b803b49e5f ITS#3421 flush and close logfile before releasing lock 2005-01-12 00:17:12 +00:00
Howard Chu
0bc4b77527 Clean up unused bt_compare references 2005-01-11 22:38:39 +00:00
Howard Chu
89da582d69 Byte-order independence for HDB: dn2id format changed again. 2005-01-11 22:25:52 +00:00
Howard Chu
bd498d2996 Fix undetected deadlock 2005-01-11 22:08:06 +00:00
Howard Chu
98212b7e08 Start removing custom sort functions from hdb 2005-01-11 19:47:05 +00:00
Pierangelo Masarati
0e04985332 honor 'disclose' ACL on searchBase/compare/referral/matched (ITS#3472 and comments on -devel) 2005-01-11 19:37:55 +00:00
Pierangelo Masarati
f369e34049 honor 'disclose' ACL on searchBase/compare/referral/matched (ITS#3472 and comments on -devel) 2005-01-11 15:59:13 +00:00
Howard Chu
05648b22fb Fix findmax when multiple matches are found 2005-01-11 05:00:59 +00:00
Pierangelo Masarati
4f9db2e2d7 suggested change for ITS#3475 2005-01-11 00:38:04 +00:00
Pierangelo Masarati
83d1e22b8c don't malloc if proxyAuthz is the only control 2005-01-11 00:37:22 +00:00
Howard Chu
d140433c9f ITS#3470 don't propagate error if hasSubordinates fails, it's not that
important.
2005-01-11 00:05:22 +00:00
Pierangelo Masarati
41d7c03e8b clear out the error 2005-01-09 23:30:19 +00:00
Pierangelo Masarati
154ae48d69 put back chain overlay into back-ldap 2005-01-09 21:26:32 +00:00
Pierangelo Masarati
28b18b1869 minor cleanup 2005-01-09 21:25:12 +00:00
Kurt Zeilenga
7dc0b02fc9 Replace backend.h with backends.c, generated by config.status. 2005-01-09 08:42:44 +00:00
Pierangelo Masarati
0ea4070eb1 clarify error message and allow -u (dryrun) option for slaptest, to circumvent database startup 2005-01-08 12:02:14 +00:00
Pierangelo Masarati
e5c58636de enable if one suffix only is present 2005-01-08 11:33:51 +00:00
Pierangelo Masarati
cd2e651c26 ITS#3469: C99 compliance 2005-01-08 11:25:11 +00:00
Pierangelo Masarati
8d14165274 fix ITS#3464 2005-01-08 10:59:32 +00:00
Pierangelo Masarati
83fc428a44 make sure the attribute exists 2005-01-08 09:59:53 +00:00
Pierangelo Masarati
9d5d9cc2ec fix mix memory issues and cleanup 2005-01-08 09:59:16 +00:00
Pierangelo Masarati
e5eaef6248 fix previous commit 2005-01-08 09:51:29 +00:00
Pierangelo Masarati
5422345e55 major namespace cleanup & minor fixes 2005-01-08 09:20:54 +00:00
Pierangelo Masarati
4d8267595f retry on ldap_result() with a timeout 2005-01-08 09:19:51 +00:00
Pierangelo Masarati
4b4bdc6bf6 ...but rather here: GLUE entries would remain such until the server was restarted 2005-01-08 09:13:16 +00:00
Pierangelo Masarati
8cfda61cb4 cosmetic changes (the problem was not there) 2005-01-08 09:12:35 +00:00
Pierangelo Masarati
a4a9d9df72 beware of URIs that are not parsed or rebuilt successfully 2005-01-08 09:11:53 +00:00
Kurt Zeilenga
1c5d78d8dd Add "disclose" and "manage" ACL levels (but no meat).
Disclose permission intended to be used for "disclose on error"
(as in our present "none"), none being "don't disclose on error".

Manage permission is intended to be used to allow DSA IT management
(e.g., changing entryCSNs, structuralObjectClass, etc.).
2005-01-08 05:26:18 +00:00
Kurt Zeilenga
1ad97bf656 Cleanup 2005-01-08 05:25:58 +00:00
Kurt Zeilenga
5593d17582 s/RFC2459/RFC3280/ 2005-01-07 18:14:49 +00:00
Kurt Zeilenga
c72452dce0 Add X.520(4th)'s pseudonym 2005-01-07 18:11:05 +00:00
Pierangelo Masarati
f40527ef49 fix ACL value checking for bind (ITS#3446) 2005-01-07 13:57:16 +00:00
Pierangelo Masarati
6f2ffa30ed fix ACL value checking for bind (ITS#3446) 2005-01-07 13:50:38 +00:00
Pierangelo Masarati
60a1ae56e4 fix value match 2005-01-07 13:37:22 +00:00
Pierangelo Masarati
845cc3d6ee revert unintended commit 2005-01-05 16:25:12 +00:00
Pierangelo Masarati
f5936eb7fc minor naming cleanup; improvements to DN mapping layer; major docs update 2005-01-05 16:23:00 +00:00
Pierangelo Masarati
c1e4eeb23b fix max arg number for limits 2005-01-03 18:20:37 +00:00
Pierangelo Masarati
2ed3625a13 fix group limits when objectClass/attribute are provided 2005-01-03 18:09:03 +00:00
Pierangelo Masarati
edc9b936d0 mostly copyright cleanup; removal of unnecessary headers 2005-01-03 10:51:59 +00:00
Kurt Zeilenga
dc0eacd40b Happy New Year! 2005-01-01 20:49:32 +00:00
Kurt Zeilenga
4b0a9be3b5 More cr statements 2005-01-01 20:43:42 +00:00
Kurt Zeilenga
477e1309d1 Update notice. 2005-01-01 20:38:40 +00:00
Pierangelo Masarati
642f7aed50 apply patches 1,2,3,5,8 (with changes) from ITS#3432) 2005-01-01 16:21:55 +00:00
Pierangelo Masarati
8ec78171d3 trim comment 2005-01-01 16:14:40 +00:00
Pierangelo Masarati
a8547f5945 fix comment 2005-01-01 16:14:11 +00:00
Pierangelo Masarati
9fbc616ac9 cleanup 2005-01-01 16:13:25 +00:00
Pierangelo Masarati
83dc46d1bf set LDAPURLDesc lud_scope to LDAP_SCOPE_DEFAULT if set to LDAP_SCOPE_BASE, so no trailing '??base' is added to referrals... 2005-01-01 16:12:09 +00:00
Pierangelo Masarati
250c096713 rework internal handling of strings to minimize temporary allocation; impacts rewrite() and rewrite_session() behavior in case of no rewriting; set LDAPURLDesc lud_scope to LDAP_SCOPE_DEFAULT if set to LDAP_SCOPE_BASE, so no trailing '??base' is added to referrals... 2005-01-01 16:11:38 +00:00
Pierangelo Masarati
52b878dcc0 rework internal handling of strings to minimize temporary allocation; impacts rewrite() and rewrite_session() behavior in case of no rewriting 2005-01-01 16:10:25 +00:00
Kurt Zeilenga
c9156d7995 cleanup 2004-12-31 12:02:35 +00:00
Kurt Zeilenga
3ea0f0cd0b Move test.schema to tests/data 2004-12-31 04:32:49 +00:00
Kurt Zeilenga
951159447b Cleanup 2004-12-30 19:15:52 +00:00
Pierangelo Masarati
f1427fd871 remap compare attribute; fix erroneous pointers; minor cleanup 2004-12-30 17:46:38 +00:00
Pierangelo Masarati
ba6ac023ad works now 2004-12-30 17:45:07 +00:00
Pierangelo Masarati
7b6d707d92 TODO: rewrite/remap the newRDN and related stuff both in back-meta and in rwm overlay 2004-12-30 15:06:58 +00:00
Pierangelo Masarati
bf2653ef8b use normalized new superior 2004-12-30 14:49:30 +00:00
Pierangelo Masarati
889b20e358 fix error return when there's no write access to naming attributes (ITS#3450) 2004-12-29 13:45:16 +00:00
Pierangelo Masarati
4b8e57e11f rework operations in a table-driven manner; better exception handling 2004-12-29 12:31:06 +00:00
Pierangelo Masarati
564d1a6aff fix previous commit (for compilers that require at least one statement after a label) 2004-12-28 22:48:43 +00:00
Kurt Zeilenga
4a618959bb PROTOS fix 2004-12-28 19:05:52 +00:00
Pierangelo Masarati
7a1537c640 list permissive in supported controls (ITS#3453) 2004-12-28 10:54:49 +00:00
Pierangelo Masarati
7198e9e4b9 fix typos leading to memory issues 2004-12-23 10:43:58 +00:00
Sang Seok Lim
263b8e72d5 Bug fix
support for multi-values attribute in Component Matching
2004-12-23 05:44:52 +00:00
Sang Seok Lim
65026f4300 Adjusting an initial buffer size for x509Certificate 2004-12-22 01:24:12 +00:00
Sang Seok Lim
e3ab329d4e Fixing bug in extensible filter indexing 2004-12-22 01:23:27 +00:00
Sang Seok Lim
79d9ef9c87 Buf size adjustment 2004-12-21 04:46:44 +00:00
Sang Seok Lim
94ed6b410d Cleanup unused fields of ComponentDesc 2004-12-21 04:46:21 +00:00
Jong Hyuk Choi
706e7f819a misc cleanup 2004-12-20 22:07:17 +00:00
Jong Hyuk Choi
35c19ef342 misc fix for the component indexing commit 2004-12-20 20:28:30 +00:00
Sang Seok Lim
ccd3acc98e return value mising 2004-12-20 04:48:16 +00:00
Sang Seok Lim
28a967584d Component Indexing support for BDB
- only for equality matching
- only components of ASN.1 types used in an X.509 certificate can be indexed
(composite types except for RDN and DN are not supported yet)
- how to use
index [attribute name].[component reference] eq
Ex)
index userCertificate eq
index userCertificate.toBeSigned.issuer.rdnSequence eq
index userCertificate.toBeSigned.serialNumber eq
index userCertificate.toBeSigned.version eq
2004-12-20 03:31:44 +00:00
Howard Chu
b3dfae907f Remove obsolete comment 2004-12-17 10:24:54 +00:00
Howard Chu
a2a1ffb05d Revert previous, unnecessary 2004-12-17 09:48:26 +00:00
Howard Chu
090270e965 Use of bzero is not portable 2004-12-16 19:52:38 +00:00
Jong Hyuk Choi
238f6333d2 ITS#3445 2004-12-16 15:59:35 +00:00
Howard Chu
8d4281d843 ITS#3443 fix shutdown test 2004-12-16 13:48:36 +00:00
Jong Hyuk Choi
5162c4477b adaptive caching code 2004-12-14 17:25:35 +00:00
Jong Hyuk Choi
273052b573 adaptive caching implementation 2004-12-14 17:22:22 +00:00
Jong Hyuk Choi
d6410c9207 zone invalidation/locking implementation 2004-12-14 03:51:09 +00:00
Sang Seok Lim
3492452a5b 1) <select> and <content> type component reference support
2) attribute aliasing support
- x509CertificateIssuer
- x509CertificateSerial
- x509CertificateIssuerAndIssuer
3) AuthorityKeyIdentifier support(one of certificate extension)
4) Misc. improvement
- integrate OID and its decoder mapping table
- normalize and validate the values of both component asserions and
  extracted components
5) Misc. bug fix
2004-12-13 16:26:58 +00:00
Pierangelo Masarati
c90c9f3689 don't try to send results on abandon (ITS#3434) 2004-12-12 23:23:00 +00:00
Howard Chu
4ea68d5e8d Fix playlog uninit'd fields 2004-12-12 07:00:58 +00:00
Howard Chu
edde8c99d8 Fix ITS#3425, use less restrictive search filter when getting info about
an old entry that must be deleted.
2004-12-12 06:09:02 +00:00
Pierangelo Masarati
5a920206dd more cleanup 2004-12-11 18:36:31 +00:00
Pierangelo Masarati
6fdb803bde cleanup 2004-12-11 18:04:38 +00:00
Pierangelo Masarati
2f5e17d056 improve usability of global ovrlays for write operations; may need to anticipate SLAPI accordingly. More work needed for add (overlays need to understand they're global and call slap_mods2entry() explicitly) 2004-12-11 17:48:15 +00:00
Pierangelo Masarati
57c4f45977 work out an issue with chk_referrals and back-relay/rwm; this looks like the best compromise; minor cleanup 2004-12-11 17:37:21 +00:00
Pierangelo Masarati
ed0949c7e7 work out an issue with chk_referrals and back-relay/rwm; this looks like the best compromise 2004-12-11 17:36:25 +00:00
Jong Hyuk Choi
7e310a62d8 data struct for zone allocator 2004-12-11 17:16:58 +00:00
Pierangelo Masarati
fa4918ec1e (temporary?) fix to ITS#3434 2004-12-11 16:28:45 +00:00
Pierangelo Masarati
bd166fbcb8 rework fix for NULL be_pcl_mutexp 2004-12-11 15:44:30 +00:00
Pierangelo Masarati
b498a9222a better fix to ITS#3433 2004-12-11 15:41:50 +00:00
Pierangelo Masarati
0fe40e4ebd temporarily work around ITS#3433; need to understand why it happens and how to fix it correctly 2004-12-11 14:06:21 +00:00
Pierangelo Masarati
fe30850765 required by global overlay write funcs... 2004-12-11 12:53:47 +00:00
Howard Chu
73bab2b619 Moved cookie validation into slap_parse_sync_cookie so consumer uses it too 2004-12-10 03:18:33 +00:00
Howard Chu
ccdbb52266 Don't reject invalid cookies, just ignore them. partially revert prev. 2004-12-10 02:51:34 +00:00