]> git.sur5r.net Git - openldap/log
openldap
17 years agodon't try to lookup a database when there's no request DN
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

17 years agofix read off by one (spotted by valgrind)
Pierangelo Masarati [Sat, 12 May 2007 12:38:09 +0000 (12:38 +0000)]
fix read off by one (spotted by valgrind)

17 years agoFix for !(LDAP_DEBUG && LDAP_SYSLOG)
Hallvard Furuseth [Fri, 11 May 2007 23:04:33 +0000 (23:04 +0000)]
Fix for !(LDAP_DEBUG && LDAP_SYSLOG)

17 years agoComment fixes.
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_.

17 years agoAdded ciphersuite support
Howard Chu [Thu, 10 May 2007 21:49:43 +0000 (21:49 +0000)]
Added ciphersuite support

17 years agoRegenerate with GNUtls additions
Howard Chu [Thu, 10 May 2007 20:33:41 +0000 (20:33 +0000)]
Regenerate with GNUtls additions

17 years agoAdd GNUtls detection
Howard Chu [Thu, 10 May 2007 20:33:10 +0000 (20:33 +0000)]
Add GNUtls detection

17 years agoFix typo in prev commit
Howard Chu [Thu, 10 May 2007 20:15:40 +0000 (20:15 +0000)]
Fix typo in prev commit

17 years agoAdd LDAP_OPT_X_TLS_CRLFILE, peer cert verification for GNUtls
Howard Chu [Thu, 10 May 2007 19:43:28 +0000 (19:43 +0000)]
Add LDAP_OPT_X_TLS_CRLFILE, peer cert verification for GNUtls

17 years agoITS#4954 clear c_sasl_dn after error
Howard Chu [Thu, 10 May 2007 19:34:27 +0000 (19:34 +0000)]
ITS#4954 clear c_sasl_dn after error

17 years agoITS#4952 use memcmp to compare CSN values
Howard Chu [Thu, 10 May 2007 18:46:15 +0000 (18:46 +0000)]
ITS#4952 use memcmp to compare CSN values

17 years agoSince we only have LDAP_MAXTHR thread_keys, allow max LDAP_MAXTHR
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].

17 years agoMake ldap_int_thread_userctx_t.ltu_key[] a proper NULL-terminated array.
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).

17 years agothread_keys is a (poor) open-addessed hash table, but it lacked a
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.

17 years agoProtect thread_keys[] with ldap_pvt_thread_pool_mutex, except in
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.

17 years agoReplace state LDAP_INT_THREAD_POOL_PAUSING with member ltp_pause,
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.

17 years agoITS#4943:
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.

17 years agoDon't complain if detached threads exit after ldap_debug_thread_destroy().
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().

17 years agoRemove unused variables
Hallvard Furuseth [Wed, 9 May 2007 19:11:44 +0000 (19:11 +0000)]
Remove unused variables

17 years agoassert(pointer) -> assert(pointer != NULL)
Hallvard Furuseth [Wed, 9 May 2007 19:10:36 +0000 (19:10 +0000)]
assert(pointer) -> assert(pointer != NULL)

17 years agoStruct/array initializers must be constant expressions in C89
Hallvard Furuseth [Wed, 9 May 2007 19:09:32 +0000 (19:09 +0000)]
Struct/array initializers must be constant expressions in C89

17 years agoCast Debug(%p) pointer argument to void*
Hallvard Furuseth [Wed, 9 May 2007 18:38:10 +0000 (18:38 +0000)]
Cast Debug(%p) pointer argument to void*

17 years agoRebuild
Hallvard Furuseth [Wed, 9 May 2007 18:19:17 +0000 (18:19 +0000)]
Rebuild

17 years agoITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup
Hallvard Furuseth [Wed, 9 May 2007 18:17:10 +0000 (18:17 +0000)]
ITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup

17 years agocoverity scan, e is non-NULL
Howard Chu [Tue, 8 May 2007 14:17:21 +0000 (14:17 +0000)]
coverity scan, e is non-NULL

