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
256732f2ce
s/tls/starttls/
2003-06-10 18:32:36 +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
54d01d8946
Add missing externs based upon jfrederic.clere@fujitsu-siemens.com
...
suggestion in ITS#2559.
2003-05-30 20:04:59 +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
3821d837a1
#include <ac/unistd.h> to get write()
2003-05-15 11:45:57 +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
Howard Chu
6aa3637545
Added SLAP_TOOL_READMAIN and SLAP_TOOL_READONLY slapMode flags. The rw
...
arg to tool_entry_open comes too late for back-bdb to use.
2003-05-11 07:03:48 +00:00
Howard Chu
2d22e02ef9
Another idle time tweak
2003-05-11 06:06:22 +00:00
Howard Chu
c84c133c90
Plug mem leak in slapindex
2003-05-10 03:56:01 +00:00
Howard Chu
399572ba50
For ITS#2502 - force release of locks on exiting threads
2003-05-09 22:30:28 +00:00
Jong Hyuk Choi
ca1da5b89a
-reenabling LDAP_CACHING
2003-05-09 16:48:50 +00:00
Jong Hyuk Choi
986bcd52a9
-syncUUID search in syncrepl
...
-test017-syncreplication
2003-05-09 06:50:44 +00:00
Pierangelo Masarati
f2dfb55780
now LDAP_CACHING can be enabled again; not sure it works, though
2003-05-09 00:36:31 +00:00
Jong Hyuk Choi
35d1bd68b9
runqueue restructuring
2003-05-07 23:52:08 +00:00
Jong Hyuk Choi
580ae073e1
runqueue update
2003-05-07 22:29:26 +00:00
Kurt Zeilenga
e64bb13148
minor tweak
2003-05-07 22:22:21 +00:00
Jong Hyuk Choi
45776bff04
a runqueue for periodic thread execution (for syncrepl)
2003-05-07 02:06:01 +00:00
Jong Hyuk Choi
6b0e1b39e5
temporarily disable LDAP_CACHING (till API update)
2003-05-05 16:03:59 +00:00
Luke Howard
8fd23795f8
Don't crash slapi_filter_get_subfilt() if no "any" filter
2003-05-05 10:23:33 +00:00
Luke Howard
1b3007c22c
Content rule logic fix
2003-05-05 09:17:10 +00:00
Luke Howard
13f0acfb6a
Don't crash if no attributes in slapi_attr_value_find()
2003-05-04 16:59:10 +00:00
Pierangelo Masarati
0864531e58
add network timeout (ITS#2413 reworked)
2003-05-03 11:30:38 +00:00
Luke Howard
83cb1037a4
Fix slapi_filter_join() behavioural bug.
...
Fix slapi_filter_dup() crasher.
Add slapi_x_filter_append(), as a replacement for slapi_filter_join() that
can create compound filters containing multiple filters. Will propose API
to Sun DS team; until then it should likely be marked LDAP_DEVEL (if SLAPI
is not entirely marked as such already).
2003-05-03 04:15:35 +00:00
Kurt Zeilenga
a82a6d8403
Junk
2003-05-02 22:14:09 +00:00
Kurt Zeilenga
d2840928c6
Remove junk
2003-05-02 22:12:07 +00:00
Jong Hyuk Choi
9543844d39
strdup cleanup
2003-05-02 18:00:33 +00:00
Howard Chu
2d5d4ecffa
ITS#2480 uninit'd vars
2003-05-02 13:38:16 +00:00
Hallvard Furuseth
5ee9264465
Fix assignment of <char/int>* to unsigned <char/int>* and vice versa.
2003-05-02 13:29:28 +00:00
Hallvard Furuseth
c5d60fc043
ctrls[] was initialized with which non-constants.
2003-05-02 13:26:25 +00:00
Hallvard Furuseth
a632038df9
Entry *e could be freed uninitialized after goto return_results;
2003-05-02 13:24:44 +00:00
Hallvard Furuseth
c46cd36088
Insert missing %s in printf format to print ldap_err2string().
2003-05-02 13:13:30 +00:00
Hallvard Furuseth
3420d12bdc
Fix printf/Debug format arguments.
2003-05-02 13:08:47 +00:00
Jong Hyuk Choi
e8cd5c2386
- LDAP_SYNCREPL defined in include/ldap.h
...
- add "updatedn" to the replication specification
- return referral to update to the slave server
2003-05-01 23:39:29 +00:00
Howard Chu
759996c6e9
Fix HDB search_aliases crash, cleanup search scope processing: call dn2idl
...
directly instead of going thru filter_candidates. Use hdb_ function prefix
in dn2id.c to avoid ambiguities...
2003-05-01 11:59:08 +00:00
Luke Howard
bb9d3ff304
Fix build breakage
2003-05-01 10:13:46 +00:00
Howard Chu
46e2b97757
ITS#2424 use two SASL contexts per session to conform to RFC 2222
2003-05-01 04:11:57 +00:00
Jong Hyuk Choi
0cafb28e31
syncrepl REFRESH : a master entry modify case fix
2003-05-01 02:14:47 +00:00
Jong Hyuk Choi
b4e8f8f470
comment cleanup
2003-04-30 16:39:40 +00:00
Jong Hyuk Choi
c4f7bcfc56
list of nonpresent entries in syncinfo_t
2003-04-30 16:38:15 +00:00
Jong Hyuk Choi
e08ba25101
syncrepl refresh mode : both scope-in & scope-out working fine
2003-04-30 16:35:23 +00:00
Howard Chu
04c5d82817
Fix prev commit
2003-04-30 16:00:36 +00:00
Howard Chu
4b73446ab5
ITS#2424 reset SASL on an existing connection
2003-04-30 15:38:32 +00:00
Luke Howard
e4779aefc1
A pre-operation plugin is not required to set SLAPI_RESULT_CODE in
...
order to prevent the operation from being passed to the backend. It
need only return a non-zero error code.
2003-04-30 13:37:14 +00:00
Howard Chu
7e2273b30e
Added errmsg arg to lutil_passwd_{check,hash} functions
2003-04-30 07:52:05 +00:00
Howard Chu
cfaf127eaa
Log errors from dn2id failures
2003-04-30 07:47:24 +00:00
Howard Chu
35d18d4ab0
Use DB_RMW when deleting dn2id elements
2003-04-30 07:46:58 +00:00
Howard Chu
7e1a91340c
Use computed filters to pass in search scope.
2003-04-30 07:46:01 +00:00
Jong Hyuk Choi
030d5a614d
- mods memory allocation fix
...
- persistent syncreplCookie (in syncConsumerSubentry) access becomes reliable
2003-04-30 04:01:25 +00:00
Jong Hyuk Choi
b10f1c5780
- manageDSAit is implicitly assumed for LCUP / SYNC
...
- LCUP / SYNC search both entries and subentries at the same time
2003-04-30 02:04:23 +00:00
Jong Hyuk Choi
2fd73195f5
LCUP / SYNC overrides manageDSAit upon calling select_backend()
2003-04-30 02:01:03 +00:00
Jong Hyuk Choi
e885605f21
cleanup
2003-04-29 23:32:58 +00:00
Howard Chu
15b661c5c7
Revert prev commit. It's a symptom that BDB was built incorrectly.
2003-04-29 22:02:24 +00:00
Howard Chu
c066e87e2c
Better handling of computed filters
2003-04-29 21:51:23 +00:00
Kurt Zeilenga
231f8464d1
cleanup
2003-04-29 21:14:12 +00:00
Hallvard Furuseth
7e8ff6df6b
Implement slapcat -s <dn>: Only dump a subtree of the database.
2003-04-29 20:47:21 +00:00
Howard Chu
b7fd633e8a
Fix computed filter inversion
2003-04-29 20:40:26 +00:00
Hallvard Furuseth
fca812e3aa
Must have ';' between default: and '}'
2003-04-29 20:12:00 +00:00
Howard Chu
2c1b7e4e7c
ITS#2474 default return value
2003-04-29 20:01:51 +00:00
Kurt Zeilenga
5cd994ed21
remove dnNormalize2
...
replace calls to dnNormalize2 with calls to dnNormalize
2003-04-29 18:28:14 +00:00
Kurt Zeilenga
eebc51b9bf
remove dnPretty
...
rename dnPretty2 to dnPretty
2003-04-29 18:13:10 +00:00
Jong Hyuk Choi
77b58e69a5
tab cleanup
2003-04-29 17:55:26 +00:00
Hallvard Furuseth
778a38f49c
Reduce warnings: Add missing 0 or NULL initializers for struct members.
2003-04-29 16:36:19 +00:00
Hallvard Furuseth
6387a3b6bf
#include <ac/string.h>.
...
Print unsigned long with %lu, not %d.
2003-04-29 15:05:19 +00:00
Hallvard Furuseth
9d9ac9e4d9
#include <ac/string.h>, to get memset() and strlen().
2003-04-29 15:02:01 +00:00
Hallvard Furuseth
51da53b4b0
Print long with %ld, not %d.
2003-04-29 14:55:36 +00:00
Hallvard Furuseth
46e0ea292b
Don't do arithmetic on void pointers.
2003-04-29 14:54:22 +00:00
Hallvard Furuseth
8a2bb1d1cc
Declare lap_free_ctrls() and sl_mem_init().
2003-04-29 14:53:05 +00:00
Howard Chu
2931966ea5
Fix computed TRUE/FALSE filters
2003-04-29 05:58:28 +00:00
Howard Chu
169c7afcdf
ITS#2453 - Handle computed filters, ignore Undefined filters.
2003-04-29 02:55:43 +00:00
Howard Chu
792e97790d
Handle SLAPD_FILTER_COMPUTED cases
2003-04-29 00:42:54 +00:00
Kurt Zeilenga
a0bcff1630
generic first component matching routines
...
Need to add specific routines for schema attribute types
2003-04-28 04:41:47 +00:00
Luke Howard
231a7cacf6
Remove unused variables in slapi_filter_test()
2003-04-26 03:28:48 +00:00
Luke Howard
b0e2fd5a8b
Don't crash in slapi_send_ldap_search_entry if no attributes specified
2003-04-26 03:28:12 +00:00
Howard Chu
b63bdc6513
Undo BDB const mucking
2003-04-25 13:14:33 +00:00
Howard Chu
e4f1c459c2
ITS#2464 don't strdup NULL DN
2003-04-25 12:44:19 +00:00
Howard Chu
e0f0a40497
ITS#2467 NULL pointer check
2003-04-25 10:27:55 +00:00
Kurt Zeilenga
7bbc903201
fix up nvalues code so that pretty routines work properly
...
re-add objectClass pretty routines
2003-04-25 02:28:06 +00:00
Kurt Zeilenga
49a4ae59ba
Need to pretty assertion values
2003-04-25 01:01:53 +00:00
Kurt Zeilenga
af5f617d2a
cleanup
2003-04-25 00:14:54 +00:00
Kurt Zeilenga
519faf22c2
Backout last commit... needs more work
2003-04-24 23:46:12 +00:00
Kurt Zeilenga
3067954616
rework objectClass mucking to use syntax "pretty" routine
...
(be liberal in what you accept, strict in what you generate)
2003-04-24 23:40:55 +00:00
Kurt Zeilenga
79262c5703
Fix typo
2003-04-24 12:43:30 +00:00
Luke Howard
958942d8e3
Fix potential attr_merge_normalize() crasher
2003-04-24 11:14:57 +00:00
Luke Howard
5178355d27
Fix another crasher in attr_merge_normalize_one()
2003-04-24 10:51:42 +00:00
Luke Howard
03fcb6526d
Fix crasher in attr_merge_normalize_one()
2003-04-24 10:40:45 +00:00
Luke Howard
331e627541
When a validate function fails from within a tool, report the offending
...
attribute
2003-04-24 10:18:05 +00:00
Kurt Zeilenga
65ea6c23c2
New integer syntax / matching routines
...
A pretty function likely should be added "to be liberal in what we accept"
2003-04-24 05:16:06 +00:00
Jong Hyuk Choi
e9bd75ae9b
ber, bv memory cleanup
2003-04-23 16:29:31 +00:00
Howard Chu
2b6f4ff7d0
Fix byte-ordering in bdb_dup_compare
2003-04-23 11:52:22 +00:00
Luke Howard
b1b8d9d651
slapi_dn_normalize() should pretty DN; slapi_dn_normalize_case() should normalize it
...
(appears to be correct based on iPlanet documentation)
2003-04-23 11:29:11 +00:00
Howard Chu
184f647b25
Change RDN compare funcs, we don't need lexical ordering
2003-04-23 10:26:06 +00:00
Luke Howard
4a51d2457a
Use attr_merge_normalize() instead of attr_mergeit()
...
(Seems to me that attr_mergeit() can be deprecated in favour of the
former -- Howard?)
2003-04-23 09:50:41 +00:00
Howard Chu
02217c9183
Subtree rename support for the cache
2003-04-23 08:46:23 +00:00
Luke Howard
9e3e91e067
Allow search rewriter plugins to also set the search base, scope, and alias
...
dereference policy
2003-04-23 08:16:05 +00:00
Howard Chu
f4183f1598
Fix multiple inclusion
2003-04-23 07:25:44 +00:00
Luke Howard
ebe2c10994
Fix incorrect usage of slapi_ch_free()
2003-04-23 07:01:56 +00:00
Howard Chu
350b73c2d6
Added back-hdb. Contributed by Howard Chu @ Symas Corp.
2003-04-23 06:54:36 +00:00
Howard Chu
6f461690c1
Function renaming, make internal funcs static, etc.
2003-04-23 06:34:55 +00:00
Luke Howard
bdb3adca39
Fix SLAPI debug message typo
2003-04-23 05:00:00 +00:00
Jong Hyuk Choi
fd3cf2b5ed
get_ldapmsg_ber() -> ldap_get_message_ber()
2003-04-22 22:09:25 +00:00
Jong Hyuk Choi
b67a3b9840
Misc cleanup - more to come.
2003-04-22 21:42:14 +00:00
Kurt Zeilenga
a6da45c9c7
Fix typo in last commit
2003-04-22 20:35:41 +00:00
Howard Chu
1745c2478d
Missed a bei_rdn in prev commit
2003-04-22 20:35:29 +00:00
Kurt Zeilenga
b9fe2c2fd6
Fix up subtreeSpecification to allow new GSER-based string format
...
(real validatator needed).
2003-04-22 20:33:08 +00:00
Jong Hyuk Choi
8e12768eed
subtreeSpecification syntax change : -binary +validator
2003-04-22 20:08:37 +00:00
Howard Chu
c7d3d42304
Omit bei_rdn field from EntryInfo
2003-04-22 18:59:37 +00:00
Howard Chu
7c39a5e726
filter_candidate tweaks, search_stack tweaks
2003-04-22 18:22:51 +00:00
Jong Hyuk Choi
f97a85db83
more cleanup for the backend API change
2003-04-22 17:59:54 +00:00
Howard Chu
68822b1e15
Trim dead BDB_HIER stuff
2003-04-22 17:06:35 +00:00
Howard Chu
c9f8d7accb
Fix args to bdb_cache_modrdn
2003-04-22 17:05:22 +00:00
Jong Hyuk Choi
4d6469f949
subentry cleanup
2003-04-22 17:00:04 +00:00
Howard Chu
1643145b03
Fix multi-line string literals. new GCC complains...
2003-04-22 16:06:29 +00:00
Howard Chu
0afba16b9b
Fix id2entry, let bdb_cache_release_all clean up EntryInfos
...
Fix idl_cache_put
2003-04-22 13:14:06 +00:00
Howard Chu
89127c93d0
Mem context tweaks for bdb_dn2idl
2003-04-22 06:29:13 +00:00
Howard Chu
ee1cddf6fd
Fix typo in prev commit
2003-04-22 05:15:50 +00:00
Howard Chu
bd871d710d
Moved IDL cache code to standalone functions.
...
Use IDL cache in bdb_dn2id_children.
2003-04-22 05:14:27 +00:00
Howard Chu
f0577fcb08
Pass parent EntryInfo instead of parent DN to dn2id_add/delete.
...
Add bdb_cache_children, remove cache flag manipulation from dn2id_children
2003-04-22 04:06:09 +00:00
Kurt Zeilenga
cd66f42f90
cleanup
2003-04-21 19:01:08 +00:00
Kurt Zeilenga
8cc4866fa1
Assign experimental OID to syncReplCookie
2003-04-21 18:57:49 +00:00
Howard Chu
d290145776
memory context tweaks
2003-04-21 18:28:38 +00:00
Howard Chu
e061628ff3
Fix previous commit
2003-04-21 18:09:44 +00:00
Jong Hyuk Choi
86a46c267a
OpenLDAP synchronization based replication engine
2003-04-21 14:08:13 +00:00
Jong Hyuk Choi
3efe7398c9
memory API change
2003-04-21 14:01:39 +00:00
Howard Chu
e374c580f2
Perform is_at_subtype check inline
2003-04-21 03:55:20 +00:00
Howard Chu
d8068af892
Fix glue_sub_init realloc disconnect
2003-04-20 09:18:02 +00:00
Pierangelo Masarati
1150becd63
use a macro for the entry buffer size
2003-04-18 17:17:18 +00:00
Pierangelo Masarati
629885a269
use SLAP_PTRCMP
2003-04-18 17:16:48 +00:00
Pierangelo Masarati
6bcbe9ad31
reset passwords before freeindg them
2003-04-18 10:02:43 +00:00
Pierangelo Masarati
7de67df355
ensure all metasingleconns are init'ed
2003-04-18 10:02:00 +00:00
Howard Chu
6fd41cd254
Add shm_key config keyword to use shared memory for BDB environment
...
Unmeasurable performance difference on my tests, but who knows...
2003-04-18 09:43:22 +00:00
Luke Howard
d4a9e0ece0
Fix crasher when duplicating substring assertions
2003-04-18 08:21:12 +00:00
Howard Chu
6002ad5233
Minor fixes
2003-04-18 07:43:07 +00:00
Luke Howard
c734eaf68a
Improve error checking
2003-04-18 07:29:45 +00:00
Howard Chu
7caf3e0952
Fix prev commit, extended search was broken
2003-04-18 05:53:24 +00:00
Luke Howard
86a18c2ea2
Don't pollute op->o_bd in access_allowed()
2003-04-18 04:57:15 +00:00
Howard Chu
3baffe7cf2
Fix undefined filters
2003-04-18 04:44:46 +00:00
Howard Chu
6b524914c5
Fix undefined substring filters
2003-04-18 04:44:06 +00:00
Howard Chu
8d8a52f9d2
ITS#2453, Fix filter candidate generation
2003-04-18 03:36:52 +00:00
Howard Chu
7c60ff1ef8
ITS#2449, broken NOT filters
2003-04-18 02:31:38 +00:00
Jong Hyuk Choi
2dbcd890b8
Caching non-existing index entries in the IDL cache - caching keys only
2003-04-18 00:35:11 +00:00
Pierangelo Masarati
b5e9378d4f
improve previous commit
2003-04-17 22:19:14 +00:00
Pierangelo Masarati
9f7c48ab54
don't return referral if cannot compute one (should fix ITS#2435)
2003-04-17 21:48:57 +00:00
Howard Chu
c754980045
Use EntryInfo navigation for search scope checks
2003-04-17 11:03:21 +00:00
Howard Chu
ec13a69220
Finish alias scope support
2003-04-17 09:23:53 +00:00
Howard Chu
f7db076c86
Fix prev commit
2003-04-17 05:15:12 +00:00
Howard Chu
7dcb79157d
Fix database search loop conditions
2003-04-17 04:55:39 +00:00
Howard Chu
d7a1eb0ea2
Fix AVL comparisons
2003-04-17 04:36:42 +00:00
Howard Chu
2048c05a82
Added CACHE_ENTRY_NO_KIDS flag to bei_state to shortcut dn2id_children.
2003-04-17 00:52:31 +00:00
Pierangelo Masarati
9caafcb3d9
cleanup; improve error handling
2003-04-16 22:22:57 +00:00
Kurt Zeilenga
d2db0733ab
Add associated matching rule checks
2003-04-16 21:42:52 +00:00
Pierangelo Masarati
786d4e23b7
allow compare on dynamically generated operational attributes (may be moved to the frontend)
2003-04-16 20:55:42 +00:00
Pierangelo Masarati
d564770156
clarify hasSubordinate filtering
2003-04-16 20:54:56 +00:00
Pierangelo Masarati
57bb4fd89a
fix id query
2003-04-16 20:54:30 +00:00
Pierangelo Masarati
3a5cd746b7
use global bervals for TRUE/FALSE
2003-04-16 19:49:00 +00:00
Pierangelo Masarati
58d1df26d8
fix possible typo
2003-04-16 19:48:14 +00:00
Howard Chu
377bccbc6c
Hierarchical cache management.
2003-04-16 16:23:36 +00:00
Pierangelo Masarati
d9d5912383
use syntax and matching rules knowledge when preparing SQL filters (to reduce pseudo-normalization efforts and search candidate number)
2003-04-16 10:22:33 +00:00
Kurt Zeilenga
fc7e29e0c5
Add associated matching rules
2003-04-16 05:56:28 +00:00
Kurt Zeilenga
1260da0cbf
Add comments about associated rules. Need to add checks
...
in mr.c, populated their values in schema_init.c, and then
put them to use.
2003-04-16 03:30:20 +00:00
Pierangelo Masarati
d8887ac063
fix update operations
2003-04-16 01:21:02 +00:00
Howard Chu
ca9bb44089
Free IDL_CACHE locks
2003-04-16 01:04:00 +00:00
Pierangelo Masarati
0c67c0493b
more cleanup; small improvements
2003-04-15 23:11:31 +00:00
Pierangelo Masarati
1f400adca7
honor attributes request
2003-04-15 22:43:56 +00:00
Pierangelo Masarati
1fa756cd24
backout unintended commit :)
2003-04-15 21:58:16 +00:00
Pierangelo Masarati
9a39dcb7d4
add slurpd pid/args files
2003-04-15 21:56:21 +00:00
Pierangelo Masarati
adf3744dd6
fix backsql new API; use berbuf instead of berval
2003-04-15 21:55:25 +00:00
Julius Enarusai
5094d6abda
Fixed minor compile errors
2003-04-15 20:40:02 +00:00
Howard Chu
d28bdf9cc2
Fix for modrdn retries
2003-04-15 01:13:28 +00:00
Howard Chu
f0816ec503
Fix value_find_ex result
2003-04-14 12:27:04 +00:00
Howard Chu
4739b58f99
Fix previous commit
2003-04-14 11:14:07 +00:00
Howard Chu
e1d45c64e0
doPlugins return code fix
2003-04-14 10:30:10 +00:00
Howard Chu
3aabc4ed43
doPlugins return code fix
2003-04-14 00:07:48 +00:00
Howard Chu
755f785432
Memory context fixes
2003-04-13 16:15:52 +00:00
Kurt Zeilenga
cde0999b52
Rename header macro
2003-04-13 04:51:12 +00:00
Pierangelo Masarati
a1b407b44d
improve schema
2003-04-12 18:16:05 +00:00
Pierangelo Masarati
194528d689
fix ACI per-thread memory management
2003-04-12 17:42:51 +00:00
Pierangelo Masarati
be8820d660
HEADS-UP: complete reworking of back-monitor
2003-04-12 17:41:49 +00:00
Kurt Zeilenga
8321227972
Fix OIDs
2003-04-12 17:11:26 +00:00
Howard Chu
5821fb5251
Change doPluginFNs to return 1 when no plugins were invoked
2003-04-12 12:40:50 +00:00
Howard Chu
088eecc34d
Tweak strcpy's
2003-04-12 12:20:19 +00:00
Howard Chu
af6804905f
Eliminate unnecessary calls to slap_bv2ad
2003-04-12 12:19:57 +00:00
Howard Chu
130f6e1b7d
Memory context tweaks for other ops
2003-04-12 10:47:11 +00:00
Pierangelo Masarati
784672d60a
disable by default right now
2003-04-12 10:05:12 +00:00
Pierangelo Masarati
74671953ef
fix schema definitions (duplicate objectClass OID still there)
2003-04-12 10:02:31 +00:00
Howard Chu
0f2eab27ce
ITS#2442, ITS#2438 same check for slapd_slp_reg()
2003-04-12 08:36:35 +00:00
Howard Chu
280fc819cf
Memory context tweaks for Bind
2003-04-12 06:56:42 +00:00
Howard Chu
be28bf247e
Added sl_context() to return the context associated with an alloc'd ptr.
...
Improved ch_malloc/sl_malloc compatibility.
2003-04-12 05:12:40 +00:00
Howard Chu
a6a6946a67
New ldap_pvt_thread_pool_context()
2003-04-12 04:01:40 +00:00
Kurt Zeilenga
f4304936d4
Assign experimental OIDs
2003-04-12 03:19:43 +00:00
Pierangelo Masarati
ab47effcfd
more cleanup and api rewriting (too tired to do anything better)
2003-04-12 01:17:05 +00:00
Pierangelo Masarati
99ac2cb422
slight improvement
2003-04-12 00:48:16 +00:00
Pierangelo Masarati
576089061d
add new schema stuff (no #ifdef, too heavy)
2003-04-12 00:30:47 +00:00
Pierangelo Masarati
805894be1d
fix context memory and more cleanup
2003-04-11 23:23:03 +00:00
Pierangelo Masarati
29c2594fe4
pass Operation instead of private info
2003-04-11 23:08:16 +00:00
Pierangelo Masarati
465a50cffc
fix memory context (hope NULL at init is valid)
2003-04-11 22:30:48 +00:00
Luke Howard
4f77f04a83
Don't use thread local malloc for search filter if SLAPI is enabled;
...
breaks API compat
2003-04-11 06:30:41 +00:00
Luke Howard
0e46e4a7af
Workaround for SLAPI impedence mismatch with new thread-local malloc;
...
computed search rewriter plugins cannot use thread-local malloc
2003-04-11 05:27:30 +00:00
Howard Chu
423ad06fa6
Revert previous, committed by mistake
2003-04-11 04:28:26 +00:00
Kurt Zeilenga
217f45a16c
SLP fix (ITS#2438)
2003-04-11 04:25:55 +00:00
Luke Howard
f26a0e0db0
Don't pass NULL DN to rewrite_session(), causes assertion failure
...
(Howard might like to check that this is the correct fix)
2003-04-11 04:23:21 +00:00
Luke Howard
7cb946924e
Fix compilation errors (caching must still be undefined though)
2003-04-11 04:22:37 +00:00
Howard Chu
808cb504ce
More memory context tweaks
2003-04-11 03:57:10 +00:00
Luke Howard
ee203deadf
Fix compile breakage
2003-04-11 03:56:04 +00:00
Howard Chu
75141e9c2f
Fix VPATH builds
2003-04-11 03:39:48 +00:00
Howard Chu
aa470b8052
Fix previous commit
2003-04-11 01:53:31 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Howard Chu
374d919fc0
More memory context tweaks
2003-04-10 06:21:53 +00:00
Howard Chu
7287c0ff01
Init op->tmpmfuncs.
2003-04-09 23:37:24 +00:00
Howard Chu
f897519d11
Minor cleanups
2003-04-09 23:37:00 +00:00
Howard Chu
ebecca7379
Eliminate getkey search
2003-04-09 17:34:58 +00:00
Howard Chu
065116c3a3
Just use a fixed size slab for now
2003-04-09 17:05:46 +00:00
Howard Chu
813d5c8ed8
First cut at thread-local malloc. Only used by search() for now...
...
Needs work in normalizers, etc.
2003-04-09 16:52:03 +00:00
Jong Hyuk Choi
437d2ce5a9
backend operations and callbacks conforms to the new API.
2003-04-09 16:37:00 +00:00
Howard Chu
aa3b717937
Don't build generic_filter dynamically, it's a simple static.
2003-04-09 08:28:19 +00:00
Pierangelo Masarati
426ca14a86
silence warning
2003-04-08 23:39:56 +00:00
Pierangelo Masarati
756d35cb6e
improve (and cleanup) value normalization
2003-04-08 23:30:58 +00:00
Pierangelo Masarati
43b1658160
normalize while merging values
2003-04-08 23:27:22 +00:00
Pierangelo Masarati
06a99afbdb
free cache only if required
2003-04-08 23:22:10 +00:00
Jong Hyuk Choi
b1b36ae75f
bdb->bi_idl_tree_lrulock initialize
2003-04-08 16:30:56 +00:00
Pierangelo Masarati
b4dbfb570a
cleanup
2003-04-08 13:22:12 +00:00
Pierangelo Masarati
5fbdf3f3eb
return 'matched' only if all the targets didn't recognize the search base
2003-04-08 11:38:38 +00:00
Pierangelo Masarati
827c4277e1
mix refresh and fix; may need further work
2003-04-08 11:20:18 +00:00
Howard Chu
d01d31e54f
Better detection of new search scopes
2003-04-08 11:17:20 +00:00
Jong Hyuk Choi
420210a2a3
IDL cache locking change (mutex -> rwlock)
2003-04-08 06:57:07 +00:00
Pierangelo Masarati
f73eddd426
fix attr nvals & more improvements
2003-04-07 23:22:27 +00:00
Pierangelo Masarati
9e66d3d1f0
fix referrals return
2003-04-07 23:21:55 +00:00
Pierangelo Masarati
51c658babd
fix typo
2003-04-07 21:06:06 +00:00
Howard Chu
91bb1bd980
schema checks
2003-04-07 20:16:56 +00:00
Howard Chu
cd76391078
Fix !ENABLE_REWRITE
2003-04-07 19:48:10 +00:00
Howard Chu
3c704f4d14
Fix returncode checks
2003-04-07 19:47:31 +00:00
Pierangelo Masarati
81c616fdb2
works fine now
2003-04-07 19:01:48 +00:00
Pierangelo Masarati
eed02aea22
need a second function because of different free() routines
2003-04-07 17:51:42 +00:00
Pierangelo Masarati
243311d56a
move to more appropriate file ...
2003-04-07 17:18:42 +00:00
Pierangelo Masarati
6dbd7341f9
use berval
2003-04-07 17:07:52 +00:00
Pierangelo Masarati
6ef22ccdcb
first cut at grouping rewrite/map stuff; needs work
2003-04-07 17:04:14 +00:00
Pierangelo Masarati
96e1632d4a
default remapping from target to server aliases searchResult
2003-04-07 16:59:56 +00:00
Pierangelo Masarati
93abccdee3
group rewrite/map stuff in one structure and optimize more function calls
2003-04-07 16:52:59 +00:00
Pierangelo Masarati
77c4389f55
use rewrite info instead of ldapinfo for reusability in back-meta; will change soon
2003-04-07 12:53:00 +00:00
Howard Chu
c823f9a995
Use individual addAttrDN, compareAttrDN, modifyAttrDN, searchAttrDN contexts
...
instead of re-using other contexts.
2003-04-07 11:55:12 +00:00
Howard Chu
8ef3bbb174
Fix prev
2003-04-07 11:50:15 +00:00
Howard Chu
7972ebe66f
Fix freeval check
2003-04-07 11:49:40 +00:00
Howard Chu
c4ab31ddc9
Cleanup previous
2003-04-07 11:40:23 +00:00
Howard Chu
c607ed0a6f
(SLAP_NVALUES) attr->a_nvals must not be NULL, set equal to a_vals when
...
not normalizing.
2003-04-07 11:38:45 +00:00
Howard Chu
bb305eee0b
Fix matchedDn detection
2003-04-07 10:51:57 +00:00
Howard Chu
df05038f9e
Actually free mapped attrval
2003-04-07 10:31:32 +00:00
Howard Chu
68c5f6fa98
Cleanup ENABLE_REWRITE ifdefs, put into a new ldap_back_dn_massage().
...
All DN attrs are massaged, whether or not ENABLE_REWRITE is defined.
Use "dnAttr" rewriteContext for Add, Compare, & Modify.
Fixed ldap_back_compare.
2003-04-07 10:15:18 +00:00
Pierangelo Masarati
45d77aea2e
fix tools build when SLAPI is enabled
2003-04-07 09:33:10 +00:00
Pierangelo Masarati
c2d59edef9
need OpenLDAPaciMatch
2003-04-07 08:54:12 +00:00
Pierangelo Masarati
c03cb5102c
fix most missing dependencies with SLAPI; slappasswd needs different LIBS settings ...
2003-04-07 08:53:45 +00:00
Pierangelo Masarati
504eb61495
fix and improve previous commit
2003-04-07 08:53:03 +00:00
Pierangelo Masarati
a9fd63c156
need attrs when sending entries ...
2003-04-07 08:19:26 +00:00
Kurt Zeilenga
45d74c676e
cleanup
2003-04-07 04:03:55 +00:00
Kurt Zeilenga
926b2cf0bf
cleanup
2003-04-07 03:46:22 +00:00
Howard Chu
8db24ce9e8
Fix backglue crash
2003-04-07 03:43:12 +00:00
Kurt Zeilenga
91b6bc606f
more SLAP_NVALUES tweaking
2003-04-07 01:19:47 +00:00
Kurt Zeilenga
67d6b23d22
SLAP_NVALUES code cleanup
2003-04-07 01:06:46 +00:00
Kurt Zeilenga
b59bb2de35
More #unifdef -DSLAP_NVALUES
2003-04-06 19:16:49 +00:00
Kurt Zeilenga
35df710c64
partial #unifdef -DSLAP_NVALUES
2003-04-06 18:57:17 +00:00
Howard Chu
103f70c3bf
ITS#2423 free SASL prompts
2003-04-06 01:03:43 +00:00
Pierangelo Masarati
1bae6d28e5
silence warnings
2003-04-05 16:58:36 +00:00
Pierangelo Masarati
5804183f04
propagate selected changes to back-ldap
2003-04-05 16:53:57 +00:00
Pierangelo Masarati
1ce560383a
map attrs improvement
2003-04-05 16:53:29 +00:00
Pierangelo Masarati
4235da91d4
massage bound dn only if operating on authz backend
2003-04-05 11:31:54 +00:00
Howard Chu
c0ee56c306
Define MINIMUM_SEARCH_STACK_DEPTH=8, search_aliases needs at least this.
2003-04-05 10:05:27 +00:00
Pierangelo Masarati
b2075ea932
cleanup & more
2003-04-05 09:57:21 +00:00
Howard Chu
3814b5f1a1
Range check cleanup, added alias processing comments
2003-04-05 09:46:54 +00:00
Howard Chu
fbc6a7e8ac
Fix cursor initialization, scope IDs
2003-04-05 08:54:24 +00:00
Kurt Zeilenga
c866e28049
Cleanup
2003-04-05 08:40:07 +00:00
Howard Chu
cb92eaf96c
Fix locking etc. in prev commit
2003-04-05 07:50:01 +00:00
Howard Chu
48a9cf3416
Added code for BDB_ALIASES. Please test.
2003-04-05 06:35:16 +00:00
Howard Chu
6f9901e9ce
Moved get_alias_dn from back-ldbm to frontend
2003-04-05 06:34:20 +00:00
Kurt Zeilenga
c75be97ae9
#ifdef -DSLAP_NVALUES
2003-04-05 03:35:16 +00:00
Kurt Zeilenga
2d68ec09f2
#unifdef -DSLAP_NVALUES_ON_DISK
2003-04-05 03:11:29 +00:00
Pierangelo Masarati
f8682550d7
cleanup
2003-04-05 01:25:57 +00:00
Pierangelo Masarati
cb33a9ff44
minor fixes: leaks, dangling pointers, cleaner tag skip
...
for subschemaSubentry; still having problems with group ACLs ...
2003-04-05 01:20:55 +00:00
Pierangelo Masarati
ab3ab80ecd
more args elimination + allow specific messages when mapping client API errors to LDAP_OTHER
2003-04-04 22:20:49 +00:00
Pierangelo Masarati
172e93bfc9
normalize values only if required
2003-04-04 11:03:29 +00:00
Pierangelo Masarati
19dc49180d
handle failure or missing attrs
2003-04-04 09:55:56 +00:00
Howard Chu
b282339c96
Minor cleanup, use shorthand macros
2003-04-04 05:49:21 +00:00
Howard Chu
a1437d155e
Init entry in be_entry_get_rw
2003-04-04 05:41:25 +00:00
Howard Chu
7c9e8b1b87
SLAP_NVALUES fix dup check
2003-04-04 05:39:09 +00:00
Luke Howard
7e31732cc5
Don't segfault on malformed configuration
2003-04-04 04:06:18 +00:00
Luke Howard
95f0c5d5e2
Don't free pointer into contiguously allocated memory
2003-04-04 03:58:24 +00:00
Howard Chu
604ba59196
Fix req DN massaging
2003-04-04 02:05:49 +00:00
Howard Chu
ba0b8d1ac9
Fix prev commit
2003-04-04 01:47:25 +00:00
Howard Chu
6e551b53f4
Mapping fixes, SLAP_NVALUES fixes
2003-04-04 01:01:28 +00:00
Pierangelo Masarati
5598add84e
first cut at mapping/rewriting before search (after search it's already handled by ldap_build_entry)
2003-04-04 00:48:54 +00:00
Pierangelo Masarati
dfbbd11bd3
remove more unnecessary args
2003-04-04 00:43:40 +00:00
Howard Chu
a9339c99f6
Fix shared/private binds, fix entry_get malloc
2003-04-03 23:55:57 +00:00
Pierangelo Masarati
ebe0bb0b52
trim unnecessary args
2003-04-03 23:23:56 +00:00
Pierangelo Masarati
44c2d8a771
backout this for now
2003-04-03 23:09:17 +00:00
Pierangelo Masarati
5f342a8431
silence warning
2003-04-03 23:08:47 +00:00
Pierangelo Masarati
811929011d
anyone knows a safer way to skip a tag?
2003-04-03 22:54:51 +00:00
Pierangelo Masarati
d218848b14
of course there's a better way to skip a tag :)
2003-04-03 22:48:17 +00:00
Pierangelo Masarati
bb4624c8b0
eat undesired values
2003-04-03 22:40:41 +00:00
Pierangelo Masarati
95991161c6
FIXME: is this the intended behavior?
2003-04-03 22:18:17 +00:00
Pierangelo Masarati
d07ea8b450
need this to be able to bound searches when back-ldap and the source are on the same server; does it look fine?
2003-04-03 21:44:43 +00:00
Pierangelo Masarati
e8c264b1f6
safe defaults
2003-04-03 21:40:04 +00:00
Pierangelo Masarati
798289fd50
new API; compiles if proxy is disabled
2003-04-03 21:35:54 +00:00
Pierangelo Masarati
17e46d8468
cleanup and fixes
2003-04-03 21:35:27 +00:00
Pierangelo Masarati
7d5087e8c2
fix new API update
2003-04-03 21:24:53 +00:00
Pierangelo Masarati
f6c1079cff
safer defaults ...
2003-04-03 21:23:36 +00:00
Pierangelo Masarati
8f02ca49b6
cleanup?
2003-04-03 21:18:14 +00:00
Pierangelo Masarati
df29552130
fix new API leftover
2003-04-03 21:17:44 +00:00
Howard Chu
adefd27c44
Fix return of DB error code to LDAP client
2003-04-03 01:59:08 +00:00
Pierangelo Masarati
8995d8341f
more new API ... back-sql should be OK
2003-04-03 00:35:16 +00:00
Pierangelo Masarati
430077e2ed
partially revert previous commit
2003-04-02 23:01:21 +00:00
Pierangelo Masarati
09b92f0aeb
more new API ...
2003-04-02 22:58:02 +00:00
Howard Chu
8ecfc4e1db
Fix lib specs
2003-04-02 21:23:07 +00:00
Kurt Zeilenga
1626f722c5
abort if result code is negative
2003-04-02 21:05:06 +00:00
Pierangelo Masarati
d385386279
more new API ...
2003-04-02 21:02:12 +00:00
Pierangelo Masarati
b72a61a7b7
cleanup previous commit
2003-04-02 20:54:23 +00:00
Pierangelo Masarati
9e5f5b56db
more new API ...
2003-04-02 20:52:13 +00:00
Pierangelo Masarati
a67b41eb69
fix listener mod handling
2003-04-02 20:27:58 +00:00
Howard Chu
a571001ffa
Fix prev commit
2003-04-02 20:10:53 +00:00
Kurt Zeilenga
4ecf817a87
NVALUES_ON_DISK enabled by default
2003-04-02 18:05:10 +00:00
Luke Howard
9b4bf8a973
Do not return pointers into BerElement we do not own
2003-04-02 09:35:08 +00:00
Luke Howard
8f0542d260
s/octetStringIndexer/octetStringMatch
2003-04-02 02:40:17 +00:00
Luke Howard
c52d604265
Apply Kurt's fix for octet string normalization/filtering of integers
2003-04-02 01:54:03 +00:00
Howard Chu
3d0ffa1d58
Fix typos in prev commit
2003-04-02 00:40:51 +00:00
Luke Howard
c4382a2b3b
Don't set SLAPI_NENTRIES in internal_result_v3; seems to clobber it
...
(Howard, can you take a look at this?)
2003-04-01 18:21:26 +00:00
Luke Howard
d2b6e8d56c
Handle the case where slapi_x_ldapmods2modifications() returns NULL; the
...
modify request becomes a NOOP for the front-end in this case.
2003-04-01 17:38:02 +00:00
Luke Howard
92ac90c1e3
Handle plugin returning no modifications in slapi_x_ldapmods2modifications()
2003-04-01 17:33:37 +00:00
Luke Howard
3b5f98723c
Fix crasher in slapi_dn_issuffix() when malformed DNs are passed
2003-04-01 17:16:56 +00:00
Luke Howard
8429210bed
Fix SLAPI crasher
2003-04-01 16:43:04 +00:00
Luke Howard
9da00ad42d
Fix SLAPI crasher
2003-04-01 16:42:24 +00:00
Luke Howard
97aaebd20f
Fixed crasher due to op->o_conn not being initialized in internal
...
SLAPI connections (the new internal API highlighted this)
2003-04-01 11:46:43 +00:00
Luke Howard
6e01d4ebe8
Fix compile breakage from nentries fix
2003-04-01 11:19:20 +00:00
Luke Howard
a099c25089
Update for new internal API: set op backend
2003-04-01 11:17:03 +00:00
Jong Hyuk Choi
86fecca9ec
LDAP Content Synchronization based Replication :
...
This is a preliminary code drop. Patches will follow shortly.
2003-04-01 06:38:39 +00:00
Howard Chu
9355dca9af
Consolidated slap_callbacks into one function. Removed send_search_result.
2003-04-01 04:12:18 +00:00
Howard Chu
8357a8b66e
slapd API update
2003-03-31 23:19:12 +00:00
Pierangelo Masarati
5a136d7e95
more (mostly blind) fixes
2003-03-31 19:45:52 +00:00
Pierangelo Masarati
a0ee0b21b1
first (mostly blind) round
2003-03-31 19:21:19 +00:00
Luke Howard
fc4d4e2f95
Cleanup to use new internal API
2003-03-31 17:10:55 +00:00
Pierangelo Masarati
d0b08200b7
new API cleanup in proxy cache code (more work needed)
2003-03-31 14:02:25 +00:00
Pierangelo Masarati
8da20c6f81
new API cleanup in proxy cache code
2003-03-31 14:01:34 +00:00
Howard Chu
fa9bf23501
Minor cleanup
2003-03-31 07:49:34 +00:00
Luke Howard
2fdbc55374
SLAPI cleanup
2003-03-31 06:41:30 +00:00
Kurt Zeilenga
02028df6c6
Add additional password file support.
2003-03-31 06:29:59 +00:00
Howard Chu
f80114af02
Fix previous commit
2003-03-31 06:27:16 +00:00
Howard Chu
d8350698aa
Remove psearch.c
2003-03-31 05:31:12 +00:00
Howard Chu
bc9aa656a2
Shorthand macros for request fields
2003-03-31 05:10:10 +00:00
Luke Howard
5004ec3f01
SLAPI fixes
2003-03-31 04:58:41 +00:00
Luke Howard
6c2f47ecd5
SLAPI fixes
2003-03-31 04:56:17 +00:00
Luke Howard
4dd53084a0
SLAPI fix
2003-03-31 04:54:06 +00:00
Howard Chu
8188bd1752
Fix typo in prev commit
2003-03-30 18:49:25 +00:00
Howard Chu
e8c58b4e7f
Major API change - (SLAP_OP_BLOCKS) All request parameters are
...
consolidated into the Operation structure. All reply parameters
are consolidated into the new SlapReply structure. Most operations
now have identical call signatures... Changes are not #ifdef'd,
revert to -r NO_SLAP_OP_BLOCKS if necessary to back out.
2003-03-30 09:03:54 +00:00
Kurt Zeilenga
9ac14af051
Install schema/README
2003-03-30 05:59:09 +00:00
Kurt Zeilenga
4ab98f70f8
Add ISOC Copyright
2003-03-30 05:52:32 +00:00
Howard Chu
0fc7032748
Fix giant lock conflict in previous commit
2003-03-30 05:33:42 +00:00
Howard Chu
3afc12ed6c
Delete unused source
2003-03-30 04:01:31 +00:00
Pierangelo Masarati
03340f440d
remove crufted callbacks
2003-03-29 11:49:36 +00:00
Pierangelo Masarati
4325d05ebc
add function prototypes
2003-03-29 11:46:02 +00:00
Howard Chu
0be6cb5a67
Deleted bi_database_mutex, use DB_LOCK instead. Changed bdb_locker_id to
...
lookup the threadctx if no Op * is provided. (bdb_db_cache doesn't know
its thread context when it acquires a locker ID.)
2003-03-29 05:15:48 +00:00
Howard Chu
684cf03d55
Tweak version.c dependencies
2003-03-28 18:42:12 +00:00
Howard Chu
60ac3f352e
ITS#2409 - fix oidm_destroy
2003-03-28 10:24:16 +00:00
Howard Chu
1985b2c5a1
Don't use subdatabases for indexes. This patch is an incompatible change,
...
must destroy existing indexes and run slapindex to regenerate.
2003-03-27 04:30:05 +00:00
Howard Chu
3a71bddbc4
ITS#2389 - added conn_max_pending/auth config keywords to cap the number
...
of outstanding requests on a connection. Set rate limits for request
execution:
no connection can have more than maxthreads/2 ops executing at once.
a connection that is write-blocked will not execute any new ops.
queued ops must drain before any new ops can execute.
If the queue exceeds the max_pending limit, the connection is closed.
...also fixed a bug where a connection was not marked active if it never
received a Bind.
2003-03-27 03:35:46 +00:00
Howard Chu
ecd4296640
Fix previous commit
2003-03-27 03:27:48 +00:00
Howard Chu
65b85d83ea
Revert previous commit
2003-03-26 19:22:33 +00:00
Howard Chu
a5a71d4e6c
Cleanup previous commit
2003-03-26 17:42:27 +00:00
Howard Chu
51e10cf23c
Save DB_LOCK structure so it can be released later.
2003-03-26 13:33:51 +00:00
Howard Chu
c9ec6b0cab
Remove attribute.c, group.c from build
2003-03-26 11:52:59 +00:00
Howard Chu
99950e4fe4
Deleted BackendInfo->bi_acl_attribute, bi_acl_group.
...
Replaced with bi_entry_get_rw.
Implemented for back-bdb, back-ldbm, back-ldap.
2003-03-26 11:50:03 +00:00
Howard Chu
945fd190f9
SLAP_OP_BLOCKS - added response block
2003-03-25 23:42:55 +00:00
Howard Chu
fec1c7b54c
Added slap_op_init/destroy, cache Operation structures
2003-03-25 20:18:50 +00:00
Howard Chu
f14561d59d
#if out unused cache rdwr locks
2003-03-25 20:17:05 +00:00
Howard Chu
13aafa46d8
struct co_arg is redundant, removed
2003-03-25 18:44:00 +00:00
Howard Chu
b672620eb8
Simplify indexer - remove redundant dbname parameter
2003-03-25 18:17:34 +00:00
Howard Chu
880b9f15ac
ITS#2392 - move cache_commit inside transaction. needs lock protection,
...
and the lock goes away after txn_commit. Not sure what to do about the
cache if txn_commit actually fails though. Since txn_prepare succeeded,
should never happen. ???
2003-03-25 17:49:35 +00:00
Pierangelo Masarati
26895b9fa5
fix bug in schema check
2003-03-25 14:34:01 +00:00
Pierangelo Masarati
a26cca88dd
blind fix of value_match when SLAP_NVALUES is set
2003-03-24 22:23:18 +00:00
Howard Chu
837c7eb78e
Fix prev commit
2003-03-24 19:36:25 +00:00
Howard Chu
4853334ad4
Fix shadowed text/textbuf
2003-03-24 19:19:54 +00:00
Howard Chu
3fe42f68c8
SLAP_NVALUES fix
2003-03-24 17:28:26 +00:00
Howard Chu
3c0b0d507a
ITS#2363 - use wake_sds ala slapd/daemon.c for signal management
2003-03-24 14:57:10 +00:00
Howard Chu
dd02409dd3
Clean up SIGBREAK / NT
2003-03-24 07:49:59 +00:00
Kurt Zeilenga
ce5bff041d
SLAP_NVALUES: a few more matching rules
2003-03-24 06:49:55 +00:00
Howard Chu
dfe3b4fb2f
SLAP_NVALUES - quick hack, just set a->a_nvals = a->a_vals. will need to
...
fix this if ACLs are expected to work on the local slapd.
2003-03-24 02:59:43 +00:00
Howard Chu
4d22b569de
SLAP_NVALUES - add attr_merge comment
2003-03-24 02:24:23 +00:00
Howard Chu
0e1378e55e
SLAP_NVALUES - a_nvals is useless if ma_rule isn't the same as attr's.
2003-03-24 02:16:42 +00:00
Kurt Zeilenga
d50064ddb8
SLAP_NVALUES: telephoneNumberNormalize
2003-03-24 02:16:10 +00:00
Kurt Zeilenga
8b19daa35a
SLAP_NVALUES: add numericStringNormalize()
2003-03-24 02:11:41 +00:00
Kurt Zeilenga
fd8c453a56
Clarify comment
2003-03-24 02:11:16 +00:00
Howard Chu
bb287d666b
SLAP_NVALUES fix matchedValues
2003-03-24 02:03:33 +00:00
Howard Chu
5ad51b6150
SLAP_NVALUES tweaks - after input, a_nvals is always populated. If there is
...
no normalizer, a_nvals = a_vals.
2003-03-24 01:56:56 +00:00
Howard Chu
491ad352ea
Fix order of arguments
2003-03-24 01:19:43 +00:00
Howard Chu
1d772b3df6
ITS#2364 fix unterminated AttributeName array
2003-03-23 16:00:20 +00:00
Howard Chu
3f48cabdde
Fix typo
2003-03-23 15:45:06 +00:00
Howard Chu
08ae7adfee
Code for SLAP_NVALUES_ON_DISK in entry_encode/entry_decode
2003-03-23 15:28:41 +00:00
Howard Chu
79f3ea6e80
BDB_HIER was defined by accident, undef
...
Fix up for SLAP_NVALUES_ON_DISK
2003-03-23 15:27:43 +00:00
Kurt Zeilenga
2d78fafe03
Boolean indexing support
2003-03-23 05:54:52 +00:00
Kurt Zeilenga
c9805cf0c8
Add SLAP_NVALUES_ON_DISK define (but not code)
2003-03-23 03:23:32 +00:00
Kurt Zeilenga
91a2fb1c96
Add namingCSN attribute type
...
Make SLAP_NVALUES the default.
2003-03-23 02:58:36 +00:00
Howard Chu
329202e897
Plug ndn leak (re: ITS#2390)
2003-03-22 16:59:41 +00:00