Commit Graph

4874 Commits

Author SHA1 Message Date
Jong Hyuk Choi
8b8383a85d fix for changing si->syncCookie to bvarray 2003-10-21 22:02:30 +00:00
Howard Chu
ab2a7195d0 Fix cookie search 2003-10-21 08:26:58 +00:00
Kurt Zeilenga
4821c2c6ed Avoid questionable use of strlen(), strcpy(), and strcat(). 2003-10-20 22:23:11 +00:00
Howard Chu
7710791382 ITS#2684 keep psearch operations on the connection's active list so they
can be located by connection_abandon() during an unexpected close. Remove
the operations in bdb_abandon() etc.
2003-10-19 11:20:34 +00:00
Howard Chu
56498a59dd ITS#2780, redundant cache add 2003-10-19 09:55:31 +00:00
Howard Chu
91ebcd87bd Fix prev commit, syncrepl_add_glue must start from sufix 2003-10-19 08:57:30 +00:00
Howard Chu
b144ca2169 ITS#2684 fix bogus entry_free(), connection problem remains 2003-10-19 04:42:02 +00:00
Howard Chu
f0c8dcc331 ITS#2778 use real malloc for new entry, not sl_malloc 2003-10-19 02:18:38 +00:00
Howard Chu
08407b5b00 More malloc cleanup 2003-10-19 00:30:55 +00:00
Luke Howard
a7619c4ce9 Return duplicated entry from entry_dup() - interesting that
this was actually working when compiling without optimization
2003-10-18 15:07:51 +00:00
Howard Chu
b6835be962 ITS#2747, Reorganize syncrepl, fix some memleaks. More remain. 2003-10-18 14:13:37 +00:00
Kurt Zeilenga
aa225c2c70 Explicitly mark attribute/assertion syntax of values to be normalized 2003-10-18 06:18:05 +00:00
Howard Chu
dee604c608 ITS#2771 fix memory usage in LDAPDN_rewrite, fix normalizer 2003-10-18 05:49:58 +00:00
Kurt Zeilenga
c57db6c33e Add basic support for certificateMatch (as an extensible matching rule) 2003-10-18 04:20:19 +00:00
Kurt Zeilenga
3fbe93c704 Rework support for certificate exact matching based, in part,
on patch submitted by Mark Ruijter <openldap@siennax.com>.
This addresses (hopefully) ITS 2702, 2703, 2719, 2771.
Additional work:
	fix extraneous frees in libldap/getdn.c x509 rewrite routine
	indexing
