]>
git.sur5r.net Git - openldap/log
Hallvard Furuseth [Mon, 4 Jun 2007 22:18:01 +0000 (22:18 +0000)]
Remove ltp_active_list. It became unneeded when rev 1.24 added thread_keys[].
Tighten loop in pool_pause(): Omit unneeded ltp_pcond signals since rev 1.64.
Fix comment.
Gavin Henry [Sun, 3 Jun 2007 23:57:58 +0000 (23:57 +0000)]
Dates and OpenLDAP CVS tag
Gavin Henry [Sun, 3 Jun 2007 23:54:11 +0000 (23:54 +0000)]
Change date to 2007.
Pierangelo Masarati [Sat, 2 Jun 2007 11:31:17 +0000 (11:31 +0000)]
needs portable.h
Pierangelo Masarati [Sat, 2 Jun 2007 11:27:43 +0000 (11:27 +0000)]
make searches expand all matching sets of group/url[/member] configurations; relax configuration test as per ITS#4989
Pierangelo Masarati [Sat, 2 Jun 2007 10:43:02 +0000 (10:43 +0000)]
fix leak
Pierangelo Masarati [Sat, 2 Jun 2007 10:19:10 +0000 (10:19 +0000)]
clarify use of -y (as per ITS#4994)
Gavin Henry [Fri, 1 Jun 2007 21:56:17 +0000 (21:56 +0000)]
Adding # $
Gavin Henry [Fri, 1 Jun 2007 19:47:02 +0000 (19:47 +0000)]
Moving from Slurpd.
Gavin Henry [Fri, 1 Jun 2007 17:45:42 +0000 (17:45 +0000)]
New TOC, new sdf files and merging/reworking of existing data. Makefile updated and tested also.
Hallvard Furuseth [Fri, 1 Jun 2007 15:24:19 +0000 (15:24 +0000)]
Simplify: Remove tid_zero, thread_keys[].id and ldap_int_main_tid.
Not needed after ldap_int_thread_userctx_t.ltu_id was added and
_pool_wrapper took care not to update thread_keys[] during pauses.
Fix bogus thread_keys[].ctx comment.
Hallvard Furuseth [Thu, 31 May 2007 20:52:15 +0000 (20:52 +0000)]
thread pool data was accessed through the wrong type
Hallvard Furuseth [Thu, 31 May 2007 19:47:38 +0000 (19:47 +0000)]
Add comments. Constify tid_zero. Shut up gcc -Wswitch. if(!tpool)->assert().
Hallvard Furuseth [Thu, 31 May 2007 17:15:54 +0000 (17:15 +0000)]
Add variable ldap_int_has_thread_pool, assert(at most one pool);
Hallvard Furuseth [Thu, 31 May 2007 17:07:57 +0000 (17:07 +0000)]
Shut up gcc -Wformat
Ralf Haferkamp [Thu, 31 May 2007 15:49:45 +0000 (15:49 +0000)]
ITS#4991 restore save_attrs when a request is finished to let do_search()
cleanup correctly
Ralf Haferkamp [Thu, 31 May 2007 15:46:46 +0000 (15:46 +0000)]
ITS#4991 restore mapped AttributeNames before processing a response
Hallvard Furuseth [Thu, 31 May 2007 12:47:24 +0000 (12:47 +0000)]
In pool_submit():
- Move problematic mutex_unlock()-mutex_lock() into the unused #ifdef
LDAP_PVT_THREAD_POOL_SEM_LOAD_CONTROL and add a FIXME comment inside.
- Delay ltp_starting--; until pool_wrapper(). Nonzero value could otherwise
no longer be exposed when !defined LDAP_PVT_THREAD_POOL_SEM_LOAD_CONTROL.
Hallvard Furuseth [Thu, 31 May 2007 12:08:50 +0000 (12:08 +0000)]
Preserve key order when deleting, so context_reset will free last keys first.
Hallvard Furuseth [Wed, 30 May 2007 22:20:20 +0000 (22:20 +0000)]
Make get_thread_info() static. Handle ldap_pvt_thread_pool_t = int (not ptr).
Howard Chu [Fri, 25 May 2007 00:58:59 +0000 (00:58 +0000)]
ITS#4966 valsort_modify: ignore Delete modops with no values
Howard Chu [Wed, 23 May 2007 23:29:46 +0000 (23:29 +0000)]
Regenerate with gnutls TLS_LIBS
Howard Chu [Wed, 23 May 2007 23:28:11 +0000 (23:28 +0000)]
Must set TLS_LIBS for gnutls
Kurt Zeilenga [Wed, 23 May 2007 03:54:31 +0000 (03:54 +0000)]
Use IANA-assigned OID for entryDN and remove hide flag.
Gavin Henry [Tue, 22 May 2007 14:20:04 +0000 (14:20 +0000)]
Zero value example for pwdAccountLockedTime (ITS#4978)
Pierangelo Masarati [Mon, 21 May 2007 00:01:49 +0000 (00:01 +0000)]
clarify that slapo-rwm could hide rootDSE and subschema
Hallvard Furuseth [Sun, 20 May 2007 22:48:21 +0000 (22:48 +0000)]
Fix --without-tls (ITS#4975). Enable certificate matching.
Hallvard Furuseth [Sun, 20 May 2007 20:06:32 +0000 (20:06 +0000)]
Previous message should have gone in ITS. It is ITS#4974.
Hallvard Furuseth [Sun, 20 May 2007 20:02:52 +0000 (20:02 +0000)]
libldap/tls.c calls CRYPTO_set_id_callback(ldap_pvt_thread_self), which
causes ldap_pvt_thread_self to be called with the wrong prototype.
That can cause OpenSSL to use a garbage value, e.g. if the unsigned
long it expects takes two words but ldap_pvt_thread_t is an int.
I'm fixing it in HEAD now and also provoking an error if unsigned
long cannot hold a ldap_pvt_thread_t. Otherwise it can silently
compile to broken code. Maybe the latter should go in configure,
but since OpenSSL presumably breaks anyway if that fails I don't
see much point at this time.
Hallvard Furuseth [Sat, 19 May 2007 21:26:54 +0000 (21:26 +0000)]
Only use terminal escapes (in $TB/$TN) when printing to a terminal.
Remove a bogus 'waiting' message; the script does not sleep there.
Pierangelo Masarati [Sat, 19 May 2007 14:17:34 +0000 (14:17 +0000)]
test fix to ITS#4964
Pierangelo Masarati [Sat, 19 May 2007 14:12:24 +0000 (14:12 +0000)]
more ITS#4973 initialization
Pierangelo Masarati [Sat, 19 May 2007 14:08:49 +0000 (14:08 +0000)]
re-parse ID from passmod request, if necessary (ultimately fixes ITS#4964, along with fix to ITS#4973)
Pierangelo Masarati [Sat, 19 May 2007 14:06:42 +0000 (14:06 +0000)]
related to ITS#4973
Hallvard Furuseth [Fri, 18 May 2007 23:54:26 +0000 (23:54 +0000)]
Give OperationBuffer normal struct members instead of using
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
Hallvard Furuseth [Fri, 18 May 2007 18:53:10 +0000 (18:53 +0000)]
Regenerate
Hallvard Furuseth [Fri, 18 May 2007 18:42:59 +0000 (18:42 +0000)]
Only use terminal escapes (in $TB/$TN) when printing to a terminal.
Hallvard Furuseth [Fri, 18 May 2007 17:49:38 +0000 (17:49 +0000)]
ITS#4972: $LDAP_THREAD_DEBUG, detached threads, debug_already_initialized().
Also plug a memory leak, set state vars even when unused for the sake of
debugging, and tweak some readability issues & data types.
Hallvard Furuseth [Fri, 18 May 2007 15:32:50 +0000 (15:32 +0000)]
clean-local: Delete configpw configpw.conf
Hallvard Furuseth [Fri, 18 May 2007 15:28:09 +0000 (15:28 +0000)]
Readability patch: ERRVAL() macro for pthreads < 7 vs. >= 7 return values.
Hallvard Furuseth [Fri, 18 May 2007 15:23:28 +0000 (15:23 +0000)]
Re-fixing ITS#2667: test -a and test -o unportable, use && and ||.
Hallvard Furuseth [Fri, 18 May 2007 15:10:15 +0000 (15:10 +0000)]
Only define x509_cert_get_dn() when HAVE_GNUTLS. Remove unused variable.
Hallvard Furuseth [Fri, 18 May 2007 14:48:28 +0000 (14:48 +0000)]
printf format paranoia: macros could be changed to contain format chars
Hallvard Furuseth [Fri, 18 May 2007 14:46:52 +0000 (14:46 +0000)]
Unused varaibles
Hallvard Furuseth [Fri, 18 May 2007 14:45:56 +0000 (14:45 +0000)]
Warning cleanup (avoid cast double return val -> integer, gcc gets suspicious)
Hallvard Furuseth [Fri, 18 May 2007 14:41:28 +0000 (14:41 +0000)]
include lber-int.h (for rev 1.396 certificate changes)
Pierangelo Masarati [Thu, 17 May 2007 13:57:20 +0000 (13:57 +0000)]
...
Hallvard Furuseth [Wed, 16 May 2007 23:28:58 +0000 (23:28 +0000)]
Header nitpick
Hallvard Furuseth [Wed, 16 May 2007 23:27:41 +0000 (23:27 +0000)]
SEE ALSO slapcat(8), slapd-ldif(5)
Hallvard Furuseth [Wed, 16 May 2007 23:23:48 +0000 (23:23 +0000)]
Clarify "bind on"
Hallvard Furuseth [Wed, 16 May 2007 23:23:02 +0000 (23:23 +0000)]
Explain rootDSE
Pierangelo Masarati [Wed, 16 May 2007 09:13:14 +0000 (09:13 +0000)]
allow array of more generic syntaxes
Pierangelo Masarati [Wed, 16 May 2007 01:40:34 +0000 (01:40 +0000)]
allow attribute inheritance with syntax restriction (please review)
Pierangelo Masarati [Wed, 16 May 2007 01:39:41 +0000 (01:39 +0000)]
further cleanup round in back-relay database selection; cleanup
Pierangelo Masarati [Tue, 15 May 2007 22:29:06 +0000 (22:29 +0000)]
check for NULL dn in URL; set error code before seding extended response (partially addresses ITS#4968)
Howard Chu [Mon, 14 May 2007 23:35:36 +0000 (23:35 +0000)]
Fix GNUtls acknowledgement, initial work by Matt Backes. Sponsored by
The Written Word and Stanford University.
Howard Chu [Mon, 14 May 2007 21:25:48 +0000 (21:25 +0000)]
ITS#4961 disable schema checking on contextCSN update
Ralf Haferkamp [Mon, 14 May 2007 12:19:32 +0000 (12:19 +0000)]
make openssl builds working again
Pierangelo Masarati [Sun, 13 May 2007 23:14:55 +0000 (23:14 +0000)]
apply fixes in ITS#4951 (tested)
Hallvard Furuseth [Sun, 13 May 2007 22:32:33 +0000 (22:32 +0000)]
Reapply part of rev 1.2 warning cleanup, it was lost in next revision
Howard Chu [Sun, 13 May 2007 09:43:41 +0000 (09:43 +0000)]
GNUtls - ignore free of NULL ctx
Howard Chu [Sun, 13 May 2007 09:37:37 +0000 (09:37 +0000)]
Don't NUL-terminate bervals during DN parsing
Howard Chu [Sun, 13 May 2007 09:36:52 +0000 (09:36 +0000)]
Don't use strdup on bervals
Howard Chu [Sun, 13 May 2007 09:35:57 +0000 (09:35 +0000)]
Test no longer depends on --with-tls
Howard Chu [Sun, 13 May 2007 01:59:46 +0000 (01:59 +0000)]
Added GNUtls notes
Howard Chu [Sun, 13 May 2007 01:34:12 +0000 (01:34 +0000)]
Add CRLfile option for GNUtls
Howard Chu [Sun, 13 May 2007 01:27:51 +0000 (01:27 +0000)]
Use liblber for certificate Validation, Normalization
Howard Chu [Sun, 13 May 2007 00:15:27 +0000 (00:15 +0000)]
Merged GNUtls support into main tls.c
Howard Chu [Sat, 12 May 2007 23:44:58 +0000 (23:44 +0000)]
No more dependency on OpenSSL
Hallvard Furuseth [Sat, 12 May 2007 17:55:37 +0000 (17:55 +0000)]
Add back-monitor (and its OID arc) to Backend/Database registry
Pierangelo Masarati [Sat, 12 May 2007 13:09:48 +0000 (13:09 +0000)]
if no database can be looked up, don't send result when not appropriate
Pierangelo Masarati [Sat, 12 May 2007 13:07:17 +0000 (13:07 +0000)]
don't try to lookup a database when there's no request DN
Pierangelo Masarati [Sat, 12 May 2007 12:38:09 +0000 (12:38 +0000)]
fix read off by one (spotted by valgrind)
Hallvard Furuseth [Fri, 11 May 2007 23:04:33 +0000 (23:04 +0000)]
Fix for !(LDAP_DEBUG && LDAP_SYSLOG)
Hallvard Furuseth [Fri, 11 May 2007 18:48:13 +0000 (18:48 +0000)]
Comment fixes.
Corrected rev 1.67 cvs comment: ltu_key[] is NULL-terminated _when not full_.
Howard Chu [Thu, 10 May 2007 21:49:43 +0000 (21:49 +0000)]
Added ciphersuite support
Howard Chu [Thu, 10 May 2007 20:33:41 +0000 (20:33 +0000)]
Regenerate with GNUtls additions
Howard Chu [Thu, 10 May 2007 20:33:10 +0000 (20:33 +0000)]
Add GNUtls detection
Howard Chu [Thu, 10 May 2007 20:15:40 +0000 (20:15 +0000)]
Fix typo in prev commit
Howard Chu [Thu, 10 May 2007 19:43:28 +0000 (19:43 +0000)]
Add LDAP_OPT_X_TLS_CRLFILE, peer cert verification for GNUtls
Howard Chu [Thu, 10 May 2007 19:34:27 +0000 (19:34 +0000)]
ITS#4954 clear c_sasl_dn after error
Howard Chu [Thu, 10 May 2007 18:46:15 +0000 (18:46 +0000)]
ITS#4952 use memcmp to compare CSN values
Hallvard Furuseth [Wed, 9 May 2007 23:25:03 +0000 (23:25 +0000)]
Since we only have LDAP_MAXTHR thread_keys, allow max LDAP_MAXTHR
threads per pool, even when ltp_max_count <= 0 ("unlimited").
Keep ltp_max_count in range [0, LDAP_MAXTHR].
Hallvard Furuseth [Wed, 9 May 2007 22:59:04 +0000 (22:59 +0000)]
Make ldap_int_thread_userctx_t.ltu_key[] a proper NULL-terminated array.
(setkey/getkey expected that, but purgekey could set a NULL in the middle.)
Added some checks for input key!=NULL.
API changes, need review - I'm not sure what's indented here:
- setkey(data=NULL, kfree!=NULL) searched as if intended to reset
the key, but updated by setting the key. Now always updates.
- setkey(key=<not found>, data=NULL) could return either success or
failure. Now succeeds iff (data == NULL && kfree == NULL).
Hallvard Furuseth [Wed, 9 May 2007 22:22:44 +0000 (22:22 +0000)]
thread_keys is a (poor) open-addessed hash table, but it lacked a
"deleted item" mark. Add DELETED_THREAD_CTX.
Also improve the hash function a bit, and make the hash unsigned.
Hallvard Furuseth [Wed, 9 May 2007 21:38:28 +0000 (21:38 +0000)]
Protect thread_keys[] with ldap_pvt_thread_pool_mutex, except in
ldap_pvt_thread_pool_purgekey() which may only be called during pauses.
Thus, also wait for pauses to finish before accessing thread_keys in
ldap_int_thread_pool_wrapper(). This may prevent pending tasks from
being started when a pause had been requested, which seems to have been
possible. If that was a feature, we can split ltp_pause==1 in 2 states:
in pause (causes wait), and pause requested.
Also move 'thread_keys[].id = <thread id>' from pool_submit to
pool_wrapper. Until pool_wrapper set the ctx as well, thread context
lookup would just return NULL anyway.
Hallvard Furuseth [Wed, 9 May 2007 19:53:25 +0000 (19:53 +0000)]
Replace state LDAP_INT_THREAD_POOL_PAUSING with member ltp_pause,
so a pause will work during states FINISHING and STOPPING.
Add missing waits and signals, and move waits in pool_wrapper().
Replace if(test) with while(test) when waiting for the multi-purpose
condition variable ltp_cond.
Hallvard Furuseth [Wed, 9 May 2007 19:34:49 +0000 (19:34 +0000)]
ITS#4943:
In ldap_pvt_thread_pool_submit(), when backing out of thread creation:
ltp_pending_count '++' -> '--'. Signal if there are no more threads.
In ldap_int_thread_pool_wrapper():
if() -> assert() where false would result in eternal loop.
Hallvard Furuseth [Wed, 9 May 2007 19:21:08 +0000 (19:21 +0000)]
Don't complain if detached threads exit after ldap_debug_thread_destroy().
Hallvard Furuseth [Wed, 9 May 2007 19:11:44 +0000 (19:11 +0000)]
Remove unused variables
Hallvard Furuseth [Wed, 9 May 2007 19:10:36 +0000 (19:10 +0000)]
assert(pointer) -> assert(pointer != NULL)
Hallvard Furuseth [Wed, 9 May 2007 19:09:32 +0000 (19:09 +0000)]
Struct/array initializers must be constant expressions in C89
Hallvard Furuseth [Wed, 9 May 2007 18:38:10 +0000 (18:38 +0000)]
Cast Debug(%p) pointer argument to void*
Hallvard Furuseth [Wed, 9 May 2007 18:19:17 +0000 (18:19 +0000)]
Rebuild
Hallvard Furuseth [Wed, 9 May 2007 18:17:10 +0000 (18:17 +0000)]
ITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup
Howard Chu [Tue, 8 May 2007 14:17:21 +0000 (14:17 +0000)]
coverity scan, e is non-NULL
Howard Chu [Tue, 8 May 2007 14:13:18 +0000 (14:13 +0000)]
coverity error, u->lud_scheme is mandatory
Howard Chu [Tue, 8 May 2007 14:07:52 +0000 (14:07 +0000)]
coverity scan, fix typo
Howard Chu [Tue, 8 May 2007 14:04:23 +0000 (14:04 +0000)]
coverity error, memory leak in file2anlist
Howard Chu [Tue, 8 May 2007 14:01:16 +0000 (14:01 +0000)]
coverity scan, ch_realloc won't return NULL