Commit Graph

4169 Commits

Author SHA1 Message Date
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
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
Kurt Zeilenga
8a7114e152 ITS#2390 fix for back-bdb 2003-03-22 16:38:31 +00:00
Howard Chu
90332c2de2 ITS#2390 - freeing uninit'd ndn 2003-03-22 16:26:38 +00:00
Howard Chu
23d69c1d1f Still need DB_AUTO_COMMIT flag 2003-03-22 16:21:44 +00:00
Kurt Zeilenga
c37a3b37b8 namingCSN 2003-03-22 16:12:59 +00:00
Kurt Zeilenga
61dffba479 ITS#2847: fix cn=#,... 2003-03-22 16:12:39 +00:00
Howard Chu
a63b8908cd ITS#2389 - stop reading requests on a conn if it has more than
connection_pool_max/2 operations already executing. May want to tune
this to a higher value, e.g. connection_pool_max - XX, etc. Fix in
result.c throttles the connection too late, all threads are already
consumed by the time the send buffer blocks.
2003-03-20 12:40:11 +00:00
Howard Chu
546d5cb3a0 ITS#2389 - stop reading requests on a connection when we are blocked
writing responses. This may not be the right fix.
2003-03-20 11:54:17 +00:00
Pierangelo Masarati
26e6e44bec value is parsed in place; minor cleanup 2003-03-18 14:38:40 +00:00
Pierangelo Masarati
c4b925f343 document -u option 2003-03-18 10:38:23 +00:00
Howard Chu
a0c58e5f40 Don't use DB_AUTO_COMMIT when opening a database 2003-03-18 00:04:16 +00:00
Kurt Zeilenga
c79c13d480 replace get_substring_filter with get_ssa() 2003-03-17 06:06:02 +00:00
Kurt Zeilenga
86fdee6de7 SLAP_NVALUES: fix values_find_ex call 2003-03-17 00:30:35 +00:00
Kurt Zeilenga
1a55430c65 SLAP_NVALUES: more fixes 2003-03-17 00:27:33 +00:00
Kurt Zeilenga
e0c2e71a7c SLAP_NVALUES updates 2003-03-17 00:10:43 +00:00
Kurt Zeilenga
9ac9102b55 Undo last commit 2003-03-16 23:54:40 +00:00
Kurt Zeilenga
8b6e1db2d3 SLAP_NVALUES: remove all the extra frees 2003-03-16 23:54:22 +00:00
Kurt Zeilenga
b1d245d9de SLAP_NVALUES: fix extraneous free bug. 2003-03-16 23:52:44 +00:00
Kurt Zeilenga
e3b1020e75 Fix typos in last commit
Still chasing SLAP_NVALUES trashed filter bug
2003-03-16 21:58:00 +00:00