2003-10-18 02:39:08 +00:00
Kurt Zeilenga
e3a0148328 Fix modify attrs= overflow bug 2003-10-18 02:33:15 +00:00
Kurt Zeilenga
3f523b4303 Add a trace message to dnX509normalize 2003-10-17 22:38:19 +00:00
Howard Chu
4c5c632d70 ITS#2769 - NT SIGBREAK handling 2003-10-15 12:16:35 +00:00
Kurt Zeilenga
81ed052186 Improve printing of ACLs 2003-10-15 07:48:01 +00:00
Jong Hyuk Choi
9d59b5a41c ITS #2766 (remove slap_syncrepl_bvc & slap_syncrepl_cn_bvc from proto-slap.h) 2003-10-14 20:40:44 +00:00
Jong Hyuk Choi
13f981fdd4 remove #include <db.h> (ITS#2765) 2003-10-14 20:22:09 +00:00
Jong Hyuk Choi
490d9e55d4 fix slap_syncrepl_cn_bv 2003-10-14 16:26:01 +00:00
Jong Hyuk Choi
35455699e7 rq_mutex placing fix 2003-10-13 14:08:55 +00:00
Kurt Zeilenga
2d910bf1f8 Fix pdn assert 2003-10-12 22:34:14 +00:00
Jong Hyuk Choi
85ff0377d2 runqueue locking fix (ITS#2746) 2003-10-12 09:13:04 +00:00
Kurt Zeilenga
4f003dbdaf mv ldap_int_get_controls to ldap_pvt_get_controls 2003-10-12 08:14:28 +00:00
Kurt Zeilenga
10622b1d0a Further cleanup last commit. 2003-10-12 07:31:31 +00:00
Kurt Zeilenga
535c221599 Tentative fix for last comment (tests still running) 2003-10-12 07:19:27 +00:00
Kurt Zeilenga
dfcd732813 ITS#2757: fix parent-less add bug 2003-10-12 06:32:44 +00:00
Kurt Zeilenga
71f484bad8 Finish off berbuf fix 2003-10-12 06:07:02 +00:00
Kurt Zeilenga
767cf365ea Initial fix for berbuf alignment bug (ITS#2760)
Needs to be applied to other stack allocated berbufs.
2003-10-12 04:45:09 +00:00
Howard Chu
5cd2c68a2b ITS#2751 additional fix 2003-10-11 02:52:48 +00:00
Howard Chu
1e89a1daee ITS#2751 reset op->o_callback before returning 2003-10-11 02:41:37 +00:00
Howard Chu
b5b036d9fb ITS#2762 tweak SASL include paths 2003-10-11 01:24:44 +00:00
Jong Hyuk Choi
cdb7417765 misc syncrpel updates 2003-10-08 09:36:06 +00:00
Luke Howard
79a44ac26e Don't duplicate e_bv in entry_dup() 2003-10-08 06:40:16 +00:00
Howard Chu
8c9f033aa5 Fix prev commit setting NO_GRANDKIDS incorrectly 2003-10-08 06:05:48 +00:00
Luke Howard
7a1c94acd3 Add entry_dup(); make slapi_entry_dup() use it 2003-10-08 00:48:33 +00:00
Jong Hyuk Choi
a8574a450f slaptools update : replica promotion / demotion
new slapadd options
-p       : promote : If the ldif file contains syncConsumerSubentries, convert
                     them to a single syncProviderSubentry. Its contextCSN
                     attribute has the largest value of the syncreplCookie
                     attributes of the syncConsumerSubentries.
                     syncProviderSubentry in the ldif file is retained.
-p -w    : promote : Recalculate contextCSN based on entryCSN of each entry.
           create    Existing syncConsumerSubentries and syncProviderSubentry
                     are ignored and not added to the directory.
-r       : demote  : If the ldif file contains syncProviderSubentry, convert it
                     to a syncConsumerSubentry having the default syncrepl id
                     of 0. syncConsumerSubentries in the ldif file are retained.
-r -w    : demote  : Recalculate syncreplCookie based on entryCSN of each entry.
           create    Existing syncConsumerSubentries and syncProviderSubentry
                     are ignored and not added to the directory. The default
                     syncrepl id of 0 will be used for the new
                     syncConsumerSubentry.
-r -w -i %d[,%d]*  : Using the comma separated list followed by the -i option,
                     it is possible to create multiple syncConsumerSubentries
                     having the syncrepl ids specified in the list.
                     syncreplCookie values of these sycnConsumerSubentries
                     will have the same value, either from the maximum
                     entryCSN value or from the contextCSN value of the
                     syncProviderSubentry.
2003-10-07 20:01:37 +00:00
Luke Howard
6c25cb17d5 Use slapi_entry_dup() instead of converting entry to string and back 2003-10-07 16:09:40 +00:00
Pierangelo Masarati
a78c03bb4a fix a_nvals according to back-ldap implementation (ITS#2716; at least part of it) 2003-10-04 17:18:25 +00:00
Howard Chu
040a9cf64c Fix HDB's use of IDL cache 2003-10-03 02:19:09 +00:00
Jong Hyuk Choi
bcb4529d9d ITS#2744 2003-09-30 18:01:47 +00:00
Hallvard Furuseth
887ef60ea9 Fix typo in comment. 2003-09-30 17:11:44 +00:00
Hallvard Furuseth
8efd391832 #include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy(). 2003-09-29 23:33:39 +00:00
Hallvard Furuseth
b10daf623f Declare bdb_cache_entry_db_unlock(). 2003-09-29 23:32:11 +00:00
Howard Chu
dcbca288a9 ITS#2745 reset bei_state when reusing an EntryInfo 2003-09-29 22:01:03 +00:00
Howard Chu
16cde39daa ITS#2743 initialize rc 2003-09-29 19:54:53 +00:00
Hallvard Furuseth
6194b91ca9 Declare filter_escape_value_x() and make it static. 2003-09-29 14:09:31 +00:00
Hallvard Furuseth
705d789dbe Move #include ldap_pvt.h after slap.h, to get ldap_bv2dn_x() & co. 2003-09-29 14:08:23 +00:00
Hallvard Furuseth
76dd417dc9 Plug memory leak in slap_get_csn(). 2003-09-29 14:06:48 +00:00
Howard Chu
bdf86d44a8 ITS#2130 glued subordinates are not referrals, ignore ManageDSAit control 2003-09-29 10:39:41 +00:00
Howard Chu
0eb7ca22f7 Starting a collection of overlays 2003-09-29 05:49:39 +00:00
Howard Chu
0bb0551381 Initialization fixes 2003-09-29 05:04:43 +00:00
Howard Chu
a875d7df18 plug modrdn memleaks 2003-09-27 07:52:20 +00:00
Howard Chu
1bb48a06fc ITS#2736 clear result strings 2003-09-27 07:36:20 +00:00
Howard Chu
c9ef0da66b Don't timeout slow-running operations 2003-09-27 05:36:20 +00:00
Howard Chu
dcd777b0b8 Fix hdb cursor leak. 2003-09-27 05:17:08 +00:00
Luke Howard
8c8c89b8a9 reinstate first argument to bdb_cache_delete_cleanup() 2003-09-27 05:12:17 +00:00
Luke Howard
abaddd1c70 Cleanup SLAPI logging
Remove _SPARC hostname special case - gethostname() should work
2003-09-27 05:03:16 +00:00
Howard Chu
121c73d838 Add EntryInfo free list 2003-09-27 04:58:36 +00:00
Luke Howard
283c310302 Fix tree breakage - bdb_cache_delete_cleanup() only takes one argument
???
2003-09-27 04:24:31 +00:00
Luke Howard
ce17fd5f04 Don't leak SLAPI_RESULT_MATCHED
Call SLAPI_PLUGIN_PRE_RESULT_FN plugins
2003-09-27 03:59:40 +00:00
Luke Howard
613f493cae Add slapi_dn_beparent, slapi_dn_parent and slapi_dn_isparent API. 2003-09-27 03:29:05 +00:00
Howard Chu
5c711a3b46 ITS#2741 yield before backing off 2003-09-27 03:16:38 +00:00
Luke Howard
a57956ac0f Implementation of slapi_send_ldap_search_reference() 2003-09-26 17:10:03 +00:00
Howard Chu
1aabc02038 Fix typo in libslapi rule 2003-09-25 20:33:07 +00:00
Jong Hyuk Choi
4495320839 move c->c_n_ops_executing/completed to the right place 2003-09-25 20:14:53 +00:00
Howard Chu
25e145f8c8 Plug SLAPI leak 2003-09-25 11:28:31 +00:00
Jong Hyuk Choi
eee84463c0 do not cache internal search results for present entry priming 2003-09-25 07:49:50 +00:00
Jong Hyuk Choi
d5823fa912 no caching flag in Operation structure 2003-09-25 07:48:53 +00:00
Jong Hyuk Choi
67b485e3ee revert changes for persistent search 2003-09-25 02:14:20 +00:00
Jong Hyuk Choi
d2320dbd7a followup of the previous commit 2003-09-25 01:40:33 +00:00
Jong Hyuk Choi
cd108bb682 loose ends fixed 2003-09-25 00:59:27 +00:00
Howard Chu
76dd6bb6da Revert to previous behavior:
always use DB_AUTO_COMMIT when opening a database, don't make it
  dependent on an in-progress transaction

  use mutex instead of DB lock for db access.
2003-09-25 00:27:22 +00:00
Howard Chu
c58ac9d8f1 Add memctx param to build_new_dn(). cleanup DN leaks. 2003-09-24 04:30:41 +00:00
Howard Chu
ece76c067f Silence valgrind warnings of uninit'd memory 2003-09-24 03:03:53 +00:00
Howard Chu
7fd47cedb7 ITS#2735 - plug memory leaks 2003-09-24 00:32:27 +00:00
Jong Hyuk Choi
3e99679ca4 log the cause of the error when ldap_result() returns -1 2003-09-23 23:41:57 +00:00
Howard Chu
0b23dff298 ITS#2735 - plug memory leaks, cleanup 2003-09-23 22:52:35 +00:00
Howard Chu
30f3b91ddc ITS#2735 - plug memory leaks 2003-09-23 22:52:35 +00:00
Howard Chu
772ce3b911 Plug a leak. 2003-09-23 17:14:01 +00:00
Howard Chu
d7771374e2 Fix alignment issues in hdb_dn2idl_internal 2003-09-23 10:55:57 +00:00
Howard Chu
99d2b7e7e9 Fix back-hdb test006 failures due to bad return code in hdb_dn2idl 2003-09-23 08:16:23 +00:00
Luke Howard
114d0081c1 Fix for Howard's fix for ITS #2704
The oblique SLAPI interface requires that preop bind plugins return 1 in the
case that they have authoritatively handled the bind; of course, this is
the same return value that doPluginFNs() returns in the case of no plugins
being called.

This patch should distinguish between the two cases...
2003-09-23 07:40:29 +00:00
Howard Chu
28d466ba66 ITS#2526 Fix slapi builds
note that -lltdl is added redundantly if --enable-modules was specified.
It seems to me that --enable-slapi should have implied --enable-modules
from the beginning.
2003-09-23 06:11:38 +00:00
Howard Chu
a8ae9bb31d ITS#2704 don't hang client when no preop plugins are loaded 2003-09-23 05:35:38 +00:00
Howard Chu
089a4852d6 ITS#2678 complain if updateref is missing on a slave database 2003-09-22 18:54:08 +00:00
Luke Howard
ff073b8cd5 Check for HAVE_LONG_LONG in STRTOL macro 2003-09-22 14:01:31 +00:00
Howard Chu
5fb7ea2294 Cleanup prev commit 2003-09-22 10:11:10 +00:00
Howard Chu
0342904699 back-hdb caching updates, use EntryInfo cache for hdb_dn2idl. 2003-09-22 08:37:32 +00:00
Howard Chu
365a3bac3f Tweak entry caching: only maintain LRU list on cached entries, not
on arbitrary EntryInfo.
2003-09-21 23:08:44 +00:00
Howard Chu
fddbe13c6e Revert broken index optimizations 2003-09-21 10:11:46 +00:00
Luke Howard
3846a8881a Define SLAP_STRTOL macro for integerBitAndMatch() and integerBitOrMatch()
usage - necessary to use larger types for interop with a certain client
that would expect the assertion (attr:1.2.840.113556.1.4.803:=2147483648)
to match a signed value (eg. -2147483646).

There are probably better / more portable solutions; review appreciated.
2003-09-21 06:26:43 +00:00
Howard Chu
6da0f1e48e ITS#2573 dynamic group support
moved labeledURI into system schema
  attribute types that inherit from labeledURI may be used in dynamic
    groups e.g. access to * by group/groupOfURLs/memberURL=foo
2003-09-20 08:16:04 +00:00
Howard Chu
1e808d5ec9 Fix crashes if test_filter is called with NULL op 2003-09-20 08:12:22 +00:00
Howard Chu
20902a2be3 Fix segfault if entry_get is called with NULL attribute 2003-09-20 07:48:57 +00:00
Howard Chu
bb13266a15 Plug memleak in slap_parseURI 2003-09-20 05:55:48 +00:00
Howard Chu
f2c3ba16d6 cn=ldapsync berval cleanup 2003-09-20 03:26:40 +00:00
Howard Chu
93248cee58 Tweak normalization in slap_entry2mods 2003-09-20 03:25:05 +00:00
Howard Chu
1240c70ff4 ITS#2497, implement value-level ACLs:
access to attr=foo val.regex=bar.*
2003-09-20 03:23:10 +00:00
Kurt Zeilenga
3ca86ffffd Hide experimental features 2003-09-19 18:41:28 +00:00
Kurt Zeilenga
a9a28794bd Hide experimental controls 2003-09-19 18:38:35 +00:00
Kurt Zeilenga
3e49a9cf6e add "proxy" to "authorization" in a few places 2003-09-19 18:23:37 +00:00
Howard Chu
1881ae872f ITS#2729 fix typos 2003-09-19 00:49:33 +00:00
Jong Hyuk Choi
f6d883d901 error behavior fix and TODO 2003-09-18 06:04:28 +00:00
Jong Hyuk Choi
a0331a0487 missing or empty attrs list in a syncrepl specification
is changed to mean attrs="*"
2003-09-17 23:06:57 +00:00
Luke Howard
9459a7f535 fix typo 2003-09-17 11:05:06 +00:00
Jong Hyuk Choi
537ccc3f5f fix for persistent search termination (ITS#2724)
- the consumer slapd did not terminate when the provider is alive
 - use a timeout in ldap_result() of syncrepl.c
2003-09-17 10:34:10 +00:00
Jong Hyuk Choi
d336d7783b fix config file processing (ITS#2722) 2003-09-17 05:34:47 +00:00
Howard Chu
94e88c3700 ITS#2679 don't use cached ACL state from different attribute 2003-09-16 22:03:26 +00:00
Kurt Zeilenga
99f968b597 Initial support for pre/post read controls.
TODO:
	Fix transactional consistency
	Add client response control handling
2003-09-16 18:56:04 +00:00
Kurt Zeilenga
8f0bc2d55b cleanup 2003-09-15 21:53:58 +00:00
Kurt Zeilenga
4679178db2 Don't pass NULL when string is expected.
Other Cleanup
2003-09-15 21:22:20 +00:00
Luke Howard
b299d7e067 Modifications must be copied before calling slap_mods_check() because
the pretty function may replace values which are owned by the SLAPI plugin

slapi_entry_dup() optimization - avoid string re-encoding

Fix slapi_add_internal() logic errors (was this ever tested?)

Don't attempt to free entries that have been cached; see new internal
slapi_add_entry_internal_locked() API
2003-09-15 06:53:54 +00:00
Howard Chu
aee837c999 More deadlock tweaks. 2003-09-14 10:27:59 +00:00
Howard Chu
41957e5129 ITS#2649, never defer Abandon requests 2003-09-13 11:15:23 +00:00
Howard Chu
370fd22870 Add comment about normalized values in mods vs entry attributes 2003-09-13 09:51:28 +00:00
Jong Hyuk Choi
c83f1812ef fix in slap_entry2mods() 2003-09-13 00:36:14 +00:00
Jong Hyuk Choi
3868f3b5a7 LDAP_SASL_INTERACTIVE -> LDAP_SASL_QUIET 2003-09-12 22:49:14 +00:00
Jong Hyuk Choi
b39039a141 fix for Makefile change 2003-09-12 21:06:29 +00:00
Howard Chu
a2cfda21cd Fix prev commit 2003-09-12 19:40:04 +00:00
Howard Chu
61155ca8e8 Fix prev commit 2003-09-12 18:53:59 +00:00
Howard Chu
72adc38cdf Construct ctxcsn entries directly, plug memory leaks, remove
dependency on slap_mods_check and slap_mods2entry
2003-09-12 18:52:34 +00:00
Howard Chu
10811b6f51 Clarify/standardize library version mismatch error messages 2003-09-12 00:54:21 +00:00
Luke Howard
b3e8d9189c Fix SLAPI bind pre-operation plugin regression 2003-09-11 09:04:03 +00:00
Jong Hyuk Choi
d5be4896a3 add bdb_get_commit_csn() for use in bdb_search 2003-09-10 17:03:01 +00:00
Kurt Zeilenga
6f39517929 ITS#2707: fix 'access to dn.subtree="" by ...' directives 2003-09-10 02:33:36 +00:00
Kurt Zeilenga
a1b9d3148e subtree ACI patch from Ralf 2003-09-09 18:37:31 +00:00
Jong Hyuk Choi
005afc86e4 more EntryInfo handling fix code (overriding the prev fix) 2003-09-09 01:25:58 +00:00
Jong Hyuk Choi
4cda6127ee use of bdb_modify_internal() in bdb_csn_commit()
fix EntryInfo handling in bdb_csn_commit()
2003-09-08 22:55:04 +00:00
Jong Hyuk Choi
57152b08ce structrual oc fix 2003-09-05 20:13:10 +00:00
Jong Hyuk Choi
c25a892e62 misc cleanup 2003-09-04 19:48:53 +00:00
Jong Hyuk Choi
7357caac90 memory mgmt cleanup 2003-09-03 23:47:37 +00:00
Jong Hyuk Choi
7f882daf15 Schema checking option for LDAP Sync replication 2003-09-03 21:42:52 +00:00
Jong Hyuk Choi
d06d4d33a8 no schema checking patch for proxy cache (apurva) 2003-09-03 15:44:22 +00:00
Jong Hyuk Choi
aa8ff20012 Patch for ITS#2692 2003-09-03 08:21:51 +00:00
Luke Howard
da56275a2c Support per-backend ACL plugins 2003-09-01 08:49:22 +00:00
Luke Howard
0edb270b9e Support for ACL plugins 2003-08-31 08:17:21 +00:00
Luke Howard
d649ae0808 Inherit operation pblock for SLAPI 2003-08-31 08:14:54 +00:00
Luke Howard
57f242c3fb Call SASL bind post-op SLAPI plugin _after_ DN has been set 2003-08-31 03:11:05 +00:00
Luke Howard
e40215e780 Call post-op bind functions after SASL bind 2003-08-31 03:08:06 +00:00
Luke Howard
a08fb7de7e Expose SASL context to SLAPI plugins (SLAPI_X_CONN_SASL_CONTEXT)
Useful for plugins that may wish to collude with the SASL library to,
for example, retrieve a user's authorization data from a Kerberos ticket
for access control purposes
2003-08-30 17:29:14 +00:00
Jong Hyuk Choi
c36f32a9e4 slaptool update for LDAP Sync replication 2003-08-30 15:19:35 +00:00
Jong Hyuk Choi
fb7db00810 cleanup 2003-08-29 21:24:05 +00:00
Jong Hyuk Choi
853c03e38d more patches for ITS#2692 (Thanks Luke!) 2003-08-29 17:02:53 +00:00
Jong Hyuk Choi
5548a2dd0c Sync replication config option format change (interval) 2003-08-28 22:29:12 +00:00
Jong Hyuk Choi
9760933c20 unifdef LDAP_CACHING 2003-08-27 23:21:17 +00:00
Jong Hyuk Choi
ec9e19a573 cleanup 2003-08-27 22:18:52 +00:00
Jong Hyuk Choi
090ac0a772 unifdef LDAP_SYNC and LDAP_SYNCREPL 2003-08-27 22:16:04 +00:00
Jong Hyuk Choi
4559aa06aa cleanup 2003-08-27 20:51:04 +00:00
Jong Hyuk Choi
3e6f9f4ee5 returning LDAP return code 2003-08-27 20:26:55 +00:00
Jong Hyuk Choi
286986c4e8 NO_SCHEMA_CHECK backend flag 2003-08-27 16:40:26 +00:00
Jong Hyuk Choi
27b8d71cbb cleanup 2003-08-27 16:39:53 +00:00
Jong Hyuk Choi
81a53a9a5c LDAP Sync protocol extension
- do not send updates in state mode when
  syncCookie >= contextCSN (or omitCSN if changelog is used)
2003-08-26 22:49:44 +00:00
Jong Hyuk Choi
74d6415f1e cleanup 2003-08-26 19:04:12 +00:00
Jong Hyuk Choi
9faedad3e5 Context CSN updates for hdb 2003-08-26 18:57:09 +00:00
Jong Hyuk Choi
79b04b12a2 Context CSN Patch (5)
- persistent search patch
- cascading search patch
2003-08-26 00:35:27 +00:00
Jong Hyuk Choi
7ef160494f Context CSN Patch (4)
- context csn management for modrdn
- call slap_mods_opattrs() for moved entries as well
2003-08-25 22:23:49 +00:00
Jong Hyuk Choi
a636f61b01 misc cleanup 2003-08-25 22:18:33 +00:00
Jong Hyuk Choi
fbb8c9da5e Context CSN Patch (3)
- context csn management for delete
- a later patch will take care of inconsistencies caused by
  interactions between outstanding search and scope-outs
2003-08-25 20:20:26 +00:00
Jong Hyuk Choi
3be0b77c88 Context CSN Patch (2)
- BDB context csn codes moved to a separate function in back-bdb/ctxcsn.c
2003-08-25 19:15:04 +00:00
Jong Hyuk Choi
d53c90dc29 Context CSN patch (1) - cleanup
- serialize search_candidates() with the read of search_context_csn
2003-08-25 17:10:18 +00:00
Luke Howard
3301a31755 Fix symbol name collision when LDAP_SYNC && BDB_HIER 2003-08-23 11:58:33 +00:00
Jong Hyuk Choi
660617ae66 Context CSN patch (1)
- currenty works for refreshOnly mode of LDAP Sync
- Context CSN for add / modify is implemented
- code for delete / modrdn / refreshAndPersist will be soon committed
2003-08-23 02:51:33 +00:00
Jong Hyuk Choi
dd9eab0e30 Schema definition for contextCSN 2003-08-22 21:24:03 +00:00
Kurt Zeilenga
f39fb6d91b Add missing assignment in last commit. 2003-08-22 21:16:16 +00:00
Kurt Zeilenga
be22981d78 Add nameAndOptionalUID pretty routine... improves uniqueMember handling
Should resolve ITS#2664.
2003-08-22 21:03:03 +00:00
Howard Chu
2ff82a82c5 Tweaks to callback processing; callbacks can return SLAP_CB_CONTINUE to
fall into the regular send_ldap_* functionality instead of calling into
those functions explicitly. Nested callbacks still aren't handled as
cleanly as they might be.
2003-08-19 03:22:07 +00:00
Howard Chu
f1b8808010 Fix tmpmemctx conflicts 2003-08-19 03:19:07 +00:00
Jong Hyuk Choi
6659cf3ea1 LDAP Sync protocol change : state mode (add+present) and log mode (add+delete) 2003-08-14 16:27:36 +00:00
Jong Hyuk Choi
fcc59c6488 Proxy caching update : op->o_caching_on flag removed 2003-08-14 02:11:46 +00:00
Jong Hyuk Choi
d113166475 Proxy cache patch (by Jong, Apurva, & Kurt)
1. Glueing patch for proxy cache
2. test script update to avoid schema checking voilations (attributes set)
3. configuration patch for proxy cache
2003-08-13 23:44:56 +00:00
Jong Hyuk Choi
264f690c81 ITS#2681: set rc to LDAP_INVALID_CREDENTIALS or 1 2003-08-13 20:27:10 +00:00
Hallvard Furuseth
2d48b5dc99 Handle full syntax of Generalized Time and UTC Time.
No longer accept initial and trailing spaces in these syntaxes.
2003-08-13 20:04:59 +00:00
Luke Howard
281627d81d Do not attempt to map positive error codes returned by plugins to
negative error codes.

Plugins should never return positive error codes except in the case
of bind pre-operation plugins, where they should return SLAPI_BIND_XXX.

This should fix ITS #2616 ...
2003-08-11 09:55:45 +00:00
Kurt Zeilenga
2f5fbeb180 ITS#2664: add uniqueMemberMatch 2003-08-11 02:12:20 +00:00
Pierangelo Masarati
d0a7d4a9fd clear list pointer in instatiated copy 2003-08-09 17:48:02 +00:00
Kurt Zeilenga
3186a1c27a Remove deprecated code. Will remove slap.h code define later. 2003-08-09 03:44:30 +00:00
Kurt Zeilenga
b54780f940 Add initial support for modify/increment. No over/under flow detection.
Currently discovered via a "feature", but should use a control.
Start of a control made, but needs to be better integrated (with
auto use in ldapmodify(1)).
2003-08-07 16:42:40 +00:00
Luke Howard
1251d801c1 Allow SLAPI plug-ins to override OpenLDAP extended operations
(please review)
2003-08-01 03:40:11 +00:00
Kurt Zeilenga
009191da73 delete incorrect URI description. RFC 2255 should be used. 2003-07-31 08:41:11 +00:00
Luke Howard
e01031b357 Set AttributeDescription in slapi_acl_check_mods() 2003-07-15 12:10:19 +00:00
Pierangelo Masarati
53b7e6fbcf apparently Oracle does not support AS in joins (ITS#2642) 2003-07-15 11:26:17 +00:00
Pierangelo Masarati
0bb807f4be fix format (ITS#2640?) 2003-07-15 10:57:12 +00:00
Jong Hyuk Choi
d0868eae95 Various changes
- SyncRepl support in back-ldbm
- back-ldbm functions return LDAP return codes for internal operations (callback)
- subentry code copy from back-bdb
- Misc udpates
2003-07-15 00:55:58 +00:00
Jong Hyuk Choi
aaa66d254e Various udpates for SyncRepl 2003-07-15 00:43:39 +00:00
Jong Hyuk Choi
b3e62ef604 SyncRepl updates for back-bdb / back-ldbm 2003-07-15 00:33:49 +00:00
Jong Hyuk Choi
2b803b0459 SyncRepl is changed to share the following routnines :
slap_mods_opattrs(), slap_mods_check(), slap_mods2entry()
2003-07-11 01:01:27 +00:00
Jong Hyuk Choi
b231c33efa export glueing code 2003-07-08 20:07:07 +00:00
Luke Howard
d29ed4407c Always call modification postoperation plugins even if a
preoperation plugin has removed all modifications and
thus there are none to pass to the backend.

Accept SSF as a valid parameter block value.

Fix completely broken slapi_access_allowed()
2003-07-03 23:17:54 +00:00
Luke Howard
c9e134f0f7 Support for SLAPI plugin extensions API.
This API allows a plugin to associate arbitrary context with an
internal server object such as a connection or operation.

Some documentation is at:

http://enterprise.netscape.com/docs/directory/602/plugin/function.htm#1104211
2003-07-03 19:04:18 +00:00
Luke Howard
9936694960 Expose SSF to plugin 2003-07-03 19:01:13 +00:00
Jong Hyuk Choi
cc6f31782d - partial attribute replication tested ok
- conf file processing udpate
- misc updates
2003-07-02 14:51:23 +00:00
Jong Hyuk Choi
fd13d4d50f misc cleanup 2003-07-01 15:43:25 +00:00
Jong Hyuk Choi
5bc1e1a3c9 Berkeley DB congestion avoidance 2003-07-01 11:55:18 +00:00
Jong Hyuk Choi
ea57395f82 Glueing code changes for replica promotion scenario 2003-06-28 00:52:40 +00:00
Jong Hyuk Choi
3b83a0b0a7 fix from Apurva 2003-06-28 00:36:27 +00:00
Jong Hyuk Choi
7087a8f58d ITS#2618 fix 2003-06-27 20:29:32 +00:00
Jong Hyuk Choi
262f8bf11f LCUP primitive routines removed 2003-06-27 17:39:48 +00:00
Jong Hyuk Choi
e70377b875 IDL cache AVL tree initialize 2003-06-26 06:24:24 +00:00
Jong Hyuk Choi
9df9b1377a reinitialize presentlist & nonpresentlist 2003-06-25 23:21:18 +00:00
Jong Hyuk Choi
9faeffe8c6 fix the glueing code 2003-06-25 22:28:50 +00:00
Jong Hyuk Choi
2e793edc77 add SLAP_OC_GLUE flag to oc_map 2003-06-25 22:28:19 +00:00
Jong Hyuk Choi
5a5da65d36 #ifdef'ing SLAP_OC_GLUE definition 2003-06-25 16:46:36 +00:00
Jong Hyuk Choi
5d203d0cc5 not returning glue entries unless manageDSAit is set 2003-06-25 16:22:08 +00:00
Jong Hyuk Choi
86196e11a0 - syncrepl uses LDAP URL only 2003-06-23 14:15:28 +00:00
Jong Hyuk Choi
30ccb6087f - syncrepl configuration uses URL only
- slimit, tlimit fix (ITS# 2592)
2003-06-23 14:14:47 +00:00
Jong Hyuk Choi
90364acc0b - syncrepl uses per-thread memory allocator
- slimit, tlimit fix (ITS# 2592)
2003-06-23 14:13:38 +00:00
Kurt Zeilenga
6e602b5494 ITS#2607: improve socket() error logging with AF info 2003-06-21 22:55:15 +00:00
Jong Hyuk Choi
001cc11ef2 Proxy cache updates (with a test suite)
- IBM India Research (Apurva)
2003-06-21 00:21:57 +00:00
Kurt Zeilenga
3e0e06bcc5 ITS#2605: move #if 0 to fix compilation problem on Windows 2003-06-19 02:41:33 +00:00
Howard Chu
6fc06a7801 ITS#2596 init ID list 2003-06-15 23:10:30 +00:00
Kurt Zeilenga
02bfbae186 Initialize schema before starting server. 2003-06-15 05:57:14 +00:00
Kurt Zeilenga
46122fa688 Fix ITS#2578 2003-06-15 05:52:51 +00:00
Howard Chu
44e32b3f7f ITS#2594 add URI support for replica config 2003-06-14 00:06:36 +00:00
Howard Chu
a505d0c1fa ITS#2587 fix failure return from telephoneNumberNormalize 2003-06-13 17:28:45 +00:00
Howard Chu
0c8a4b1756 More fixes for modify - don't delete index keys that are still being used
by other values of the attribute.

Also, filter out duplicate keys to avoid redundant DB operations.

Key collisions due to separate attributes indexed by supertype are still
not safe. Yuck.
2003-06-13 06:09:45 +00:00
Howard Chu
9004df89d7 ITS#2593 keep entryinfo locked during delete 2003-06-12 22:47:13 +00:00
Howard Chu
aa3b69eb32 ITS#2440 unmunge init_module names 2003-06-12 22:25:20 +00:00
Howard Chu
8d9fd64599 ITS#2437 use lt_dlopenext instead of lt_dlopen for convenience 2003-06-12 22:21:30 +00:00
Jong Hyuk Choi
92988db5d3 cleanup 2003-06-12 15:11:08 +00:00
Howard Chu
c3039b66fe Another BDB_HIER redundant modification 2003-06-12 11:17:35 +00:00
Howard Chu
299983eb74 Another BDB_HIER e_name / e_nname fix 2003-06-12 11:14:50 +00:00
Howard Chu
8defa92746 ITS#2593? get entry lock sooner... 2003-06-12 11:11:37 +00:00
Hallvard Furuseth
d61f44fa7c Revert previous patch: Bad time for it. 2003-06-12 09:20:04 +00:00
Howard Chu
9c47359912 Bind fixes for chaining 2003-06-11 22:35:31 +00:00
Jong Hyuk Choi
33b8042bc0 cleanup 2003-06-11 19:35:31 +00:00
Jong Hyuk Choi
f07179ca61 syncrepl changes
- can handle multiple syncinfo
- ldap_sync_search() added
2003-06-11 17:03:57 +00:00
Jong Hyuk Choi
3f8bb27a83 a fix for back-bdb entry cache 2003-06-11 17:01:54 +00:00
Hallvard Furuseth
9c0ca8d9a3 Add 'deref=' to Statslog SRCH output. 2003-06-11 16:22:29 +00:00
Hallvard Furuseth
6b37465d94 Fix printf format in debug output. 2003-06-11 15:50:25 +00:00
Howard Chu
cd5d33a17c Add EBCDIC support. (but of course you need an OS/390 port of libltdl) 2003-06-11 13:37:59 +00:00
Howard Chu
4c5de987cd Fix config, chaining 2003-06-11 06:32:24 +00:00
Howard Chu
09d05a57c2 More overlay tweaks. Added LDAP chaining overlay. 2003-06-11 04:36:35 +00:00
Howard Chu
2a29233c72 Fix response callbacks 2003-06-11 02:45:50 +00:00
Howard Chu
62da6969dc Preliminary backend overlay support, based on backglue, not tested... 2003-06-11 02:27:51 +00:00
Kurt Zeilenga
0db73d9d15 code clean before adding readback hacks 2003-06-11 00:59:10 +00:00
Kurt Zeilenga
544805dcec localize SYNCREPL config defines 2003-06-10 18:36:47 +00:00
Kurt Zeilenga
a908d75f0c s/tls/starttls/
s/master/provider/
2003-06-10 18:33:44 +00:00
Kurt Zeilenga
a8e859a401 Add server side assert control support. 2003-06-10 04:44:41 +00:00
Kurt Zeilenga
0b3f6e364c vrFilter -> o_vrFilter 2003-06-10 03:32:33 +00:00
Kurt Zeilenga
c249f3ac21 Fix vrFilter compile error 2003-06-10 03:30:14 +00:00
Kurt Zeilenga
3ca2a91ae1 Assertion control with no backend support (yet) 2003-06-10 02:19:30 +00:00
Howard Chu
782b481a9a ITS#2580 - avoid cache deadlock 2003-06-09 22:00:00 +00:00
Kurt Zeilenga
af6b191c96 misc cleanup 2003-06-09 21:33:46 +00:00
Luke Howard
c3c881976a Call SLAPI close function, not start function on shutdown 2003-06-09 04:11:06 +00:00
Luke Howard
cbb6117448 Call SLAPI start plugins in slap_startup(), not slap_init(); plugins
aren't loaded at slap_init() time
2003-06-07 14:35:29 +00:00
Luke Howard
54392b6527 Test error code from doPluginFNs() correctly 2003-06-07 06:52:52 +00:00
Luke Howard
721ea2046e Call SLAPI start/close plugins at init/shutdown time 2003-06-07 06:32:52 +00:00