]> git.sur5r.net Git - openldap/log
openldap
13 years agoITS#6758 config_build_entry, avoid SlapReply reuse
Hallvard Furuseth [Fri, 31 Dec 2010 09:02:34 +0000 (09:02 +0000)]
ITS#6758 config_build_entry, avoid SlapReply reuse

Do not use the 'SlapReply *rs' passed to config_build_entry().  Instead
pass a new one to op->o_bd->be_add() and copy the output sr_err to rs.
This takes care of most SlapReply reuse in bconfig.c.

13 years agoITS#6758 bconfig.c: ensure sr_text==NULL if sr_err==LDAP_SUCCESS
Hallvard Furuseth [Fri, 31 Dec 2010 08:45:48 +0000 (08:45 +0000)]
ITS#6758 bconfig.c: ensure sr_text==NULL if sr_err==LDAP_SUCCESS
config_modify_internal(): Do not send rs->sr_text with success.
config_back_modify(): When slap_bv2ad() can set rs->sr_text,
set sr->sr_err too and catch failure.

13 years agoITS#6670 partial fix - ignore member/memberof pointing to same entry
Howard Chu [Fri, 31 Dec 2010 01:38:24 +0000 (01:38 +0000)]
ITS#6670 partial fix - ignore member/memberof pointing to same entry

13 years agoITS#6758 back-bdb: Delay setting sr->sr_entry until we know it will be used
Hallvard Furuseth [Fri, 31 Dec 2010 00:04:38 +0000 (00:04 +0000)]
ITS#6758 back-bdb: Delay setting sr->sr_entry until we know it will be used

13 years agoITS#6758 Do not set sr_err=error before be_search.
Hallvard Furuseth [Thu, 30 Dec 2010 23:59:23 +0000 (23:59 +0000)]
ITS#6758 Do not set sr_err=error before be_search.
glue_op_search() set LDAP_UNWILLING_TO_PERFORM before be_search() as
well as when there was no be_search.

13 years agoITS#6758 Reset some SlapReply flags & data.
Hallvard Furuseth [Thu, 30 Dec 2010 23:55:07 +0000 (23:55 +0000)]
ITS#6758 Reset some SlapReply flags & data.
Reset data more consistenlty.  When resetting sr_entry after sending
data, reset sr_flag as well.  Reset rs_attrs and Extended Operation
oid/data after setting and sending them.

13 years agonoop commit for ITS#6758: simplify future commits
Hallvard Furuseth [Thu, 30 Dec 2010 23:48:41 +0000 (23:48 +0000)]
noop commit for ITS#6758: simplify future commits

13 years agonoop commit for ITS#6758: Remove no-effect code.
Hallvard Furuseth [Thu, 30 Dec 2010 23:43:12 +0000 (23:43 +0000)]
noop commit for ITS#6758: Remove no-effect code.
Unused variable resets, unused SlapReply parameters to some functions.

13 years agoRemove lint (unused vars/labels/funcs/default:s)
Hallvard Furuseth [Thu, 30 Dec 2010 23:34:55 +0000 (23:34 +0000)]
Remove lint (unused vars/labels/funcs/default:s)

13 years agoITS#6758 Add rs_reinit(), rs_flush_entry()
Hallvard Furuseth [Thu, 30 Dec 2010 23:32:07 +0000 (23:32 +0000)]
ITS#6758 Add rs_reinit(), rs_flush_entry()

13 years agoITS#6758 Add rs_assert*, RS_ASSERT, USE_RS_ASSERT
Hallvard Furuseth [Thu, 30 Dec 2010 23:29:46 +0000 (23:29 +0000)]
ITS#6758 Add rs_assert*, RS_ASSERT, USE_RS_ASSERT

13 years agoITS#6759: assert;Debug -> Debug;assert
Hallvard Furuseth [Thu, 30 Dec 2010 23:19:02 +0000 (23:19 +0000)]
ITS#6759: assert;Debug -> Debug;assert

13 years agosilence valgrind
Pierangelo Masarati [Thu, 30 Dec 2010 21:52:09 +0000 (21:52 +0000)]
silence valgrind

