Commit Graph

4573 Commits

Author SHA1 Message Date
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
Howard Chu
6a8cac7ac8 Fix select/yield 2003-06-06 23:52:06 +00:00
Hallvard Furuseth
93b19fdf9a Fix bdb_db_hash() to handle padding bits in integers. 2003-06-05 11:55:27 +00:00
Hallvard Furuseth
579e768046 #include Perl files before OpenLDAP files, and #undef _ (ITS#2513) 2003-06-05 11:44:06 +00:00
Hallvard Furuseth
d7c2f20ba7 Change dn->bv_val to op->o_req_dn.bv_val in LDAP_LOG() (from rev 1.24 change). 2003-06-04 12:34:42 +00:00
Hallvard Furuseth
642c8b1627 Break up too long string literals (>509 characters, ISO C's minimum max size). 2003-06-03 18:01:37 +00:00
Hallvard Furuseth
0ef242a5aa Add missing 0 initializer in builtin_extops[] 2003-06-03 17:49:33 +00:00
Hallvard Furuseth
efcb1b0bc0 Remove comma at end of enumerator list. 2003-06-03 17:47:26 +00:00
Hallvard Furuseth
aa90e4aade Do not set op->o_private (to the process' pid). Only abandon needed it. 2003-06-03 17:31:25 +00:00
Kurt Zeilenga
05101a5864 Fix -T usage 2003-06-02 22:11:54 +00:00
Kurt Zeilenga
fb0f6eeeb4 Axe abandon support 2003-06-02 20:20:45 +00:00
Kurt Zeilenga
2fcbaf29d9 read get_extop func 2003-06-01 00:09:32 +00:00
Pierangelo Masarati
412f510868 fix typo; need to port fix in OPENLDAP_REL_ENG_2_2 2003-05-31 22:27:19 +00:00
Kurt Zeilenga
f0063245ad Set schema flags (might need schema check routines as well) 2003-05-31 21:56:18 +00:00
Kurt Zeilenga
c68057f598 Schema registration stuff needs work to set flags 2003-05-31 21:46:33 +00:00
Kurt Zeilenga
cc6630d8dd Don't bother to hide when LDAP_DEVEL is defined. 2003-05-31 20:57:14 +00:00
Kurt Zeilenga
16af7fdd4c Hide experimental controls and extended operations 2003-05-31 20:19:02 +00:00
Kurt Zeilenga
001953cdc5 Schema cleanup 2003-05-31 18:57:32 +00:00
Kurt Zeilenga
fefb7a97e4 Misc cleanup (needs better error handling and general code cleanup) 2003-05-31 05:48:00 +00:00
Kurt Zeilenga
11f990a641 Fix intermediate responses 2003-05-31 05:32:57 +00:00
Kurt Zeilenga
12304f64e5 Merge partial and intermediate responses 2003-05-31 05:01:49 +00:00
Kurt Zeilenga
03233d2719 Move SYNC, SYNCREPL, and LDAP_CACHING out from behind LDAP_DEVEL 2003-05-31 02:55:23 +00:00
Jong Hyuk Choi
732f5501a9 base entry checking for refreshAndPersist as well 2003-05-30 21:47:15 +00:00
Jong Hyuk Choi
771df8f75b remove DB_NOTFOUND in rc checking 2003-05-30 21:45:07 +00:00
Jong Hyuk Choi
c6e5cca3f4 cleanup comments of sl_mem_detach() 2003-05-30 21:44:18 +00:00
Kurt Zeilenga
0954351565 Change ACL default style to exact (from regex) 2003-05-30 05:24:39 +00:00
Kurt Zeilenga
193c7ca228 Fix matching rule flags 2003-05-30 02:17:30 +00:00
Howard Chu
676984e8d3 Fix slap_EXOP declarations 2003-05-29 07:18:58 +00:00
Howard Chu
5d0ba372e5 Fix LBER_OPT_MEMCTX behavior 2003-05-28 22:17:08 +00:00
Howard Chu
ac908e15e8 Fix TL malloc/free 2003-05-28 22:15:44 +00:00
Pierangelo Masarati
476e1958b6 fix typo 2003-05-26 16:31:20 +00:00
Luke Howard
0af6508632 s/forms/form in PADL copyright 2003-05-25 04:48:49 +00:00
Kurt Zeilenga
32e2521867 Remove $OpenLDAP$ from installed file 2003-05-25 04:08:59 +00:00
Kurt Zeilenga
5e6a5174ea Clarify copyrights 2003-05-25 04:07:47 +00:00
Kurt Zeilenga
7ca24a8591 Another round of minor copyright updates 2003-05-25 03:56:57 +00:00
Luke Howard
4cee2467be s/forms/form in PADL copyright 2003-05-25 02:59:09 +00:00
Kurt Zeilenga
4b3545cd2e Update IBM copyrights
Kurt Zeilenga, IBM Corporation
2003-05-25 02:03:07 +00:00
Howard Chu
f7d7700b6e ITS#2549, init memctx to NULL. Also reset ber memctx to NULL when freeing. 2003-05-25 01:32:39 +00:00
Kurt Zeilenga
1cc7b10b7a remove cruft 2003-05-25 01:17:38 +00:00
Howard Chu
4a3748b6cf Restructured to avoid direct use of sl_malloc functions. Minimizes impact
of #ifdef USE_SL_MALLOC...
2003-05-25 00:53:08 +00:00
Kurt Zeilenga
86fdca5177 #if 0 debug statements in signal handlers 2003-05-24 21:12:20 +00:00
Pierangelo Masarati
6180bcbf51 Finish proxy cache cleanup and API porting (on behalf of Apurva Kumar) 2003-05-24 17:38:04 +00:00
Howard Chu
283471d84e Fix syncinfo reference after free 2003-05-24 06:50:48 +00:00
Kurt Zeilenga
8035d016c4 Fix typos in last commit
Apply to Makefile as well
2003-05-24 06:15:00 +00:00
Kurt Zeilenga
73f2048456 Add clarification as to source of this file
Add OpenLDAP copyright statement
2003-05-24 03:18:50 +00:00
Howard Chu
9dace23dec Change slap_sasl_authorized to take an Operation instead of a Connection,
for compatibility with proxyAuthz control
2003-05-24 02:44:46 +00:00
Howard Chu
83f0acc1d8 ITS#2533 backend_attribute uses tmpmemctx, must free accordingly 2003-05-24 02:06:18 +00:00
Howard Chu
c40115c12e Don't use single malloc for BDB_HIER e->e_name + e->e_nname 2003-05-24 01:54:03 +00:00
Kurt Zeilenga
d6bfa4ab8f remove documentation for bind_simple_unprotected
(which was axed log ago)
2003-05-24 01:26:38 +00:00
Howard Chu
61eec0734a Fix double-free'd rdn bug 2003-05-24 00:46:52 +00:00
Jong Hyuk Choi
2e5fb908d1 - glue entry management change
- op->o_tmpmfunc setup
2003-05-23 13:32:13 +00:00
Howard Chu
4c0e4741f7 Add comments to sl_mem_detach() 2003-05-23 09:10:05 +00:00
Kurt Zeilenga
703444febd Partially fix slapi builds, still have undefined references 2003-05-23 06:27:38 +00:00
Howard Chu
3e7a533790 ITS#2542 fix? 2003-05-23 04:24:39 +00:00
Howard Chu
2bb9a15d57 ITS#2541 added bdb_cache_delete_cleanup() to defer cache delete. 2003-05-23 02:04:03 +00:00
Howard Chu
505838469d Don't re-cache IDL's retrieved from the cache 2003-05-23 01:23:53 +00:00
Howard Chu
f3e0a28f18 Don't avl_insert NULL kids 2003-05-23 01:12:50 +00:00
Howard Chu
fe1bcdeb28 ITS#2540 not sure, difficult to reproduce crash... 2003-05-22 23:48:02 +00:00
Hallvard Furuseth
6362a51fe8 Printf %p expects a void pointer.
Other pointers may have different representation.
2003-05-22 22:00:54 +00:00
Hallvard Furuseth
6d3d9fe027 Don't do pointer arithmetic on void pointers. 2003-05-22 21:52:02 +00:00
Hallvard Furuseth
86ff7f4654 Send correct pid in 'pid:' line (ITS#2519).
Also don't lock op->o_conn->c_mutex.  It is already locked by slapd/abandon.c.
2003-05-22 19:44:01 +00:00
Howard Chu
dc41a6b37e ITS#2529 null DN in log 2003-05-22 09:22:41 +00:00
Howard Chu
9e798820e3 ITS#2522 fix candidate return values - once more, with feeling... 2003-05-22 09:17:42 +00:00
Howard Chu
ca4892d5e7 ITS#2533 remember which backend fetched the entry 2003-05-22 08:57:13 +00:00
Howard Chu
ade6b8b750 ITS#2217 fix option sorting 2003-05-22 08:39:55 +00:00
Jong Hyuk Choi
a0faa93683 If the sync mode is refreshAndPersist,
search does not return error when base entry is not found
2003-05-21 23:44:10 +00:00
Jong Hyuk Choi
4192c4aaaa select loop changes for persistent threads 2003-05-20 23:52:11 +00:00
Jong Hyuk Choi
2b62559aa5 runqueue update according to the idle timer change 2003-05-20 22:13:21 +00:00
Jong Hyuk Choi
7e7429267e persistent search updates with recent changes 2003-05-20 20:21:39 +00:00
Hallvard Furuseth
05d7b891ec Move SLAPD_MONITOR_DN out of format strings.
Otherwise slapd would break if SLAPD_MONITOR_DN contained a '%'.
2003-05-20 18:16:45 +00:00
Hallvard Furuseth
3db60ba479 Fix debug output (print int as %d, not %s). 2003-05-20 18:13:39 +00:00
Hallvard Furuseth
c702f2e50f Fix debug statement (remove spurious '.' after '\n'). 2003-05-20 18:12:14 +00:00
Luke Howard
9184d038ea Build without HAVE_TLS 2003-05-20 02:59:19 +00:00
Jong Hyuk Choi
4f58efc4d1 - change in message to modlist conversion 2003-05-20 01:45:12 +00:00
Pierangelo Masarati
074f54f300 clarify the size of a generalizedTime 2003-05-19 21:10:49 +00:00
Kurt Zeilenga
60fc6860d2 Fix typo 2003-05-19 18:54:15 +00:00
Pierangelo Masarati
988287d681 do not init schema that's not specific to monitoring 2003-05-18 00:15:28 +00:00
Pierangelo Masarati
072280600a use back-monitor without including core.schema; commit by now; will cleanup later 2003-05-17 17:19:16 +00:00
Kurt Zeilenga
bf438cda3e Clean up SLAP_NVALUES comment 2003-05-16 03:58:28 +00:00
Kurt Zeilenga
4604634592 NVALUES updates to approximate matching... 2003-05-16 03:57:01 +00:00
Hallvard Furuseth
6af256b8e1 Fix some Statslog()s: Add missing newlines. Print file descriptor as long. 2003-05-15 23:45:33 +00:00
Howard Chu
8e550fae0c Streamlined listener/select/accept handling:
For ITS#2482:
  added sl_is_mute flag to Listener - when set, the listener is ignored
  if accept() on a listener fails with EMFILE, set the sl_is_mute flag
  when removing a connection, if emfile != 0, look for a listener to unmute

  For ITS#2374:
  if global_idletimeout is set and there are active sessions, use a timeout
  on the select() to actively detect idle sessions.
2003-05-15 13:10:52 +00:00
Pierangelo Masarati
64485f5fe0 remove unused arg from fprintf (ITS#2516) 2003-05-15 12:18:04 +00:00
Hallvard Furuseth
f972945131 #include "lutil.h" to get lutil_strcopy(). 2003-05-15 11:51:33 +00:00
Hallvard Furuseth
d426e40e57 Remove excess `0' arguments to fprintf. 2003-05-15 11:47:42 +00:00
Hallvard Furuseth
592e05e3e1 #include <ac/string.h> to get strcasecmp(). 2003-05-15 11:43:33 +00:00
Pierangelo Masarati
48c65151c9 add create/modify timestamp to all entries; use monitorTimestamp for start/current time; minor cleanup 2003-05-15 01:19:30 +00:00
Pierangelo Masarati
a004061c0a need starttime before backend db_open() is invoked 2003-05-15 01:12:17 +00:00
Hallvard Furuseth
44a99d694e #include <ac/string.h>, to get strlen(), strncmp() and strncasecmp(). 2003-05-14 21:36:34 +00:00
Kurt Zeilenga
d0f025bd46 updated certificateExactMatch support,
doesn't yet use ctx malloc routines
2003-05-14 20:52:23 +00:00
Howard Chu
4c6888cada ITS#2514 fix NULL deref 2003-05-14 19:30:25 +00:00
Howard Chu
ae9e88a78a ITS#2509 add missing arg for dnNormalize 2003-05-14 13:58:30 +00:00
Howard Chu
b7351c66bc ITS#2511 use %p to log pointer values 2003-05-14 13:54:15 +00:00
Luke Howard
ac7ac5acef Don't crash if attr_find() fails (Howard, you might like to review this) 2003-05-14 07:25:00 +00:00
Luke Howard
eed45f454c Fix content rule validation code -- don't use validation result variable
as an iterator!
2003-05-14 05:29:46 +00:00
Howard Chu
1e49fdc634 ITS#2507, fix *_candidates error return values 2003-05-13 11:39:14 +00:00
Howard Chu
190f161d74 Optimize modify_internal, only reindex the actual modified values, not
the entire attribute.
2003-05-13 03:09:48 +00:00
Howard Chu
9e8bbf129f Fix prev commit, must passthru precomputed scopes 2003-05-13 02:44:22 +00:00
Howard Chu
fb52e37e06 ITS#2506 - fix prev patch, don't ignore undefined filters. treat as False,
test_filter will never match them anyway.
2003-05-13 01:16:26 +00:00
Howard Chu
b6ef8c1876 ITS#2505 - make sr_strings per-op instead of static 2003-05-12 23:57:19 +00:00
Howard Chu
574ca540d4 Revert prev commit 2003-05-11 10:09:51 +00:00
Howard Chu
236321ce9c Plug leak in hdb 2003-05-11 08:42:58 +00:00