17 years agocoverity error, u->lud_scheme is mandatory
Howard Chu [Tue, 8 May 2007 14:13:18 +0000 (14:13 +0000)]
coverity error, u->lud_scheme is mandatory

17 years agocoverity scan, fix typo
Howard Chu [Tue, 8 May 2007 14:07:52 +0000 (14:07 +0000)]
coverity scan, fix typo

17 years agocoverity error, memory leak in file2anlist
Howard Chu [Tue, 8 May 2007 14:04:23 +0000 (14:04 +0000)]
coverity error, memory leak in file2anlist

17 years agocoverity scan, ch_realloc won't return NULL
Howard Chu [Tue, 8 May 2007 14:01:16 +0000 (14:01 +0000)]
coverity scan, ch_realloc won't return NULL

17 years agocoverity fix, slapd_rw_apply NULL filter
Howard Chu [Tue, 8 May 2007 13:57:13 +0000 (13:57 +0000)]
coverity fix, slapd_rw_apply NULL filter

17 years agofix comparison with string literal
Ralf Haferkamp [Mon, 7 May 2007 14:55:45 +0000 (14:55 +0000)]
fix comparison with string literal

17 years agoITS#4949 make config_syslog accumulate across multiple values
Howard Chu [Sat, 5 May 2007 01:22:29 +0000 (01:22 +0000)]
ITS#4949 make config_syslog accumulate across multiple values
Can set to zero to explicitly clear it. (As well as just deleting
all values.)

17 years agoITS#4939 fix typo
Howard Chu [Sun, 29 Apr 2007 06:14:03 +0000 (06:14 +0000)]
ITS#4939 fix typo

17 years agoITS#4917 preserve old sat_ad_mutex
Howard Chu [Tue, 24 Apr 2007 12:02:53 +0000 (12:02 +0000)]
ITS#4917 preserve old sat_ad_mutex

17 years agoDisallow runtime delete of modload values
Howard Chu [Tue, 24 Apr 2007 11:46:22 +0000 (11:46 +0000)]
Disallow runtime delete of modload values

17 years agoRevert prev commit, unnecessary
Howard Chu [Mon, 23 Apr 2007 14:27:07 +0000 (14:27 +0000)]
Revert prev commit, unnecessary

17 years agoITS#4935 SASL_MAX_BUFF_SIZE should be 2^24 - 1
Howard Chu [Mon, 23 Apr 2007 14:21:48 +0000 (14:21 +0000)]
ITS#4935 SASL_MAX_BUFF_SIZE should be 2^24 - 1

17 years agoDistinguish absent control value from empty control value.
Kurt Zeilenga [Fri, 20 Apr 2007 22:32:58 +0000 (22:32 +0000)]
Distinguish absent control value from empty control value.

17 years agoalphabetize options listing correctly. (relocate -g option)
Quanah Gibson-Mount [Fri, 20 Apr 2007 21:52:46 +0000 (21:52 +0000)]
alphabetize options listing correctly. (relocate -g option)

17 years agoadd -s option to top list of arguments
Quanah Gibson-Mount [Fri, 20 Apr 2007 04:53:42 +0000 (04:53 +0000)]
add -s option to top list of arguments

