]> git.sur5r.net Git - openldap/log
openldap
17 years ago- use STRLENOF, looks cleaner
Pierangelo Masarati [Sat, 9 Sep 2006 16:23:02 +0000 (16:23 +0000)]
- use STRLENOF, looks cleaner
- in case a value is incorrectly empty (technically, it's null because
  that's how it's returned by the stringification function), make enough
  room to add the error string "(null)"
- in case a value is legitimately empty (see above), use it accordingly;
  for example, a filter "(entryDN=)" is valid, so it should be possible
  to stringify it like that.

17 years agominor cleanup
Pierangelo Masarati [Sat, 9 Sep 2006 16:20:11 +0000 (16:20 +0000)]
minor cleanup

17 years agorename functions/macros (no impact, they're currently unused)
Pierangelo Masarati [Sat, 9 Sep 2006 16:16:27 +0000 (16:16 +0000)]
rename functions/macros (no impact, they're currently unused)

17 years agomore cleanup; add the frontend to the set of monitored databases; handle exceptional...
Pierangelo Masarati [Sat, 9 Sep 2006 02:35:58 +0000 (02:35 +0000)]
more cleanup; add the frontend to the set of monitored databases; handle exceptional cases a bit more smoothly

17 years agofix entry unlock in case of unhandled scope (ITS#4668)
Pierangelo Masarati [Sat, 9 Sep 2006 00:10:43 +0000 (00:10 +0000)]
fix entry unlock in case of unhandled scope (ITS#4668)

17 years agosupport "subordinate" scope
Pierangelo Masarati [Sat, 9 Sep 2006 00:00:44 +0000 (00:00 +0000)]
support "subordinate" scope

17 years agoITS#4667 in connection_closing, release c_mutex to allow waiters
Howard Chu [Fri, 8 Sep 2006 23:31:53 +0000 (23:31 +0000)]
ITS#4667 in connection_closing, release c_mutex to allow waiters
to clear out.

17 years agoITS#4667 fix assert in connection_next() for PENDING connections
Howard Chu [Fri, 8 Sep 2006 23:30:31 +0000 (23:30 +0000)]
ITS#4667 fix assert in connection_next() for PENDING connections

17 years agocleanup names
Pierangelo Masarati [Fri, 8 Sep 2006 22:10:49 +0000 (22:10 +0000)]
cleanup names

17 years ago- need to be able to set new subsystems when appending entire entries;
Pierangelo Masarati [Fri, 8 Sep 2006 22:02:32 +0000 (22:02 +0000)]
- need to be able to set new subsystems when appending entire entries;
- in case we appended an entry to a yet unknown parent, we don't know
  the full DN, so unregistering needs to be possible based on the
  available data;
- complete unregister calls so that not-yet-registered stuff can be
  removed from limbo

17 years agosome overlay (rwm?) might set those values
Pierangelo Masarati [Fri, 8 Sep 2006 21:19:47 +0000 (21:19 +0000)]
some overlay (rwm?) might set those values

17 years agoreally really minor cleanup
Pierangelo Masarati [Fri, 8 Sep 2006 21:19:05 +0000 (21:19 +0000)]
really really minor cleanup

17 years agodefer handling of loglevel listing, to let modules register custom subsystems (ITS...
Pierangelo Masarati [Fri, 8 Sep 2006 20:49:00 +0000 (20:49 +0000)]
defer handling of loglevel listing, to let modules register custom subsystems (ITS#4666).  Note: in case of any error in between, logging could not occur

17 years agopoint to slapd(8) for details on "-d"
Pierangelo Masarati [Fri, 8 Sep 2006 18:26:57 +0000 (18:26 +0000)]
point to slapd(8) for details on "-d"

17 years agore-enable "-d '?'" as a means to list what loglevels are available (ITS#4666)
Pierangelo Masarati [Fri, 8 Sep 2006 18:26:20 +0000 (18:26 +0000)]
re-enable "-d '?'" as a means to list what loglevels are available (ITS#4666)

17 years agocomplain if "-T" is not the first option
Pierangelo Masarati [Fri, 8 Sep 2006 18:25:34 +0000 (18:25 +0000)]
complain if "-T" is not the first option

17 years agore-enable "-d '?'" as a means to list what loglevels are available (ITS#4666)
Pierangelo Masarati [Fri, 8 Sep 2006 18:10:53 +0000 (18:10 +0000)]
re-enable "-d '?'" as a means to list what loglevels are available (ITS#4666)

17 years agocustom monitoring can be enabled/disabled via config
Pierangelo Masarati [Wed, 6 Sep 2006 23:08:57 +0000 (23:08 +0000)]
custom monitoring can be enabled/disabled via config

17 years agocleanup subsystems monitoring OID handling
Pierangelo Masarati [Wed, 6 Sep 2006 16:06:49 +0000 (16:06 +0000)]
cleanup subsystems monitoring OID handling

17 years agocheck return values (failing when filter invalid)
Pierangelo Masarati [Wed, 6 Sep 2006 15:12:36 +0000 (15:12 +0000)]
check return values (failing when filter invalid)

17 years agofix use with back-hdb
Pierangelo Masarati [Wed, 6 Sep 2006 15:11:54 +0000 (15:11 +0000)]
fix use with back-hdb

17 years agocleanup monitoring resources
Pierangelo Masarati [Wed, 6 Sep 2006 12:07:03 +0000 (12:07 +0000)]
cleanup monitoring resources

17 years agoimplement support for unregistering registered stuff
Pierangelo Masarati [Wed, 6 Sep 2006 12:06:42 +0000 (12:06 +0000)]
implement support for unregistering registered stuff

17 years agoimprove previous commit
Pierangelo Masarati [Wed, 6 Sep 2006 12:05:38 +0000 (12:05 +0000)]
improve previous commit

17 years agofix outdated comments
Pierangelo Masarati [Wed, 6 Sep 2006 12:04:52 +0000 (12:04 +0000)]
fix outdated comments

17 years agoadd scope helpers
Pierangelo Masarati [Wed, 6 Sep 2006 12:04:33 +0000 (12:04 +0000)]
add scope helpers

17 years ago- objectClass is now AUXILIARY (modifies existing object...)
Pierangelo Masarati [Wed, 6 Sep 2006 09:10:46 +0000 (09:10 +0000)]
- objectClass is now AUXILIARY (modifies existing object...)
- moved directory path publication from back-monitor/database.c
- added cleanup handler
- minor cleanup

17 years agoremove dependencies on back-{b,h}db
Pierangelo Masarati [Wed, 6 Sep 2006 09:09:03 +0000 (09:09 +0000)]
remove dependencies on back-{b,h}db

17 years agoadd attr_normalize*() helper (please holler if I missed any obvious alternative)
Pierangelo Masarati [Wed, 6 Sep 2006 09:06:50 +0000 (09:06 +0000)]
add attr_normalize*() helper (please holler if I missed any obvious alternative)

17 years agoReturn current entry/IDL cache counts
Howard Chu [Wed, 6 Sep 2006 03:37:13 +0000 (03:37 +0000)]
Return current entry/IDL cache counts

17 years agodon't get mad if monitor database is not configured
Pierangelo Masarati [Wed, 6 Sep 2006 02:14:32 +0000 (02:14 +0000)]
don't get mad if monitor database is not configured

17 years agominor cleanup; plug couple of one-time leaks
Pierangelo Masarati [Wed, 6 Sep 2006 02:06:45 +0000 (02:06 +0000)]
minor cleanup; plug couple of one-time leaks

17 years ago- setup framework for monitoring of back-bdb/back-hdb stuff in their
Pierangelo Masarati [Wed, 6 Sep 2006 01:54:54 +0000 (01:54 +0000)]
- setup framework for monitoring of back-bdb/back-hdb stuff in their
  database entry in cn=monitor
- improve support for custom attribute/callback registration
  in back-monitor
- design API for registered antry/attr/callback removal in back-monitor

HEADS UP: now back-bdb requires back-monitor to be present, either static
or dynamically loaded __before__ back-bdb/back-hdb is initialized.
This works for sure if both back-bdb & back-monitor are static or dynamic
(provided back-monitor.la is loaded before back_bdb.la); it is not clear
what happens if back-bdb is static and back-monitor is dynamic.  In case,
either make back-bdb monitoring conditional, or hardwire back-monitor
much like back-config and back-ldif.

17 years agobetter handling of randomness
Pierangelo Masarati [Mon, 4 Sep 2006 08:40:40 +0000 (08:40 +0000)]
better handling of randomness

17 years agocleanup handling of sleeps
Pierangelo Masarati [Mon, 4 Sep 2006 08:36:16 +0000 (08:36 +0000)]
cleanup handling of sleeps

17 years agoappend logs
Pierangelo Masarati [Mon, 4 Sep 2006 08:29:47 +0000 (08:29 +0000)]
append logs

17 years agoimprove timeout support (ITS#4157, ITS#4663)
Pierangelo Masarati [Mon, 4 Sep 2006 08:26:09 +0000 (08:26 +0000)]
improve timeout support (ITS#4157, ITS#4663)

17 years agoimprove timeout support (ITS#4157, ITS#4663); manpage cleanup
Pierangelo Masarati [Mon, 4 Sep 2006 08:24:05 +0000 (08:24 +0000)]
improve timeout support (ITS#4157, ITS#4663); manpage cleanup

17 years agorelease authz resources at shutdown
Pierangelo Masarati [Mon, 4 Sep 2006 07:20:59 +0000 (07:20 +0000)]
release authz resources at shutdown

17 years agomove req2op selection into a helper
Pierangelo Masarati [Mon, 4 Sep 2006 07:17:34 +0000 (07:17 +0000)]
move req2op selection into a helper

17 years agofix arg format; better trace logging...
Pierangelo Masarati [Sun, 3 Sep 2006 11:14:37 +0000 (11:14 +0000)]
fix arg format; better trace logging...

17 years agodon't abandon binds in progress; rather unbind (ITS#4663).
Pierangelo Masarati [Sun, 3 Sep 2006 11:04:27 +0000 (11:04 +0000)]
don't abandon binds in progress; rather unbind (ITS#4663).
Better logging for tracing

17 years agoback-ldap should only touch the connection timestamp when activity actually occurred...
Pierangelo Masarati [Sun, 3 Sep 2006 11:02:15 +0000 (11:02 +0000)]
back-ldap should only touch the connection timestamp when activity actually occurred (i.e. ldap_result() returned a positive value), otherwise if "the network cable is removed after the connection is established" ldap_result() keeps returning 0 forever...

17 years agouse preallocated entries? (otherwise bdb_add and others leak...)
Pierangelo Masarati [Sun, 3 Sep 2006 10:58:13 +0000 (10:58 +0000)]
use preallocated entries? (otherwise bdb_add and others leak...)

17 years agoplug slapo-ppolicy related leaks (ITS#4665)
Pierangelo Masarati [Sun, 3 Sep 2006 10:53:38 +0000 (10:53 +0000)]
plug slapo-ppolicy related leaks (ITS#4665)

17 years agoplug leaks in search filter (and cleanup code; ITS#4664)
Pierangelo Masarati [Sun, 3 Sep 2006 10:45:07 +0000 (10:45 +0000)]
plug leaks in search filter (and cleanup code; ITS#4664)

17 years agobetter function name
Pierangelo Masarati [Fri, 1 Sep 2006 16:21:20 +0000 (16:21 +0000)]
better function name

17 years agokeep count of requests in use
Pierangelo Masarati [Fri, 1 Sep 2006 14:00:58 +0000 (14:00 +0000)]
keep count of requests in use

17 years agodon't risk dangling pointers
Pierangelo Masarati [Fri, 1 Sep 2006 13:59:55 +0000 (13:59 +0000)]
don't risk dangling pointers

17 years agodon't use deprecated functions
Pierangelo Masarati [Fri, 1 Sep 2006 13:57:37 +0000 (13:57 +0000)]
don't use deprecated functions

17 years agoremove unnecessary assertion; add test for pending ops
Pierangelo Masarati [Fri, 1 Sep 2006 10:41:54 +0000 (10:41 +0000)]
remove unnecessary assertion; add test for pending ops

17 years agocleanup
Pierangelo Masarati [Fri, 1 Sep 2006 10:01:36 +0000 (10:01 +0000)]
cleanup

17 years agoadd an assertion to track ITS#4659; minor cleanup
Pierangelo Masarati [Fri, 1 Sep 2006 10:00:50 +0000 (10:00 +0000)]
add an assertion to track ITS#4659; minor cleanup

17 years agominor cleanup
Pierangelo Masarati [Thu, 31 Aug 2006 17:34:01 +0000 (17:34 +0000)]
minor cleanup

17 years agodon't leak identity
Pierangelo Masarati [Thu, 31 Aug 2006 16:21:54 +0000 (16:21 +0000)]
don't leak identity

17 years agodestroy socket set (man page for epoll_create(2) states that close(2) must be called...
Pierangelo Masarati [Thu, 31 Aug 2006 13:51:25 +0000 (13:51 +0000)]
destroy socket set (man page for epoll_create(2) states that close(2) must be called on the returned filedes)

17 years agofix typo
Pierangelo Masarati [Thu, 31 Aug 2006 13:35:01 +0000 (13:35 +0000)]
fix typo

17 years agopick declaration of ch_strdup()
Pierangelo Masarati [Wed, 30 Aug 2006 22:45:26 +0000 (22:45 +0000)]
pick declaration of ch_strdup()

17 years agodon't run useless (and likely to fail) checks, if possible
Pierangelo Masarati [Wed, 30 Aug 2006 21:05:05 +0000 (21:05 +0000)]
don't run useless (and likely to fail) checks, if possible

17 years agofix pre-allocated entry/attribute handling
Pierangelo Masarati [Tue, 29 Aug 2006 17:09:08 +0000 (17:09 +0000)]
fix pre-allocated entry/attribute handling

17 years agofix pre-allocated entry/attribute handling
Pierangelo Masarati [Tue, 29 Aug 2006 16:07:39 +0000 (16:07 +0000)]
fix pre-allocated entry/attribute handling

17 years agoforced commit
Kurt Zeilenga [Tue, 29 Aug 2006 07:38:09 +0000 (07:38 +0000)]
forced commit

17 years agomore cleanup
Kurt Zeilenga [Tue, 29 Aug 2006 07:28:22 +0000 (07:28 +0000)]
more cleanup

17 years agocleanup
Kurt Zeilenga [Tue, 29 Aug 2006 07:25:34 +0000 (07:25 +0000)]
cleanup

17 years agominor change
Kurt Zeilenga [Tue, 29 Aug 2006 07:22:28 +0000 (07:22 +0000)]
minor change

17 years agoHide config schema if !LDAP_DEVEL
Howard Chu [Tue, 29 Aug 2006 02:02:12 +0000 (02:02 +0000)]
Hide config schema if !LDAP_DEVEL

17 years agoEntry/Attribute struct caching, to minimize malloc fragmentation
Howard Chu [Tue, 29 Aug 2006 01:43:23 +0000 (01:43 +0000)]
Entry/Attribute struct caching, to minimize malloc fragmentation
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.

17 years agoMust use ch_strdup, not strdup
Howard Chu [Tue, 29 Aug 2006 01:36:52 +0000 (01:36 +0000)]
Must use ch_strdup, not strdup

17 years agoTLS ctx is already cleaned up
Howard Chu [Tue, 29 Aug 2006 01:34:55 +0000 (01:34 +0000)]
TLS ctx is already cleaned up

17 years agoOnly set c_sasl_bindop on actual SASL binds
Howard Chu [Tue, 29 Aug 2006 01:19:34 +0000 (01:19 +0000)]
Only set c_sasl_bindop on actual SASL binds

17 years agonote the single-value userPassword constraint (please review)
Pierangelo Masarati [Mon, 28 Aug 2006 14:33:59 +0000 (14:33 +0000)]
note the single-value userPassword constraint (please review)

17 years agoappend global access rules also when be != NULL in backend_startup() (ITS#4654)
Pierangelo Masarati [Mon, 28 Aug 2006 13:31:16 +0000 (13:31 +0000)]
append global access rules also when be != NULL in backend_startup() (ITS#4654)

17 years agoAdd single-password constraint; NOTE from ppolicy.c:
Pierangelo Masarati [Mon, 28 Aug 2006 12:44:39 +0000 (12:44 +0000)]
Add single-password constraint; NOTE from ppolicy.c:

/* FIXME: there's no easy way to ensure
 * that add does not cause multiple
 * userPassword values; one way (that
 * would be consistent with the single
 * password constraint) would be to turn
 * add into replace); another would be
 * to disallow add.
 *
 * Let's check at least that a single value
 * is being added
 */

17 years agoITS#4358, thanks to Kevine Zerbib
Quanah Gibson-Mount [Mon, 28 Aug 2006 01:07:25 +0000 (01:07 +0000)]
ITS#4358, thanks to Kevine Zerbib

17 years agoFix comment style.
Quanah Gibson-Mount [Mon, 28 Aug 2006 01:05:32 +0000 (01:05 +0000)]
Fix comment style.

17 years agoFix delete type modifys where no value is given to be deleted. (ITS#2612)
Quanah Gibson-Mount [Mon, 28 Aug 2006 01:01:32 +0000 (01:01 +0000)]
Fix delete type modifys where no value is given to be deleted. (ITS#2612)
Thanks to Alister Winfield for the patch.

17 years agofix e_private value, goes along with memory leak fix to accesslog.c
Quanah Gibson-Mount [Sat, 26 Aug 2006 23:20:00 +0000 (23:20 +0000)]
fix e_private value, goes along with memory leak fix to accesslog.c

17 years agoreduce code duplication
Pierangelo Masarati [Sat, 26 Aug 2006 17:55:56 +0000 (17:55 +0000)]
reduce code duplication

17 years agodisable X-ORDERED 'VALUES' naming attributes by now
Pierangelo Masarati [Sat, 26 Aug 2006 17:28:07 +0000 (17:28 +0000)]
disable X-ORDERED 'VALUES' naming attributes by now

17 years agoinvalidate idle connection if a candidate target does not respond for the duration...
Pierangelo Masarati [Sat, 26 Aug 2006 15:24:49 +0000 (15:24 +0000)]
invalidate idle connection if a candidate target does not respond for the duration of time limit...

17 years agoNote line length limit.
Kurt Zeilenga [Fri, 25 Aug 2006 20:56:06 +0000 (20:56 +0000)]
Note line length limit.

17 years agoUse LINE_MAX instead of BUFSIZ. Per POSIX, LINE_MAX should be at least 2K.
Kurt Zeilenga [Fri, 25 Aug 2006 20:05:14 +0000 (20:05 +0000)]
Use LINE_MAX instead of BUFSIZ.  Per POSIX, LINE_MAX should be at least 2K.
For ITS#4651

17 years agoallow continuous mode
Pierangelo Masarati [Fri, 25 Aug 2006 16:20:48 +0000 (16:20 +0000)]
allow continuous mode

17 years agoinitialize random seed; use high-order bits for better randomness
Pierangelo Masarati [Fri, 25 Aug 2006 15:15:13 +0000 (15:15 +0000)]
initialize random seed; use high-order bits for better randomness

17 years agoFix test045, test048 use acl-bind credentials on retry if they were set.
Howard Chu [Fri, 25 Aug 2006 02:16:57 +0000 (02:16 +0000)]
Fix test045, test048 use acl-bind credentials on retry if they were set.

17 years agoITS#4647: error on bad filter patterns
Kurt Zeilenga [Thu, 24 Aug 2006 03:15:57 +0000 (03:15 +0000)]
ITS#4647: error on bad filter patterns

17 years agos/managedit/relax/
Kurt Zeilenga [Tue, 22 Aug 2006 23:31:46 +0000 (23:31 +0000)]
s/managedit/relax/
#unifdef -DSLAP_RELAX

17 years agoremove dontusecopy ifdefs
Kurt Zeilenga [Tue, 22 Aug 2006 20:57:33 +0000 (20:57 +0000)]
remove dontusecopy ifdefs

17 years agoBasic donUseCopy implementation
Kurt Zeilenga [Tue, 22 Aug 2006 20:29:14 +0000 (20:29 +0000)]
Basic donUseCopy implementation

17 years agoInitial dontUseCopy implementation
Kurt Zeilenga [Tue, 22 Aug 2006 20:24:36 +0000 (20:24 +0000)]
Initial dontUseCopy implementation
Needs to be extended to compare

17 years agoMore LDAP_DEVEL cleanup
Kurt Zeilenga [Tue, 22 Aug 2006 00:45:16 +0000 (00:45 +0000)]
More LDAP_DEVEL cleanup
Rename ManageDIT to Relax

17 years agoMore config leaks
Howard Chu [Mon, 21 Aug 2006 04:25:54 +0000 (04:25 +0000)]
More config leaks

17 years agoPlug config leak
Howard Chu [Mon, 21 Aug 2006 04:11:29 +0000 (04:11 +0000)]
Plug config leak

17 years agoFix prev commit
Howard Chu [Sat, 19 Aug 2006 06:27:11 +0000 (06:27 +0000)]
Fix prev commit

17 years agoLDAP_DEVEL cleanup
Kurt Zeilenga [Sat, 19 Aug 2006 05:47:05 +0000 (05:47 +0000)]
LDAP_DEVEL cleanup

17 years agoMove ber_sockbuf_free() to slapd_remove() to avoid using AC_SOCKET_INVALID
Howard Chu [Fri, 18 Aug 2006 23:54:24 +0000 (23:54 +0000)]
Move ber_sockbuf_free() to slapd_remove() to avoid using AC_SOCKET_INVALID

17 years agore-fix ITS#4405 (really start from the first conn)
Pierangelo Masarati [Fri, 18 Aug 2006 17:12:16 +0000 (17:12 +0000)]
re-fix ITS#4405 (really start from the first conn)

17 years agodon't leave dangling conns in the AVL tree
Pierangelo Masarati [Fri, 18 Aug 2006 17:11:41 +0000 (17:11 +0000)]
don't leave dangling conns in the AVL tree

17 years agothe conn may not be bound yet even if the bound DN is set...
Pierangelo Masarati [Fri, 18 Aug 2006 15:22:26 +0000 (15:22 +0000)]
the conn may not be bound yet even if the bound DN is set...

17 years agomore thread monitoring reworking; connection_pool_max may change via back-config
Pierangelo Masarati [Fri, 18 Aug 2006 10:26:03 +0000 (10:26 +0000)]
more thread monitoring reworking; connection_pool_max may change via back-config