13 years agoshould also work for SASL binds (whenever supported)
Pierangelo Masarati [Thu, 30 Dec 2010 21:41:36 +0000 (21:41 +0000)]
should also work for SASL binds (whenever supported)

13 years agoop->o_conn->c_sb may be 0 for internal operations
Pierangelo Masarati [Thu, 30 Dec 2010 21:41:07 +0000 (21:41 +0000)]
op->o_conn->c_sb may be 0 for internal operations

13 years agoITS#6754: Fail if there are unrecognized command-line arguments.
Rein Tollevik [Thu, 30 Dec 2010 19:45:08 +0000 (19:45 +0000)]
ITS#6754: Fail if there are unrecognized command-line arguments.

13 years agoITS#6741 support Bitstring in ldap_X509dn2bv()
Howard Chu [Thu, 30 Dec 2010 19:38:57 +0000 (19:38 +0000)]
ITS#6741 support Bitstring in ldap_X509dn2bv()

13 years agoITS#6684 fix ppolicy crash, fix Makefile install target
Howard Chu [Thu, 30 Dec 2010 18:40:01 +0000 (18:40 +0000)]
ITS#6684 fix ppolicy crash, fix Makefile install target

13 years agoRemove dead code.
Kurt Zeilenga [Thu, 30 Dec 2010 17:46:26 +0000 (17:46 +0000)]
Remove dead code.

13 years agoITS#5862 Assert control for rootDSE/subschema
Howard Chu [Thu, 30 Dec 2010 17:28:19 +0000 (17:28 +0000)]
ITS#5862 Assert control for rootDSE/subschema

13 years agos/0/O/
Pierangelo Masarati [Thu, 30 Dec 2010 15:58:48 +0000 (15:58 +0000)]
s/0/O/

