]> git.sur5r.net Git - openldap/log
openldap
9 years agoRevert "ITS#7702 fix results with aliases"
Howard Chu [Thu, 28 Aug 2014 16:51:46 +0000 (17:51 +0100)]
Revert "ITS#7702 fix results with aliases"

This reverts commit cac00c6a97bbbbcec75f2ebcffaae1dd1769a28e.

9 years agoITS#7904 init wwctx earlier
Howard Chu [Wed, 27 Aug 2014 10:50:32 +0000 (11:50 +0100)]
ITS#7904 init wwctx earlier

9 years agoITS#7702
Quanah Gibson-Mount [Wed, 27 Aug 2014 16:44:51 +0000 (11:44 -0500)]
ITS#7702

9 years agoITS#7702 fix results with aliases
Howard Chu [Tue, 26 Aug 2014 19:07:40 +0000 (20:07 +0100)]
ITS#7702 fix results with aliases

Aliases pointing within the original search scope could cause
the same entry to be returned multiple times. Check for subtree
scope and duplicate scopes.

9 years agoITS#7927
Quanah Gibson-Mount [Wed, 27 Aug 2014 16:38:56 +0000 (11:38 -0500)]
ITS#7927

9 years agoITS#7927 fix double-free of searchref
Howard Chu [Tue, 26 Aug 2014 18:17:33 +0000 (19:17 +0100)]
ITS#7927 fix double-free of searchref

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Mon, 25 Aug 2014 22:07:47 +0000 (17:07 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoITS#7913 cleanup
Howard Chu [Sun, 24 Aug 2014 20:18:03 +0000 (21:18 +0100)]
ITS#7913 cleanup

we already checked for data == NULL, drop unnecessary if

9 years agoCleanup mdb_ad_get
Howard Chu [Fri, 22 Aug 2014 03:26:00 +0000 (20:26 -0700)]
Cleanup mdb_ad_get

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Fri, 22 Aug 2014 20:24:01 +0000 (15:24 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoMore for MIPS
Howard Chu [Fri, 22 Aug 2014 00:40:20 +0000 (17:40 -0700)]
More for MIPS

Move CACHEFLUSH, avoid unnecessary if()

9 years agoITS#7906,ITS#7923
Quanah Gibson-Mount [Thu, 21 Aug 2014 18:49:56 +0000 (13:49 -0500)]
ITS#7906,ITS#7923

9 years agoITS#7906,#7923 Don't free configinfo in _db_close
Howard Chu [Wed, 20 Aug 2014 20:40:19 +0000 (13:40 -0700)]
ITS#7906,#7923 Don't free configinfo in _db_close

9 years agoITS#7904 more tweaks
Howard Chu [Wed, 20 Aug 2014 20:06:51 +0000 (13:06 -0700)]
ITS#7904 more tweaks

Must save/restore mcd cursor if we're doing a scope-based search.

9 years agoITS#7922
Quanah Gibson-Mount [Wed, 20 Aug 2014 19:28:25 +0000 (14:28 -0500)]
ITS#7922

9 years agoITS#7922 delete dead code
Howard Chu [Wed, 20 Aug 2014 03:29:23 +0000 (20:29 -0700)]
ITS#7922 delete dead code

Harmless, but stupid.

9 years agoFix typo
Quanah Gibson-Mount [Mon, 18 Aug 2014 17:18:44 +0000 (12:18 -0500)]
Fix typo

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Mon, 18 Aug 2014 05:00:38 +0000 (00:00 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoPartially revert ada26306992babeccad0c5443fbd76e28dd24cd6
Howard Chu [Mon, 18 Aug 2014 03:44:53 +0000 (20:44 -0700)]
Partially revert ada26306992babeccad0c5443fbd76e28dd24cd6

Of course, MacOSX only has posix_memalign, and only in recent versions.
(Older versions could use valloc instead. That precludes ever changing
the LMDB pagesize to be different from the OS pagesize.) Not all that
crucial since it only affects mdb_env_copyfd1.

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Sun, 17 Aug 2014 23:17:49 +0000 (18:17 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoMicrooptimize loose pages
Hallvard Furuseth [Sat, 16 Aug 2014 23:50:32 +0000 (01:50 +0200)]
Microoptimize loose pages

9 years agoFix loose pages in mdb_freelist_save().
Hallvard Furuseth [Sat, 16 Aug 2014 22:29:12 +0000 (00:29 +0200)]
Fix loose pages in mdb_freelist_save().

Leaving them in dirty_list caused breakage.  Instead merge them
into me_pghead at the end, when no more pages will be allocated.

9 years agoSplit out mdb_midl_xmerge, add MDB_IDL_ALLOCLEN
Hallvard Furuseth [Sat, 16 Aug 2014 09:34:44 +0000 (11:34 +0200)]
Split out mdb_midl_xmerge, add MDB_IDL_ALLOCLEN

9 years agoAnother typo
Quanah Gibson-Mount [Fri, 15 Aug 2014 16:04:52 +0000 (11:04 -0500)]
Another typo

9 years agoFix typo
Quanah Gibson-Mount [Fri, 15 Aug 2014 16:04:20 +0000 (11:04 -0500)]
Fix typo

9 years agoITS#7920
Quanah Gibson-Mount [Thu, 14 Aug 2014 23:23:33 +0000 (18:23 -0500)]
ITS#7920

9 years ago ITS#7920 fix for slapacl
Quanah Gibson-Mount [Thu, 14 Aug 2014 23:21:35 +0000 (18:21 -0500)]
ITS#7920 fix for slapacl

    This needs to be streamlined in 2.5, current tool API is a mess.

9 years agoITS#7919
Quanah Gibson-Mount [Thu, 14 Aug 2014 23:05:38 +0000 (18:05 -0500)]
ITS#7919

9 years agoITS#7838 fix typos in prev commit
Howard Chu [Thu, 14 Aug 2014 02:53:56 +0000 (19:53 -0700)]
ITS#7838 fix typos in prev commit

9 years agoITS#7919 fix cache DB config
Howard Chu [Thu, 14 Aug 2014 02:22:17 +0000 (19:22 -0700)]
ITS#7919 fix cache DB config

Don't accept config directives for cache DB until the cache backend type
has been set.

9 years agoITS#7906 more cleanup
Howard Chu [Mon, 11 Aug 2014 20:48:29 +0000 (13:48 -0700)]
ITS#7906 more cleanup

db_open/close were not symmetric with init/destroy

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Mon, 11 Aug 2014 18:45:00 +0000 (13:45 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoITS#7917
Howard Chu [Mon, 11 Aug 2014 18:01:20 +0000 (11:01 -0700)]
ITS#7917

9 years agoITS#7917 fix mdb_dbi_open
Howard Chu [Mon, 11 Aug 2014 18:00:11 +0000 (11:00 -0700)]
ITS#7917 fix mdb_dbi_open

Don't let dummy go out of scope

9 years agoJust use memalign, not posix_memalign
Howard Chu [Thu, 7 Aug 2014 18:06:53 +0000 (11:06 -0700)]
Just use memalign, not posix_memalign

Everything has it. Solaris doesn't have posix_memalign.

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Wed, 6 Aug 2014 16:59:30 +0000 (11:59 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoITS#7906 minor cleanup
Howard Chu [Wed, 6 Aug 2014 02:37:28 +0000 (19:37 -0700)]
ITS#7906 minor cleanup

rename ppolicy_close -> ppolicy_db_close for consistency

9 years agoITS#7906 better fix
Howard Chu [Wed, 6 Aug 2014 02:36:30 +0000 (19:36 -0700)]
ITS#7906 better fix

don't free pwcons unless we're actually destroying this DB

9 years agoITS#7895, ITS#7915
Quanah Gibson-Mount [Mon, 4 Aug 2014 21:03:10 +0000 (16:03 -0500)]
ITS#7895, ITS#7915

9 years agoITS#7915 fix translucent_modify
Howard Chu [Mon, 4 Aug 2014 20:37:34 +0000 (13:37 -0700)]
ITS#7915 fix translucent_modify

Go directly to local backend when fetching local entry

9 years agoITS#7915 fix mdb_entry_release
Howard Chu [Mon, 4 Aug 2014 20:35:02 +0000 (13:35 -0700)]
ITS#7915 fix mdb_entry_release

In server mode, make sure the entry was actually ours

9 years agoITS#7895 drop toolmode checks in str2entry
Howard Chu [Sat, 2 Aug 2014 18:17:12 +0000 (11:17 -0700)]
ITS#7895 drop toolmode checks in str2entry

They were obsoleted by ITS#6737 and have been redundant ever since.
(commit 15f1e7bdb7ae487424f19934b0d5dbf4bc30bea6)

9 years agoMore for MIPS
Howard Chu [Mon, 4 Aug 2014 18:40:24 +0000 (11:40 -0700)]
More for MIPS

Do a cacheflush after writing data pages, separate from meta's cacheflush

9 years agoITS#7793 more for branch key update
Howard Chu [Mon, 4 Aug 2014 16:26:35 +0000 (09:26 -0700)]
ITS#7793 more for branch key update

9 years agoITS#7793 doc update, again
Howard Chu [Mon, 4 Aug 2014 12:13:29 +0000 (05:13 -0700)]
ITS#7793 doc update, again

9 years agoITS#7793 update branch key if needed
Howard Chu [Mon, 4 Aug 2014 11:57:53 +0000 (04:57 -0700)]
ITS#7793 update branch key if needed

9 years agoMore for MIPS
Howard Chu [Sat, 2 Aug 2014 17:33:35 +0000 (10:33 -0700)]
More for MIPS

Paranoia for 3630066843b7ca6b2cd12911d3e2fe3314cd4549 do the
cacheflush before setting mti_txnid.

9 years agoITS#7912
Quanah Gibson-Mount [Thu, 31 Jul 2014 18:43:14 +0000 (13:43 -0500)]
ITS#7912

9 years agoITS#7912 fix index config
Howard Chu [Thu, 31 Jul 2014 18:29:31 +0000 (11:29 -0700)]
ITS#7912 fix index config

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Thu, 31 Jul 2014 17:57:22 +0000 (12:57 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoITS#7913 mdb_cursor_get(*_DUP) cleanup
Howard Chu [Thu, 31 Jul 2014 16:59:52 +0000 (09:59 -0700)]
ITS#7913 mdb_cursor_get(*_DUP) cleanup

FIRST_DUP/LAST_DUP should succeed even on non-duplicate values
PREV_DUP should reset cursor's EOF flag.

9 years agoRemove 7909, not released
Quanah Gibson-Mount [Wed, 30 Jul 2014 18:44:26 +0000 (13:44 -0500)]
Remove 7909, not released

9 years agoITS#7909
Quanah Gibson-Mount [Wed, 30 Jul 2014 17:22:37 +0000 (12:22 -0500)]
ITS#7909

9 years agoITS#7909 fix slap_callback init
Howard Chu [Wed, 30 Jul 2014 13:55:36 +0000 (06:55 -0700)]
ITS#7909 fix slap_callback init

9 years agoITS#7908
Quanah Gibson-Mount [Wed, 30 Jul 2014 02:40:52 +0000 (21:40 -0500)]
ITS#7908

9 years agoITS#7908
Quanah Gibson-Mount [Mon, 28 Jul 2014 18:04:43 +0000 (13:04 -0500)]
ITS#7908
Add olcSssVlvMaxPerConn to the olcSssVlvConfig objectClass

9 years agoFix MIPS cache coherency on Linux
Howard Chu [Sun, 27 Jul 2014 01:16:02 +0000 (18:16 -0700)]
Fix MIPS cache coherency on Linux

MIPS chips require manual control of on-chip caches. The cacheflush
syscall being used here only exists on MIPS Linux, other OSs will
require revisiting.

9 years agoITS#7906
Quanah Gibson-Mount [Fri, 25 Jul 2014 18:40:48 +0000 (13:40 -0500)]
ITS#7906

9 years agoITS#7906 fix ppolicy_connection_destroy
Howard Chu [Fri, 25 Jul 2014 00:02:30 +0000 (17:02 -0700)]
ITS#7906 fix ppolicy_connection_destroy

It can still run after ppolicy_close has freed the connection table

9 years agoMerge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
Quanah Gibson-Mount [Thu, 24 Jul 2014 17:08:05 +0000 (12:08 -0500)]
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4

9 years agoUpdate date
Howard Chu [Thu, 24 Jul 2014 11:15:45 +0000 (04:15 -0700)]
Update date

9 years agomore for mdb_cursor_count
Howard Chu [Thu, 24 Jul 2014 11:13:55 +0000 (04:13 -0700)]
more for mdb_cursor_count

return MDB_NOTFOUND if the cursor is empty

9 years agoFix mdb_copy & co when MDB pagesize < OS pagesize
Hallvard Furuseth [Wed, 9 Jul 2014 19:38:45 +0000 (21:38 +0200)]
Fix mdb_copy & co when MDB pagesize < OS pagesize

9 years agoITS#7789 doc updates
Howard Chu [Thu, 24 Jul 2014 00:31:34 +0000 (17:31 -0700)]
ITS#7789 doc updates

9 years agoITS#7789 Fix mdb_env_write_meta().
Hallvard Furuseth [Thu, 24 Jul 2014 00:24:31 +0000 (17:24 -0700)]
ITS#7789 Fix mdb_env_write_meta().

Always write mapsize = max(other metapage:mapsize, env:mapsize).

9 years agoRevert ITS#7789 commits, let's try this again.
Howard Chu [Thu, 24 Jul 2014 00:10:41 +0000 (17:10 -0700)]
Revert ITS#7789 commits, let's try this again.

Revert "ITS#7789 Fix resize vs MDB_NOMETASYNC, and a comment."
Revert "ITS#7789 more"
Revert "Revert "ITS#7789 update RESIZED errmsg text""
Revert "ITS#7789 update RESIZED errmsg text"
Revert "ITS#7789 persist mapsize changes"

This reverts commit 02285aca58f5629547263ba09e7dd685dcf6b4b5.
This reverts commit 38e71c68de2ad61fb0fd72fd40214fd9a94479b9.
This reverts commit a5e4eecb1e59e9645113bb4c63d06a23a2c4bdf9.
This reverts commit d8e18551c3f03d5205f4dc8d1711e494d3814b17.
This reverts commit 5926e54bba7c976e0837221efb20cbff384207b8.

9 years agoITS#7902
Quanah Gibson-Mount [Wed, 23 Jul 2014 20:59:50 +0000 (15:59 -0500)]
ITS#7902

9 years agoITS#7903
Quanah Gibson-Mount [Wed, 23 Jul 2014 20:59:23 +0000 (15:59 -0500)]
ITS#7903

9 years agoITS#7903 preserve Sorted status of attrs
Howard Chu [Wed, 23 Jul 2014 03:24:58 +0000 (20:24 -0700)]
ITS#7903 preserve Sorted status of attrs

9 years agoITS#7902 fix str2entry / sorted vals
Howard Chu [Wed, 23 Jul 2014 03:21:35 +0000 (20:21 -0700)]
ITS#7902 fix str2entry / sorted vals

9 years agoITS#7904
Quanah Gibson-Mount [Wed, 23 Jul 2014 20:56:56 +0000 (15:56 -0500)]
ITS#7904

9 years agoITS#7904 writewait patch
Quanah Gibson-Mount [Wed, 23 Jul 2014 20:55:36 +0000 (15:55 -0500)]
ITS#7904 writewait patch
    Add sc_writewait callback

    Invoked before a blocked writer waits for socket to be writable.
    Use in back-mdb to release reader txn while waiting.

9 years agoITS#7838
Quanah Gibson-Mount [Tue, 22 Jul 2014 23:22:29 +0000 (18:22 -0500)]
ITS#7838

9 years agoITS#7838 add ORDERING rules to ppolicy attrs
Michael Stroeder [Fri, 18 Jul 2014 20:03:21 +0000 (13:03 -0700)]
ITS#7838 add ORDERING rules to ppolicy attrs

9 years agoITS#7027
Quanah Gibson-Mount [Tue, 22 Jul 2014 22:34:35 +0000 (17:34 -0500)]
ITS#7027

9 years agoITS#7027 actually implement RFC 2782 shuffle
Howard Chu [Tue, 22 Jul 2014 05:05:25 +0000 (22:05 -0700)]
ITS#7027 actually implement RFC 2782 shuffle

9 years agoITS#7027 fix bugs in prev commit
Howard Chu [Tue, 22 Jul 2014 02:34:31 +0000 (19:34 -0700)]
ITS#7027 fix bugs in prev commit

9 years agoITS#7027 Implement priority/weight for DNS SRV records
James M Leddy [Tue, 23 Aug 2011 21:02:03 +0000 (17:02 -0400)]
ITS#7027 Implement priority/weight for DNS SRV records

From RFC 2782:

  A client MUST attempt to contact the target host with the
  lowest-numbered priority it can reach.

This patch sorts the DNS SRV records by their priority, and
additionally gives records with a larger weight a higher probability
of appearing earlier. This way, the DNS SRV records are tried in the
order of their priority.

9 years agoITS#6970, ITS#7249
Quanah Gibson-Mount [Tue, 22 Jul 2014 22:32:07 +0000 (17:32 -0500)]
ITS#6970, ITS#7249

9 years agoITS#6970 more error checks in add_group
Howard Chu [Mon, 21 Jul 2014 18:32:31 +0000 (11:32 -0700)]
ITS#6970 more error checks in add_group

9 years agoITS#6970 all attrset params are required
Howard Chu [Mon, 21 Jul 2014 18:08:03 +0000 (11:08 -0700)]
ITS#6970 all attrset params are required

9 years agoITS#6970 fix deadlocks
Howard Chu [Mon, 21 Jul 2014 17:46:19 +0000 (10:46 -0700)]
ITS#6970 fix deadlocks

9 years agoITS#7249 partial fix for memberof on frontendDB
Howard Chu [Mon, 21 Jul 2014 15:20:26 +0000 (08:20 -0700)]
ITS#7249 partial fix for memberof on frontendDB

9 years agoITS#6970 fix autogroup Add Entry processing
Howard Chu [Mon, 21 Jul 2014 14:56:05 +0000 (07:56 -0700)]
ITS#6970 fix autogroup Add Entry processing

Push modifications into response callback; only execute if
main Add actually succeeded.

9 years agoITS#7868
Quanah Gibson-Mount [Tue, 22 Jul 2014 22:24:42 +0000 (17:24 -0500)]
ITS#7868

9 years agoITS#7868 fix slapo-sock db_init
Howard Chu [Fri, 18 Jul 2014 19:03:07 +0000 (12:03 -0700)]
ITS#7868 fix slapo-sock db_init

9 years agoITS#7860
Quanah Gibson-Mount [Tue, 22 Jul 2014 22:23:11 +0000 (17:23 -0500)]
ITS#7860

9 years agoITS#7860 more for #5366, ldap_ava definition
Howard Chu [Fri, 18 Jul 2014 18:26:33 +0000 (11:26 -0700)]
ITS#7860 more for #5366, ldap_ava definition

9 years agoITS#7851
Quanah Gibson-Mount [Tue, 22 Jul 2014 22:22:03 +0000 (17:22 -0500)]
ITS#7851

9 years agoITS#7851 contrib pw-sha2 fix int/size_t comparison
ryan@nardis.ca [Fri, 27 Jun 2014 02:18:13 +0000 (02:18 +0000)]
ITS#7851 contrib pw-sha2 fix int/size_t comparison

9 years agoITS#7851 tell lutil_b64_pton the correct target buffer size
Ryan Tandy [Mon, 12 May 2014 01:57:34 +0000 (18:57 -0700)]
ITS#7851 tell lutil_b64_pton the correct target buffer size

9 years agoITS#7869
Quanah Gibson-Mount [Tue, 22 Jul 2014 22:19:49 +0000 (17:19 -0500)]
ITS#7869

9 years agoFix EOL/whitespace
Howard Chu [Fri, 18 Jul 2014 16:28:27 +0000 (09:28 -0700)]
Fix EOL/whitespace

9 years agoITS#7869 fix do_phk_hash arguments
Ryan Tandy [Fri, 18 Jul 2014 16:27:14 +0000 (09:27 -0700)]
ITS#7869 fix do_phk_hash arguments

9 years agoITS#7859 more for revert
Howard Chu [Fri, 11 Jul 2014 19:38:16 +0000 (12:38 -0700)]
ITS#7859 more for revert

9 years agoITS#7859 refix
Howard Chu [Fri, 11 Jul 2014 19:25:47 +0000 (12:25 -0700)]
ITS#7859 refix

This was actually broken by 65e163d2, ITS#6947. Reverting both
of those changes and fixing #6947 again.

9 years agoITS#7893
Quanah Gibson-Mount [Tue, 22 Jul 2014 21:54:44 +0000 (16:54 -0500)]
ITS#7893

9 years agoITS#7893 (#6508) fix a_numvals
Howard Chu [Wed, 9 Jul 2014 20:07:53 +0000 (13:07 -0700)]
ITS#7893 (#6508) fix a_numvals

9 years agoRegenerate
Howard Chu [Tue, 22 Jul 2014 21:40:48 +0000 (14:40 -0700)]
Regenerate

9 years agoITS#7891
Quanah Gibson-Mount [Tue, 22 Jul 2014 20:33:33 +0000 (15:33 -0500)]
ITS#7891