17 years agofix ';binary' certificate transport (ITS#4868); add cert to sql-test000 (mysql; psql...
Pierangelo Masarati [Thu, 12 Apr 2007 01:02:01 +0000 (01:02 +0000)]
fix ';binary' certificate transport (ITS#4868); add cert to sql-test000 (mysql; psql untested)

17 years agofix no-op crasher (ITS#4925)
Pierangelo Masarati [Wed, 11 Apr 2007 20:31:49 +0000 (20:31 +0000)]
fix no-op crasher (ITS#4925)

17 years agodon't assert(0); apparently, other responses may result from a simple bind (but log...
Pierangelo Masarati [Wed, 11 Apr 2007 08:57:41 +0000 (08:57 +0000)]
don't assert(0); apparently, other responses may result from a simple bind (but log them, at least; ITS#4924)

17 years agoFix prev commit, filter construction with URI filters
Howard Chu [Tue, 10 Apr 2007 02:38:54 +0000 (02:38 +0000)]
Fix prev commit, filter construction with URI filters

17 years agoAdd missing return from void *bdb_tool_trickle_task()
Hallvard Furuseth [Mon, 9 Apr 2007 22:45:21 +0000 (22:45 +0000)]
Add missing return from void *bdb_tool_trickle_task()

17 years agoAdd trickle-sync for quick mode
Howard Chu [Sat, 7 Apr 2007 06:10:01 +0000 (06:10 +0000)]
Add trickle-sync for quick mode

17 years agoMore attr= to attrs= fixes
Quanah Gibson-Mount [Fri, 6 Apr 2007 06:01:50 +0000 (06:01 +0000)]
More attr= to attrs= fixes

17 years agos/attr=/attrs=/
Quanah Gibson-Mount [Fri, 6 Apr 2007 05:56:44 +0000 (05:56 +0000)]
s/attr=/attrs=/

17 years agoITS#4915 log failure retry status
Howard Chu [Fri, 6 Apr 2007 01:16:55 +0000 (01:16 +0000)]
ITS#4915 log failure retry status

17 years agoFix prev commit, config_obsolete
Howard Chu [Fri, 6 Apr 2007 00:31:08 +0000 (00:31 +0000)]
Fix prev commit, config_obsolete

17 years agoAxe slurpd / replog support
Howard Chu [Fri, 6 Apr 2007 00:21:02 +0000 (00:21 +0000)]
Axe slurpd / replog support

17 years agoRegenerate without slurpd
Howard Chu [Thu, 5 Apr 2007 23:44:27 +0000 (23:44 +0000)]
Regenerate without slurpd

17 years agoslurpd is strongly deprecated
Howard Chu [Thu, 5 Apr 2007 23:41:35 +0000 (23:41 +0000)]
slurpd is strongly deprecated

17 years agoslurpd is strongly deprecated
Howard Chu [Thu, 5 Apr 2007 23:28:06 +0000 (23:28 +0000)]
slurpd is strongly deprecated

17 years agoslurpd is strongly deprecated
Howard Chu [Thu, 5 Apr 2007 23:20:04 +0000 (23:20 +0000)]
slurpd is strongly deprecated

17 years agoolcDatabase=config always gets index 0,
Ralf Haferkamp [Thu, 5 Apr 2007 16:12:24 +0000 (16:12 +0000)]
olcDatabase=config always gets index 0,
don't allow multiple olcDatabase=config entries (ITS#4914)

17 years agoITS#4911 move slap_op_init/destroy to slap_init/destroy
Howard Chu [Thu, 5 Apr 2007 01:39:24 +0000 (01:39 +0000)]
ITS#4911 move slap_op_init/destroy to slap_init/destroy

17 years agoITS#4897 source/destination confusion
Howard Chu [Thu, 5 Apr 2007 01:20:42 +0000 (01:20 +0000)]
ITS#4897 source/destination confusion

17 years agoITS#4877 document -s newsuperior option
Howard Chu [Thu, 5 Apr 2007 01:18:31 +0000 (01:18 +0000)]
ITS#4877 document -s newsuperior option

17 years agoAdditional fix for prev commit
Howard Chu [Thu, 5 Apr 2007 01:08:29 +0000 (01:08 +0000)]
Additional fix for prev commit

17 years agoITS#4863 s/access to attr/access to attrs/
Howard Chu [Thu, 5 Apr 2007 01:07:41 +0000 (01:07 +0000)]
ITS#4863 s/access to attr/access to attrs/

17 years agoFix uninit'd serverID field
Howard Chu [Thu, 5 Apr 2007 01:03:02 +0000 (01:03 +0000)]
Fix uninit'd serverID field

17 years agoFix typo in prev commit
Howard Chu [Thu, 5 Apr 2007 01:01:01 +0000 (01:01 +0000)]
Fix typo in prev commit

17 years agoITS#4910 note that mirrormode now requires serverID
Howard Chu [Thu, 5 Apr 2007 00:59:32 +0000 (00:59 +0000)]
ITS#4910 note that mirrormode now requires serverID

17 years agoITS#4912 fix typo in prev commit
Howard Chu [Thu, 5 Apr 2007 00:16:17 +0000 (00:16 +0000)]
ITS#4912 fix typo in prev commit

17 years agober_decode_oid(), ber_encode_oid(): cast bv_val to unsigned char*
Hallvard Furuseth [Wed, 4 Apr 2007 17:51:10 +0000 (17:51 +0000)]
ber_decode_oid(), ber_encode_oid(): cast bv_val to unsigned char*

17 years agoprintf %p expects void*
Hallvard Furuseth [Wed, 4 Apr 2007 17:49:31 +0000 (17:49 +0000)]
printf %p expects void*

17 years agoFix char* = const char* (text = sr->sr_text)
Hallvard Furuseth [Wed, 4 Apr 2007 17:48:25 +0000 (17:48 +0000)]
Fix char* = const char* (text = sr->sr_text)

17 years agoMoved the check for existing monitor database to the top, otherwise trying
Ralf Haferkamp [Wed, 4 Apr 2007 17:14:09 +0000 (17:14 +0000)]
Moved the check for existing monitor database to the top, otherwise trying
to add multiple monitor databases through back-config deadlocks the server.

17 years agoITS#4879 fixes for url parse/unparse
Howard Chu [Tue, 3 Apr 2007 03:27:24 +0000 (03:27 +0000)]
ITS#4879 fixes for url parse/unparse

17 years agoITS#4875 ignore zero-length st_size
Howard Chu [Tue, 3 Apr 2007 01:40:52 +0000 (01:40 +0000)]
ITS#4875 ignore zero-length st_size

17 years agoNote overlay config ordering
Howard Chu [Mon, 2 Apr 2007 22:35:16 +0000 (22:35 +0000)]
Note overlay config ordering

17 years agoITS#4904 fix delta-sync modlist free
Howard Chu [Mon, 2 Apr 2007 21:22:43 +0000 (21:22 +0000)]
ITS#4904 fix delta-sync modlist free

17 years agoUse correct memory free function (ITS#4901)
Quanah Gibson-Mount [Mon, 2 Apr 2007 00:43:16 +0000 (00:43 +0000)]
Use correct memory free function (ITS#4901)

17 years agoFix typo
Quanah Gibson-Mount [Sun, 1 Apr 2007 23:27:37 +0000 (23:27 +0000)]
Fix typo

17 years agoITS#4899 fix for keys not getting cleared
Howard Chu [Sun, 1 Apr 2007 11:52:51 +0000 (11:52 +0000)]
ITS#4899 fix for keys not getting cleared

17 years agoCleanup conditional arg in prev commit
Howard Chu [Sat, 31 Mar 2007 00:40:22 +0000 (00:40 +0000)]
Cleanup conditional arg in prev commit

17 years agouse slap_add_opattrs as discussed on -devel.
Ralf Haferkamp [Fri, 30 Mar 2007 18:39:33 +0000 (18:39 +0000)]
use slap_add_opattrs as discussed on -devel.

17 years agoAdd operational Attributes when creating frontend and config database entries.
Ralf Haferkamp [Thu, 29 Mar 2007 15:39:52 +0000 (15:39 +0000)]
Add operational Attributes when creating frontend and config database entries.
(Otherwise test049-sync-config fails)

17 years agoCreate frontend and config database entries automatically during slapadd
Ralf Haferkamp [Thu, 29 Mar 2007 14:45:44 +0000 (14:45 +0000)]
Create frontend and config database entries automatically during slapadd

17 years agoDo not end a potentially last line of a Makefile statement with '\'.
Hallvard Furuseth [Mon, 26 Mar 2007 22:16:45 +0000 (22:16 +0000)]
Do not end a potentially last line of a Makefile statement with '\'.

17 years agoITS#4893 back to pipes...
Howard Chu [Mon, 26 Mar 2007 12:44:11 +0000 (12:44 +0000)]
ITS#4893 back to pipes...

17 years agoITS#4893 just send the client socket, not a pipe descriptor.
Howard Chu [Sun, 25 Mar 2007 15:20:50 +0000 (15:20 +0000)]
ITS#4893 just send the client socket, not a pipe descriptor.

17 years agoITS#4893 fix prev commit
Howard Chu [Sun, 25 Mar 2007 12:18:06 +0000 (12:18 +0000)]
ITS#4893 fix prev commit

17 years agoMore struct cleanup
Howard Chu [Sun, 25 Mar 2007 11:37:51 +0000 (11:37 +0000)]
More struct cleanup

17 years agoITS#4893 define LDAP_PF_LOCAL_SENDMSG in <ac/socket.h> if a message must
Howard Chu [Sun, 25 Mar 2007 04:40:22 +0000 (04:40 +0000)]
ITS#4893 define LDAP_PF_LOCAL_SENDMSG in <ac/socket.h> if a message must
be sent to transmit client credentials. Buffer the message data.

17 years agoUse AC_MEMCPY
Howard Chu [Sun, 25 Mar 2007 04:31:34 +0000 (04:31 +0000)]
Use AC_MEMCPY

17 years agoRevert prev commits, didn't belong here
Howard Chu [Sun, 25 Mar 2007 04:27:15 +0000 (04:27 +0000)]
Revert prev commits, didn't belong here

17 years agoFix typo in prev commit
Howard Chu [Sun, 25 Mar 2007 04:13:55 +0000 (04:13 +0000)]
Fix typo in prev commit

17 years agoAdd LDAP_PF_LOCAL_SENDMSG flag
Howard Chu [Sun, 25 Mar 2007 01:06:36 +0000 (01:06 +0000)]
Add LDAP_PF_LOCAL_SENDMSG flag

17 years agoPreliminary GNUtls support. gnutls.c will merge back into tls.c later.
Howard Chu [Fri, 23 Mar 2007 23:47:07 +0000 (23:47 +0000)]
Preliminary GNUtls support. gnutls.c will merge back into tls.c later.

17 years agoAdd options for ber_get_stringbv() to omit NUL-terminator, to allow
Howard Chu [Fri, 23 Mar 2007 15:27:38 +0000 (15:27 +0000)]
Add options for ber_get_stringbv() to omit NUL-terminator, to allow
non-destructive in-place parsing

17 years agoFix TLS default for clients
Howard Chu [Fri, 23 Mar 2007 12:47:35 +0000 (12:47 +0000)]
Fix TLS default for clients

17 years agoITS#4880 s/HAVE_POSIX_TERMIOS/HAVE_TERMIOS_H/
Howard Chu [Fri, 23 Mar 2007 01:10:58 +0000 (01:10 +0000)]
ITS#4880 s/HAVE_POSIX_TERMIOS/HAVE_TERMIOS_H/

17 years agoadd support for pagedResults to back-sql (ITS#4888)
Pierangelo Masarati [Thu, 22 Mar 2007 23:10:56 +0000 (23:10 +0000)]
add support for pagedResults to back-sql (ITS#4888)

17 years agofix test in case of bailout (ITS#4891)
Pierangelo Masarati [Thu, 22 Mar 2007 22:30:53 +0000 (22:30 +0000)]
fix test in case of bailout (ITS#4891)

17 years agoEnhanced unique configuration
Howard Chu [Thu, 22 Mar 2007 08:22:53 +0000 (08:22 +0000)]
Enhanced unique configuration

17 years agoRemove obsolete purge (obsoleted in cache.c rev 1.106)
Howard Chu [Thu, 22 Mar 2007 07:35:10 +0000 (07:35 +0000)]
Remove obsolete purge (obsoleted in cache.c rev 1.106)

17 years agodon't add databases twice; but try as hard as possible...
Pierangelo Masarati [Wed, 21 Mar 2007 23:22:49 +0000 (23:22 +0000)]
don't add databases twice; but try as hard as possible...

17 years agoallow adding of back-bdb with monitoring on (ITS#4789)
Pierangelo Masarati [Wed, 21 Mar 2007 22:35:37 +0000 (22:35 +0000)]
allow adding of back-bdb with monitoring on (ITS#4789)