13 years agofix perror; removed extra sequence opening (is it needed; if yes, it must also be...
Pierangelo Masarati [Thu, 30 Dec 2010 15:51:25 +0000 (15:51 +0000)]
fix perror; removed extra sequence opening (is it needed; if yes, it must also be closed, see #if 0)

13 years agoverify credentials extop: support for simple bind
Pierangelo Masarati [Thu, 30 Dec 2010 15:49:34 +0000 (15:49 +0000)]
verify credentials extop: support for simple bind

13 years agos/VCRequest/VCResponse/
Pierangelo Masarati [Thu, 30 Dec 2010 14:12:26 +0000 (14:12 +0000)]
s/VCRequest/VCResponse/

13 years agoFix prototype to match code
Kurt Zeilenga [Tue, 28 Dec 2010 22:59:15 +0000 (22:59 +0000)]
Fix prototype to match code

13 years agoITS#6686 Fix last commit (declaration after code)
Hallvard Furuseth [Tue, 28 Dec 2010 15:59:48 +0000 (15:59 +0000)]
ITS#6686 Fix last commit (declaration after code)

13 years agoITS#6742 from Rich Megginson @ Red Hat
Howard Chu [Fri, 24 Dec 2010 00:29:31 +0000 (00:29 +0000)]
ITS#6742 from Rich Megginson @ Red Hat

13 years agoITS#6453 cleanup on LDAP_TIMEOUT
Howard Chu [Thu, 23 Dec 2010 23:18:41 +0000 (23:18 +0000)]
ITS#6453 cleanup on LDAP_TIMEOUT

13 years agoITS#6547 latest from FSF http://savannah.gnu.org/git/?group=config
Howard Chu [Thu, 23 Dec 2010 22:55:16 +0000 (22:55 +0000)]
ITS#6547 latest from FSF http://savannah.gnu.org/git/?group=config

13 years agoITS#6686 add multiple sorts per connection, from Raphael Ouazana @ Linagora
Howard Chu [Thu, 23 Dec 2010 22:29:57 +0000 (22:29 +0000)]
ITS#6686 add multiple sorts per connection, from Raphael Ouazana @ Linagora

13 years agoITS#6681 fix examples. Hopefully admins are smart enough to insert
Howard Chu [Thu, 23 Dec 2010 22:03:49 +0000 (22:03 +0000)]
ITS#6681 fix examples. Hopefully admins are smart enough to insert
the correct uid themselves.

13 years agoMove assertion checking to slap_compare_entry()
Howard Chu [Thu, 23 Dec 2010 21:53:05 +0000 (21:53 +0000)]
Move assertion checking to slap_compare_entry()

13 years agoITS#6753 use slap_compare_entry()
Howard Chu [Thu, 23 Dec 2010 21:45:36 +0000 (21:45 +0000)]
ITS#6753 use slap_compare_entry()

13 years agoITS#6573 export compare_entry as slap_compare_entry()
Howard Chu [Thu, 23 Dec 2010 21:36:57 +0000 (21:36 +0000)]
ITS#6573 export compare_entry as slap_compare_entry()

13 years agoCleanup for #6660
Howard Chu [Thu, 23 Dec 2010 04:40:57 +0000 (04:40 +0000)]
Cleanup for #6660

13 years agoITS#6660 preliminary fix. debug additions need to be cleaned up.
Howard Chu [Thu, 23 Dec 2010 00:16:19 +0000 (00:16 +0000)]
ITS#6660 preliminary fix. debug additions need to be cleaned up.

13 years agoPlug one-time LDAPMessage leak
Hallvard Furuseth [Mon, 20 Dec 2010 12:39:48 +0000 (12:39 +0000)]
Plug one-time LDAPMessage leak

13 years agoPlug mutex/rwlock leaks (destroy them)
Hallvard Furuseth [Mon, 20 Dec 2010 10:57:06 +0000 (10:57 +0000)]
Plug mutex/rwlock leaks (destroy them)

13 years agoPlug memory leaks
Hallvard Furuseth [Mon, 20 Dec 2010 10:51:14 +0000 (10:51 +0000)]
Plug memory leaks

13 years agoITS#6752 Remove OpenLDAP 2.[23] dynlist code
Hallvard Furuseth [Mon, 20 Dec 2010 10:25:11 +0000 (10:25 +0000)]
ITS#6752 Remove OpenLDAP 2.[23] dynlist code

13 years agoITS#6752 Handle REP_ENTRY_* flags correctly
Hallvard Furuseth [Mon, 20 Dec 2010 10:22:19 +0000 (10:22 +0000)]
ITS#6752 Handle REP_ENTRY_* flags correctly

13 years agoITS#6752 Fix dynlist Compare callback
Hallvard Furuseth [Mon, 20 Dec 2010 10:20:38 +0000 (10:20 +0000)]
ITS#6752 Fix dynlist Compare callback
Replace dynlist_sc_save_entry() with dynlist_sc_compare_entry() which
compares instead of saves the entry.  Check rs->sr_type == REP_SEARCH.

13 years agoITS#6752 dynlist: Do less work, simplify a bit.
Hallvard Furuseth [Mon, 20 Dec 2010 10:19:21 +0000 (10:19 +0000)]
ITS#6752 dynlist: Do less work, simplify a bit.
Rearrange dynlist_compare(), tweak dynlist_response().

13 years agoAdd basic client
Kurt Zeilenga [Wed, 15 Dec 2010 01:41:30 +0000 (01:41 +0000)]
Add basic client

13 years agoMisc vc updates
Kurt Zeilenga [Wed, 15 Dec 2010 00:59:42 +0000 (00:59 +0000)]
Misc vc updates

13 years agoAdd comment regarding ASN.1 syntax
Kurt Zeilenga [Tue, 14 Dec 2010 22:09:50 +0000 (22:09 +0000)]
Add comment regarding ASN.1 syntax
rm version field

13 years agoFix typo
Kurt Zeilenga [Tue, 14 Dec 2010 21:51:49 +0000 (21:51 +0000)]
Fix typo

13 years agoVery back ldapvc (verify credentials) client
Kurt Zeilenga [Tue, 14 Dec 2010 21:39:08 +0000 (21:39 +0000)]
Very back ldapvc (verify credentials) client

13 years agoshould be .5
Kurt Zeilenga [Tue, 14 Dec 2010 21:38:31 +0000 (21:38 +0000)]
should be .5

13 years agoAssign experimental OID
Kurt Zeilenga [Tue, 14 Dec 2010 21:37:41 +0000 (21:37 +0000)]
Assign experimental OID

13 years agocleanup
Kurt Zeilenga [Tue, 14 Dec 2010 21:14:31 +0000 (21:14 +0000)]
cleanup

13 years agoLDAP "Verify Credentials" operation
Kurt Zeilenga [Tue, 14 Dec 2010 20:58:02 +0000 (20:58 +0000)]
LDAP "Verify Credentials" operation

Client library implementation only

13 years agofix perror
Kurt Zeilenga [Tue, 14 Dec 2010 18:20:43 +0000 (18:20 +0000)]
fix perror

13 years agoUse ldap_parse_whoami
Kurt Zeilenga [Tue, 14 Dec 2010 18:17:28 +0000 (18:17 +0000)]
Use ldap_parse_whoami

13 years agoITS#6748 Drop possibly-broken memberof log message
Hallvard Furuseth [Tue, 14 Dec 2010 15:26:42 +0000 (15:26 +0000)]
ITS#6748 Drop possibly-broken memberof log message

13 years agoITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings
Hallvard Furuseth [Tue, 14 Dec 2010 15:06:32 +0000 (15:06 +0000)]
ITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings

13 years agoITS#6746: Preserve error code, plug entry leak
Hallvard Furuseth [Tue, 14 Dec 2010 13:35:42 +0000 (13:35 +0000)]
ITS#6746: Preserve error code, plug entry leak

13 years agoReduced debug level, the default logs more than 1Gb.
Rein Tollevik [Sun, 12 Dec 2010 18:20:51 +0000 (18:20 +0000)]
Reduced debug level, the default logs more than 1Gb.

13 years agoITS#6716: Keep sessionlog sorted by csn, compare mincsn with head.
Rein Tollevik [Sun, 12 Dec 2010 18:12:05 +0000 (18:12 +0000)]
ITS#6716: Keep sessionlog sorted by csn, compare mincsn with head.

13 years agoITS#6714 non-blocking support from Richard Megginson @ Red Hat
Howard Chu [Sat, 11 Dec 2010 04:57:10 +0000 (04:57 +0000)]
ITS#6714 non-blocking support from Richard Megginson @ Red Hat

13 years agoCleanup prev commit
Howard Chu [Sat, 11 Dec 2010 04:51:21 +0000 (04:51 +0000)]
Cleanup prev commit

13 years agoITS#6744 - plug leak
Howard Chu [Sat, 11 Dec 2010 04:35:01 +0000 (04:35 +0000)]
ITS#6744 - plug leak

13 years agoPartial fix for non-string types in cert DNs. (Need to add explicit support
Howard Chu [Fri, 10 Dec 2010 02:05:18 +0000 (02:05 +0000)]
Partial fix for non-string types in cert DNs. (Need to add explicit support
for Bitstring, maybe a few others.)

13 years agore-fix ITS#6645 commit
Pierangelo Masarati [Tue, 7 Dec 2010 11:58:38 +0000 (11:58 +0000)]
re-fix ITS#6645 commit

13 years agofix ITS#6645 commit
Pierangelo Masarati [Tue, 7 Dec 2010 11:55:27 +0000 (11:55 +0000)]
fix ITS#6645 commit

13 years agomove ctxcsn and schema check code in helpers; also apply to slapmodify (ITS#6737)
Pierangelo Masarati [Tue, 7 Dec 2010 10:50:54 +0000 (10:50 +0000)]
move ctxcsn and schema check code in helpers; also apply to slapmodify (ITS#6737)

13 years agoallow to set LDIF max line width (ITS#6645)
Pierangelo Masarati [Tue, 7 Dec 2010 10:14:51 +0000 (10:14 +0000)]
allow to set LDIF max line width (ITS#6645)

13 years agotypo in comment
Pierangelo Masarati [Tue, 7 Dec 2010 10:11:06 +0000 (10:11 +0000)]
typo in comment

13 years agoITS#6625 Remove some LDAP_R_COMPILEs
Hallvard Furuseth [Mon, 6 Dec 2010 11:31:58 +0000 (11:31 +0000)]
ITS#6625 Remove some LDAP_R_COMPILEs

13 years agoFix ITS#6625: mutex-protect ldap_free_connection()
Hallvard Furuseth [Mon, 6 Dec 2010 10:51:55 +0000 (10:51 +0000)]
Fix ITS#6625: mutex-protect ldap_free_connection()

13 years agoITS#6625 Invert test in NT threads LDAP_INT_MUTEX_FIRSTCREATE
Hallvard Furuseth [Mon, 6 Dec 2010 10:48:29 +0000 (10:48 +0000)]
ITS#6625 Invert test in NT threads LDAP_INT_MUTEX_FIRSTCREATE

13 years agoITS#6625 concurrency patch cleanup
Hallvard Furuseth [Mon, 6 Dec 2010 10:41:41 +0000 (10:41 +0000)]
ITS#6625 concurrency patch cleanup

13 years agoFor ITS#6739: Fix last commit (private debuging)
Hallvard Furuseth [Mon, 6 Dec 2010 09:27:30 +0000 (09:27 +0000)]
For ITS#6739: Fix last commit (private debuging)

13 years agoFor ITS#6739: Move variables into do_syncrep2 loop
Hallvard Furuseth [Mon, 6 Dec 2010 09:23:44 +0000 (09:23 +0000)]
For ITS#6739: Move variables into do_syncrep2 loop

13 years agoSilence valgrind's ptrcheck (no real change).
Hallvard Furuseth [Mon, 6 Dec 2010 08:19:40 +0000 (08:19 +0000)]
Silence valgrind's ptrcheck (no real change).
Also removes a bit unnecessary code.

13 years agoITS#6736: Delay destruction of slap_listeners[]
Hallvard Furuseth [Mon, 6 Dec 2010 08:17:00 +0000 (08:17 +0000)]
ITS#6736: Delay destruction of slap_listeners[]

13 years agoITS#6735 Fix uninitialized filter in slapd-tester
Hallvard Furuseth [Sat, 4 Dec 2010 18:58:20 +0000 (18:58 +0000)]
ITS#6735 Fix uninitialized filter in slapd-tester

13 years agoFix rev 1.270: free def_urlpre correctly. Also free urlpre.
Hallvard Furuseth [Sat, 4 Dec 2010 18:53:04 +0000 (18:53 +0000)]
Fix rev 1.270: free def_urlpre correctly.  Also free urlpre.

13 years agoITS#6733: Fix LDAP_MEMORY_DEBUG issues.
Hallvard Furuseth [Fri, 3 Dec 2010 11:44:22 +0000 (11:44 +0000)]
ITS#6733: Fix LDAP_MEMORY_DEBUG issues.
ber_memcalloc_x overflow check.  Silence some compiler warnings.

13 years agoFix rev 1.132 (ITS#6632): Initialize all of roc in rwm_callback_get()
Hallvard Furuseth [Fri, 3 Dec 2010 10:08:59 +0000 (10:08 +0000)]
Fix rev 1.132 (ITS#6632): Initialize all of roc in rwm_callback_get()

13 years agoITS#6732: Clean up ber_errno handling.
Hallvard Furuseth [Thu, 2 Dec 2010 13:18:32 +0000 (13:18 +0000)]
ITS#6732: Clean up ber_errno handling.
Set it after ber_mem(c)alloc_x failure.  Don't set it when not needed.

13 years agoITS#6620: Don't delete absent pwdChangedTime.
Hallvard Furuseth [Thu, 2 Dec 2010 12:19:31 +0000 (12:19 +0000)]
ITS#6620: Don't delete absent pwdChangedTime.
Based on patch by Martin Evans.

13 years agoITS#6731: Fix scrambled back-ldif error strings.
Hallvard Furuseth [Thu, 2 Dec 2010 10:24:19 +0000 (10:24 +0000)]
ITS#6731: Fix scrambled back-ldif error strings.
* Move apply_modify_to_entry():textbuf[] into caller.
* Reset rs->sr_text at end of functions that can set it to textbuf.

13 years agoITS#6364: Document that refint needs rootdn
Hallvard Furuseth [Wed, 1 Dec 2010 12:20:04 +0000 (12:20 +0000)]
ITS#6364: Document that refint needs rootdn

13 years agoITS#6730: Only update modifiersName once per entry
Hallvard Furuseth [Wed, 1 Dec 2010 11:21:29 +0000 (11:21 +0000)]
ITS#6730: Only update modifiersName once per entry

13 years agoITS#6730: Fix missing refint updates with subtrees/subordinates
Hallvard Furuseth [Wed, 1 Dec 2010 11:19:17 +0000 (11:19 +0000)]
ITS#6730: Fix missing refint updates with subtrees/subordinates

13 years agoITS#6663: Fix refint_nothing.
Hallvard Furuseth [Wed, 1 Dec 2010 10:48:43 +0000 (10:48 +0000)]
ITS#6663: Fix refint_nothing.
Also move callback trace output out of inner loop in callback.

13 years agotest slap_dontUseCopy_propnames (ITS#6729)
Pierangelo Masarati [Wed, 1 Dec 2010 10:41:05 +0000 (10:41 +0000)]
test slap_dontUseCopy_propnames (ITS#6729)

13 years agofix double free related to ITS#6720
Pierangelo Masarati [Mon, 29 Nov 2010 16:03:43 +0000 (16:03 +0000)]
fix double free related to ITS#6720

13 years agoFix a comment
Hallvard Furuseth [Sun, 28 Nov 2010 18:20:54 +0000 (18:20 +0000)]
Fix a comment

13 years agoAdd/fix comments. No other change.
Hallvard Furuseth [Sun, 28 Nov 2010 18:04:22 +0000 (18:04 +0000)]
Add/fix comments.  No other change.

14 years agoremove #ifdef EAGAIN, EWOULDBLOCK (ITS#6603)
Pierangelo Masarati [Wed, 24 Nov 2010 14:47:46 +0000 (14:47 +0000)]
remove #ifdef EAGAIN, EWOULDBLOCK (ITS#6603)

14 years agoITS#6532 Support extensible match=...OrderingMatch
Hallvard Furuseth [Wed, 24 Nov 2010 13:10:29 +0000 (13:10 +0000)]
ITS#6532 Support extensible match=...OrderingMatch
Handles:  caseExactOrderingMatch, generalizedTimeOrderingMatch,
         caseIgnoreOrderingMatch,         integerOrderingMatch,
        octetStringOrderingMatch,   numericStringOrderingMatch.
Based on patch from Daniel Pluta.

14 years agoFor ITS#5421: Remove unnecessary #include "ldap_log.h"
Hallvard Furuseth [Tue, 23 Nov 2010 15:25:49 +0000 (15:25 +0000)]
For ITS#5421: Remove unnecessary #include "ldap_log.h"

14 years agoITS#6723: Handle EOF in test programs
Hallvard Furuseth [Tue, 23 Nov 2010 12:12:54 +0000 (12:12 +0000)]
ITS#6723: Handle EOF in test programs

14 years agoITS#6722: Fix some matching rules to ensure strict ordering
Hallvard Furuseth [Tue, 23 Nov 2010 11:17:40 +0000 (11:17 +0000)]
ITS#6722: Fix some matching rules to ensure strict ordering
booleanMatch, octetStringMatch, octetStringOrderingMatch, uniqueMemberMatch

14 years agoITS#6721: Fix uninitialized tv_usec from ITS#6282
Hallvard Furuseth [Tue, 23 Nov 2010 10:10:45 +0000 (10:10 +0000)]
ITS#6721: Fix uninitialized tv_usec from ITS#6282

14 years agoWarning cleanup
Hallvard Furuseth [Mon, 22 Nov 2010 15:44:11 +0000 (15:44 +0000)]
Warning cleanup
Avoid "cast pointer to int of different size" warning by passing
the int arg to new threads as an offset into rtid/rwtid.

14 years agoSome cleanup
Hallvard Furuseth [Mon, 22 Nov 2010 15:26:17 +0000 (15:26 +0000)]
Some cleanup

14 years agoSilence gcc -Wsign-compare (no real change)
Hallvard Furuseth [Mon, 22 Nov 2010 13:45:11 +0000 (13:45 +0000)]
Silence gcc -Wsign-compare (no real change)