Howard Chu
a30fa88ad3
Apply logoldattr / reqOld to modRDN requests as well
2006-05-03 21:29:56 +00:00
Pierangelo Masarati
45b378c753
don't muck with freed memory (spotted by valgrind)
2006-05-03 18:54:04 +00:00
Howard Chu
2a5ecbccaa
Remove some more yield() calls
2006-05-03 07:41:12 +00:00
Howard Chu
6fcc7b9b21
Hide starttls keyword if no TLS
2006-05-03 03:12:16 +00:00
Howard Chu
966c47e5b4
Detect TLS config changes
2006-05-03 02:48:23 +00:00
Howard Chu
d0b796f897
ITS#4515 add missing equality rules
2006-05-02 21:07:49 +00:00
Pierangelo Masarati
af1f87b96d
ldap_pvt_runqueue_next_sched() may return a pointer to data that's freed by task run earlier (ITS#4517)
2006-05-02 20:32:37 +00:00
Howard Chu
608c85a9f0
ITS#4423, fix sessionlog lower bound in playlog
2006-05-02 05:08:59 +00:00
Howard Chu
a8f8dfe747
Use ldap_pvt_thread_pool_tid()
2006-05-02 00:58:05 +00:00
Howard Chu
c58f16d9b5
FIx rev 1.207, ACL parsing
2006-05-01 23:36:38 +00:00
Pierangelo Masarati
3b5d411af2
fix idassert "override"
2006-05-01 22:54:07 +00:00
Pierangelo Masarati
f9f8623f6e
fix automated static build
2006-05-01 14:53:19 +00:00
Howard Chu
d8595b7c6e
ITS#4463 add constraint overlay
2006-04-29 10:03:36 +00:00
Howard Chu
442a3f1fde
searchbase is a required config parameter, log missing params.
2006-04-29 09:24:14 +00:00
Howard Chu
b1534d0ea9
Kludge to allow reading undefined attrs in DNs at startup
2006-04-29 02:15:53 +00:00
Howard Chu
1f6bb31d9d
Honor ACLs, don't just require root any more
2006-04-29 01:26:07 +00:00
Howard Chu
f5558876c0
Log a comment with realdn if different from authzDN
2006-04-28 23:37:35 +00:00
Howard Chu
d38dd74818
Fix adding ACLs to specific DBs vs global/frontend
2006-04-28 23:01:59 +00:00
Howard Chu
e1ec64aaee
rmutex_lock etc.: caller supplies thread id
2006-04-28 21:39:38 +00:00
Howard Chu
15ba27d5c1
Add logoldattr keyword for attributes that should always have their old
...
value logged in a Modify request (that matches the logold filter)
2006-04-28 20:40:43 +00:00
Howard Chu
9207979a86
Use recursive mutex to avoid deadlocks
2006-04-28 20:13:34 +00:00
Luke Howard
51a65afb86
SLAPI_PLUGIN_{PRE,POST}_RESULT_FN should also be called for
...
REP_SASL and REP_EXTENDED in addition to REP_RESULT -- the
distinction is not present in FDS
2006-04-28 08:39:29 +00:00
Howard Chu
716df7c62c
ITS#4512 fix bogus Debug messages in rev 1.48
2006-04-28 06:22:48 +00:00
Howard Chu
eda2b46dd2
Revert 1.96, restore 1.91 functionality
2006-04-28 06:07:05 +00:00
Howard Chu
590bc6a7fa
More logging for ITS#4423
2006-04-28 03:06:47 +00:00
Howard Chu
3879cac787
Fix slapadd of config tree, broken by ITS#4194
2006-04-27 23:52:53 +00:00
Howard Chu
f3ee4f5d30
Fix rev 1.52, frontendDB uses index {-1}.
2006-04-27 23:21:39 +00:00
Howard Chu
32712f4c26
Fix prev commit
2006-04-27 22:47:20 +00:00
Kurt Zeilenga
153e81817f
ITS#4414: SLP attributes support from Peter Marschall
2006-04-27 19:36:40 +00:00
Hallvard Furuseth
2f04f61dc7
Support rootdn
2006-04-27 16:12:59 +00:00
Hallvard Furuseth
a242808f7e
cleanup (unused variable)
2006-04-27 16:05:41 +00:00
Howard Chu
fd20e683df
Add logging for ITS#4423
2006-04-27 09:18:43 +00:00
Howard Chu
e97673df67
ITS#4500 use rdwr lock instead of mutex
2006-04-27 07:52:12 +00:00
Howard Chu
2cd781eae3
Cleanup close
2006-04-27 02:29:13 +00:00
Howard Chu
8b06446b10
back-config support, cleanup init/destroy
2006-04-27 02:28:07 +00:00
Howard Chu
328470c114
OIDs for more overlays
2006-04-27 02:13:21 +00:00
Howard Chu
7cd5dddd4c
back-config support. from Matthew Backes @ Symas.com and
...
Karsten Kuenne @ rentec.com (ITS#4506)
2006-04-27 02:12:34 +00:00
Howard Chu
d62fd3fd5a
Cleanup prev commit
2006-04-27 00:27:43 +00:00
Howard Chu
6af9770996
Tweak mutexes
2006-04-27 00:19:32 +00:00
Howard Chu
4f1e154c12
Implement reqOld support
2006-04-27 00:01:20 +00:00
Howard Chu
bac546adb0
Fix prev commit
2006-04-26 10:26:46 +00:00
Howard Chu
0836354d1e
Fix ITS#4505
2006-04-26 09:12:40 +00:00
Pierangelo Masarati
02b3af0900
check existence of newSuperior
2006-04-25 21:11:44 +00:00
Pierangelo Masarati
54f7d5aef3
allow empty modlist
2006-04-25 19:51:38 +00:00
Pierangelo Masarati
95b29919a3
more ITS#4503 cleanup
2006-04-25 19:30:48 +00:00
Pierangelo Masarati
004b69d070
callbacks must return valid error codes (ITS#4499)
2006-04-25 19:07:34 +00:00
Howard Chu
94c3bc332d
Fix log_age_parse days parsing
2006-04-25 10:24:54 +00:00
Hallvard Furuseth
61d71d95b9
Cast isspace() arg to unsigned char. (Update to previous change.)
2006-04-24 20:32:23 +00:00
Howard Chu
478ae2346e
PPOLICY_ERROR is primitive, not constructed
2006-04-22 00:23:44 +00:00
Howard Chu
449188fb73
Fix EXPIRE/GRACE tags in control value
2006-04-21 23:45:29 +00:00
Pierangelo Masarati
4d894c7d24
don't idassert if proxyAuthz == boundDN (ITS#4497)
2006-04-21 21:07:31 +00:00
Howard Chu
c636f654a4
Make be_shadow_update more specific for syncrepl ops, since mirrormode
...
lets normal users write to a syncrepl database
2006-04-20 22:20:25 +00:00
Pierangelo Masarati
19c5f261e5
re-fix ITS#4495 working around atoi() limitations
2006-04-19 23:57:02 +00:00
Hallvard Furuseth
5181a522c1
Revert rev 1.276, which broke back-shell "RESULT\ncode: <value>\n" (ITS#4495)
2006-04-19 22:03:13 +00:00
Hallvard Furuseth
1c51987f87
#define Statslog() also when --disable-debug (disappeared in rev 1.754)
2006-04-16 16:01:09 +00:00
Pierangelo Masarati
e01743193d
more coverity issues
2006-04-14 00:17:27 +00:00
Howard Chu
edb1c663fc
Fix translucent modify
2006-04-13 23:00:11 +00:00
Hallvard Furuseth
7948cb0bfd
init_module() typo: Log() -> Log2()
2006-04-13 22:24:23 +00:00
Hallvard Furuseth
d60b89c148
meta_back_db_config: lutil_atou(version,) -> lutil_atoi
2006-04-13 22:23:03 +00:00
Hallvard Furuseth
7a19d8855d
Remove useless assert: unsigned lc->lc_refcnt >= 0
2006-04-13 22:20:55 +00:00
Hallvard Furuseth
6567412f54
schema_destroy(): Handle failed slap_schema_init()
2006-04-13 22:19:19 +00:00
Hallvard Furuseth
c044d32262
slap_loglevel_get() prototype
2006-04-13 22:16:17 +00:00
Howard Chu
f5b815b1b3
ITS#4489 fix slap_tls_ld cleanup
2006-04-13 21:49:25 +00:00
Pierangelo Masarati
bd8514fb1e
address protocol version issues (ITS#4488)
2006-04-13 16:20:00 +00:00
Pierangelo Masarati
423a2c73f4
fix *entry_get() behavior
2006-04-13 16:09:06 +00:00
Pierangelo Masarati
a2a9298080
cleanup
2006-04-13 14:46:16 +00:00
Pierangelo Masarati
ec849bd981
no TLS no party
2006-04-13 12:09:34 +00:00
Pierangelo Masarati
c08f05f0c0
group SlapReply search flags
2006-04-12 14:02:15 +00:00
Kurt Zeilenga
eb9a3c1876
unifdef -DSLAP_ACL_HONOR_DISCLOSE
...
unifdef -DSLAP_ACL_HONOR_MANAGE
unifdef -DSLAP_OVERLAY_ACCESS
unifdef -DSLAP_ORDERED_PRETTYNORM
unifdef -DSLAP_AUTHZ_SYNTAX
Move LDAP_COLLECTIVE_ATTRIBUTES, LDAP_COMP_MATCH, and LDAP_SYNC_TIMESTAMP
back behind LDAP_DEVEL (as these either too experimental or not yet
implemented).
2006-04-12 05:53:26 +00:00
Kurt Zeilenga
444ec670e3
really fix it
2006-04-11 22:27:41 +00:00
Kurt Zeilenga
809331582b
Fix bad edit - like cause of ITS#4484
2006-04-11 22:26:52 +00:00
Kurt Zeilenga
cc2ad31bba
remove more LDBM cruft
2006-04-11 18:56:11 +00:00
Kurt Zeilenga
2e2d036490
remove LDAP_DEVEL around lightweight dispatcher code
...
(presently in 2.4)
2006-04-11 18:34:09 +00:00
Pierangelo Masarati
dfc8e7f6b8
better fix for ITS#4483
2006-04-09 22:29:42 +00:00
Pierangelo Masarati
666e0677ca
re-fix previous commit
2006-04-08 15:59:59 +00:00
Pierangelo Masarati
3d13b08a44
fix network-timeout commit
2006-04-08 14:45:45 +00:00
Pierangelo Masarati
cc8109db06
fix previous commit
2006-04-08 14:45:19 +00:00
Pierangelo Masarati
0500576056
add support for old proxyAuthz encoding; allow to workaround buggy implementations of the new version (now RFC4370)
2006-04-08 11:12:30 +00:00
Kurt Zeilenga
037d513aee
Move LDBM to the attic
2006-04-08 04:24:48 +00:00
Kurt Zeilenga
c48338233e
s/LDBM/BDB/
2006-04-08 04:24:12 +00:00
Kurt Zeilenga
fd2d6bcca3
s/ldbm/hdb/
2006-04-08 04:21:03 +00:00
Pierangelo Masarati
6a293c65b3
line up network-timeout with back-meta
2006-04-07 09:08:37 +00:00
Howard Chu
c1019fbfbd
More for ITS#4323 fix
2006-04-07 04:17:44 +00:00
Howard Chu
4c754ec249
Fix typo
2006-04-07 03:08:43 +00:00
Howard Chu
c6d0edc3b7
Use TLS context stuff in syncrepl
2006-04-07 02:57:39 +00:00
Howard Chu
7a5d12cc51
Add TLS options to bindconf struct
2006-04-07 01:49:19 +00:00
Pierangelo Masarati
8c1b8d3f7b
actually, if a connection is already in the AVL tree, use it if not binding; otherwise use a tainted one; taint connections that must be freed when refcnt goes to zero
2006-04-07 01:28:56 +00:00
Howard Chu
76bf5d4c76
Use new TLS SSL_CTX support
2006-04-07 01:25:46 +00:00
Pierangelo Masarati
0f1023b6c7
pedantic cleanup
2006-04-06 23:55:09 +00:00
Pierangelo Masarati
267486bfad
fix ITS#4479
2006-04-06 23:48:55 +00:00
Kurt Zeilenga
8fb8b17c04
Code which doesn't hanlding allocation failure should use
...
ch_ routines, not SLAP_ macros
2006-04-06 21:44:05 +00:00
Kurt Zeilenga
1b9d68d6ba
cleanup
2006-04-06 21:29:38 +00:00
Pierangelo Masarati
b03d8abcde
don't leak if realloc fails (ITS#4477)
2006-04-06 19:13:41 +00:00
Pierangelo Masarati
c6ab0790d1
don't leak if realloc fails (ITS#4477); s/new/newptr/
2006-04-06 19:07:48 +00:00
Hallvard Furuseth
a070e6c05f
Avoid sprintf buffer overrun if huge hostname
2006-04-06 09:28:19 +00:00
Howard Chu
daec2febfb
ITS#4476 revert connection_write processing back into main thread
2006-04-06 04:34:37 +00:00
Hallvard Furuseth
b4586b2f84
Fix for the previous ITS#4323 fix: for(expr;...) -> for(i=expr;...)
2006-04-05 14:15:34 +00:00
Howard Chu
c76eb501ab
Revert cache-purge task, go back to purging inline
2006-04-05 07:17:11 +00:00
Howard Chu
0ad714d61e
Additional fix for ITS#4323, must propagate search result controls
2006-04-05 07:03:25 +00:00
Kurt Zeilenga
45d0479d37
Reverse last commit. Wrong tree.
2006-04-05 00:40:53 +00:00
Kurt Zeilenga
31d64d4642
No LogTest in re23
2006-04-05 00:39:46 +00:00
Howard Chu
2bf9afd828
ITS#4323 allow lower overlays to work on master database
2006-04-05 00:27:16 +00:00
Hallvard Furuseth
eca5f7bf2d
ITS#4472: Make t_rwlock a lock pointer instead of a lock, and malloc/free it.
...
That way, realloc(qm->templates...) won't move the ldap_pvt_thread_rdwr_t data.
2006-04-04 23:12:58 +00:00
Howard Chu
04dae5a020
ITS#4442 just log refint failures, client only cares about main request
2006-04-04 22:16:24 +00:00
Pierangelo Masarati
674c98fa7d
honor stop on error
2006-04-04 19:48:22 +00:00
Pierangelo Masarati
e21f57cf05
complete previous commit (protect binds)
2006-04-04 18:45:59 +00:00
Pierangelo Masarati
543396c804
make sure only on bind at a time occurs; release resources only when appropriate
2006-04-04 17:41:50 +00:00
Pierangelo Masarati
2e9f2995ec
only wait if no entry was returned
2006-04-04 17:41:13 +00:00
Howard Chu
3bfe4a7f77
plug leaks
2006-04-04 10:58:08 +00:00
Howard Chu
abb01fa437
cleanup
2006-04-04 10:47:42 +00:00
Howard Chu
fc61aab12b
plug leak
2006-04-04 10:31:01 +00:00
Howard Chu
6a50826676
plug leaks
2006-04-04 10:27:28 +00:00
Howard Chu
548270776d
Plug leak
2006-04-04 10:12:55 +00:00
Howard Chu
272211fbcd
Same as ITS#4464, don't call cache_return_entry with NULL entry
2006-04-04 09:56:34 +00:00
Pierangelo Masarati
79df3e9c3c
don't add unnecessary message
2006-04-03 22:06:12 +00:00
Pierangelo Masarati
14cbf4bc3e
make sure an invalid connection is always released as appropriate
2006-04-03 21:56:30 +00:00
Pierangelo Masarati
aecfb85793
immediately return sizelimitExceeded if appropriate
2006-04-03 21:14:14 +00:00
Pierangelo Masarati
070c9d9f07
make sure rs->sr_err is fine
2006-04-03 00:33:34 +00:00
Pierangelo Masarati
c853ba1f0e
more on recovery (ITS#4429)
2006-04-03 00:32:59 +00:00
Hallvard Furuseth
19a0d82937
Init & destroy so.s_mutex around syncprov_findbase() call in syncprov_op_search
2006-04-02 23:49:57 +00:00
Hallvard Furuseth
b2f79aa42e
Initialize and destroy lc_lai.lai_mutex
2006-04-02 23:47:13 +00:00
Howard Chu
c63d1f04f8
plug leaks
2006-04-02 21:16:06 +00:00
Hallvard Furuseth
da0c0360e4
Warnings: Unused vars. funcptr=0, not =NULL. if(b=...) -> if((b=...) != NULL).
2006-04-02 19:54:24 +00:00
Hallvard Furuseth
c2f210a128
Return a value (0) from auditlog_db_close() and auditlog_db_destroy()
2006-04-02 16:40:39 +00:00
Hallvard Furuseth
909f5e6ae9
Cast %ld format arg to long
2006-04-02 16:38:46 +00:00
Hallvard Furuseth
b90c3d6fd3
Add missing snprintf args in debug output
2006-04-02 16:37:52 +00:00
Hallvard Furuseth
6c772f2057
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2006-04-01 23:52:42 +00:00
Hallvard Furuseth
581c1ff6c7
Cast ctype.h char arguments to unsigned char
2006-04-01 23:44:42 +00:00
Hallvard Furuseth
7ead463927
Remove suspicious whitespace from makefile
2006-04-01 23:29:41 +00:00
Pierangelo Masarati
44a75a03c0
allow overlays to inject an abandon without returning SLAPD_ABANDON
2006-04-01 18:59:26 +00:00
Pierangelo Masarati
46cb141185
seems to fix the equivalent of ITS#4429 in back-meta; had to give up per-target conn-ttl and idle-timeout
2006-04-01 18:56:39 +00:00
Pierangelo Masarati
e21ec88c88
fix previous commit (ITS#4465)
2006-04-01 15:31:35 +00:00
Pierangelo Masarati
3aac54f089
fix bound check (ITS#4449)
2006-04-01 15:22:13 +00:00
Pierangelo Masarati
fc89650cce
add a cleanup handler for binds (ITS#4465)
2006-04-01 15:21:00 +00:00
Pierangelo Masarati
7cba7d0b39
don't use uninitialized mutexes
2006-03-31 23:07:48 +00:00
Pierangelo Masarati
2f366c3a52
initialize the connection_pool in server mode only
2006-03-31 23:04:13 +00:00
Howard Chu
c002351982
cleanup
2006-03-31 22:24:39 +00:00
Howard Chu
65079f768e
Cleanup NULL check
2006-03-31 22:05:01 +00:00
Howard Chu
8c990ff2e9
plug leaks
2006-03-31 21:59:39 +00:00
Kurt Zeilenga
28191d7642
don't call cache_return_entry_rw with e of NULL
2006-03-31 21:03:51 +00:00
Howard Chu
c41a151d1e
Cleanup
2006-03-31 12:53:32 +00:00
Howard Chu
0af1940f3f
plug leaks
2006-03-31 12:20:04 +00:00
Howard Chu
90c8a53db4
plug leaks
2006-03-31 11:15:26 +00:00
Howard Chu
8cbd5ecc13
Cleanup
2006-03-31 10:45:23 +00:00
Howard Chu
bb9d5b1100
Plug leaks, fix coverity errors
2006-03-31 09:33:46 +00:00
Pierangelo Masarati
ac8c1f2a26
fix multiple response messages; add overall sleep time
2006-03-30 23:49:51 +00:00
Kurt Zeilenga
5487575086
Add link to FAQ entry on BDB tuning
2006-03-30 17:56:56 +00:00
Pierangelo Masarati
02966c3d1c
fix handling of expired connections (ITS#4429; need to look at back-meta as well)
2006-03-29 01:26:42 +00:00
Pierangelo Masarati
bacd1f170f
leave existing controls in place if proxyAuthz is not required by idassert (ITS#4457)
2006-03-28 21:45:54 +00:00
Pierangelo Masarati
e673b4d9ad
propagate pretty DN (ITS#4456)
2006-03-28 19:20:01 +00:00