Ondřej Kuzník
3258bf40eb
ITS#8291 Reopen cursor after delete
2017-10-11 14:32:08 -07:00
Emmanuel Lécharny
77408ac781
ITS#8153 - olcTimeLimit should be Single Value
2017-10-11 14:31:51 -07:00
Ivan Nejgebauer
cb9a4d01bc
ITS#8037 - Add support for relax control to delta-syncrepl
2017-10-11 14:31:45 -07:00
Michael Ströder
636b63b5fd
ITS#8692 let back-sock generate increment: line in case of LDAP_MOD_INCREMENT (see RFC 4525, section 3)
2017-10-11 13:04:38 -07:00
sca+openldap@andreasschulze.de
90835da72f
ITS#8578 - remove unused-variables in RE24 testing call (2.4.45)
2017-10-06 10:45:08 -07:00
Nadezhda Ivanova
da170cbe3b
ITS#8404 Fix an assertion failure during modify of olcDbRewrite in back-meta
2017-10-06 10:44:54 -07:00
Ted C. Cheng
e20ac6b539
ITS#7520 - back-ldap omit-unknown-schema changes
2017-10-06 10:44:31 -07:00
Ondřej Kuzník
08492987a0
ITS#7100 Update entryTtl behaviour to match RFC 2589
2017-10-06 10:43:48 -07:00
Howard Chu
70e54d2527
ITS#8752 fix syncrepl null_callback
...
Make sure it's last in callback stack
2017-10-05 22:13:39 +01:00
Quanah Gibson-Mount
0d4cd89786
LDAP_FEATURE_SUBORDINATE_SCOPE is from expired draft-sermersheim-ldap-subordinate-scope, leave behind LDAP_DEVEL
2017-09-26 11:51:27 -07:00
Quanah Gibson-Mount
30e2a904dc
Move a bunch of featuers back behind LDAP_DEVEL for 2.5
...
SLAP_AUXPROP_DONTUSECOPY is ok for release
2017-09-26 11:35:50 -07:00
Quanah Gibson-Mount
86105092bd
CHECK_CSN is a debug only flag for testing. It should always remain
...
behind LDAP_DEVEL
2017-09-26 11:30:50 -07:00
Quanah Gibson-Mount
a9ff0e97fc
ITS#6817 - back-meta work for SLAP_AUTH_DN was never finished according
...
to the ITS notes. In addition, this would need man page updates for the
feature
2017-09-26 11:27:15 -07:00
Quanah Gibson-Mount
41a9010773
The support for unindexed attributes being tracked in back-monitor needs
...
to remain behind LDAP_DEVEL for now. Right now, the mutex in
back-monitor cannot properly handle the load if the server had a lot
of unindexed attributes that were being accessed in search filters.
2017-09-26 11:04:45 -07:00
Quanah Gibson-Mount
7246da8a66
Whitespace cleanup
2017-09-26 10:33:01 -07:00
Quanah Gibson-Mount
04cfd144d9
Fix additional compile for /dev/poll support. /dev/poll is neither tested nor supported.
2017-09-22 12:05:18 -07:00
Quanah Gibson-Mount
2085def079
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
2017-09-19 15:21:56 -07:00
Quanah Gibson-Mount
09bec057e5
Fix calls to SLAP_DEVPOLL_SOCK_LX for multi-listener support. Support
...
for /dev/poll is neither enabled nor tested, so other issues may exist.
2017-09-19 15:20:56 -07:00
Howard Chu
20e46d8494
ITS#8725 fix 75999a18c3
...
Not needed since callback uses tmpalloc
2017-09-08 21:36:05 +01:00
Nadezhda Ivanova
82737719c8
ITS#8725 Always remove listener descriptors from daemon on shutdown
2017-09-08 19:43:59 +01:00
Howard Chu
db3909d27d
ITS#8725 add slap_sl_mark / slap_sl_release
...
For fast cleanup after constructing disposable entries
2017-09-08 17:39:22 +01:00
Howard Chu
68e064ca84
ITS#8725 Avoid listener thread startup race
...
Typically only shows up under valgrind, not in regular runs
2017-09-08 17:39:22 +01:00
Howard Chu
8b1fb962fc
ITS#8725 connection fixes
...
Fix op_finish, must resched connection to pick up pending ops.
Fix op completion counter.
2017-09-08 17:39:14 +01:00
Howard Chu
63308ef6bb
ITS#8725 backover fixes for async
...
Fix some valgrind race conditions - wait for frontend to finish up
Don't set callbacks for abandon or unbind - since they have no response
Use tmpalloc for backover callback
2017-09-08 17:25:55 +01:00
Nadezhda Ivanova
c6e00c7b0f
ITS#8725 Fix an invalid data access during add operations if backend is asynchronous
2017-09-08 16:51:27 +01:00
Howard Chu
75999a18c3
ITS#8725 Add SLAPD_ASYNCOP return code
...
Tell frontend the op will finish asynchronously, leave it alone
2017-09-07 18:07:39 +01:00
Howard Chu
afa861bf22
ITS#8719 add crypt_r() support
2017-09-06 21:25:16 +01:00
Michael Ströder
b65e0b5731
ITS#8714 Send out EXTENDED operation message from back-sock
2017-09-06 15:32:28 +01:00
Howard Chu
bb62d9cb73
ITS#8270 use the configured exop timeout for StartTLS
...
Also, there's no need for a retry loop here. Just wait for
the specified timeout or give up.
2017-08-31 16:53:45 +01:00
Ondřej Kuzník
9e156bf914
ITS#8444 Do not clear the pending operation when checkpointing
...
When a checkpoint happens, if we remove the CSN from the pending list,
accesslog won't pass it onto the accesslog DB. But in a delta-mmr
scenario, an accesslog entry without a CSN faces a race where it might
be applied twice - that usually fails and causes a full refresh, other
times it can cause a silent desync - both are undesirable.
2017-08-25 16:52:13 +01:00
Howard Chu
a9f462d615
ITS#8690 one more time
2017-08-04 20:58:07 +01:00
Howard Chu
c9e56b80f3
ITS#8690 fix again
2017-08-04 13:40:34 +01:00
Howard Chu
bcc6601091
Revert "ITS#8690 refix"
...
This reverts commit a5f3a2885c .
2017-08-04 13:34:03 +01:00
Howard Chu
a5f3a2885c
ITS#8690 refix
...
Don't double-queue delete ops
2017-08-02 00:52:13 +01:00
Howard Chu
221dd43399
ITS#8226 optimization
...
Don't release read txn unless there has actually been a new write txn
2017-08-01 22:08:50 +01:00
Howard Chu
9827569ff0
ITS#8690 fix prev commit
2017-08-01 21:57:02 +01:00
Howard Chu
5bd89a1f1f
Cleanup uninit'd vars
2017-08-01 21:47:15 +01:00
Howard Chu
1fbc0dff88
ITS#8690 plug memleak on Delete ops
2017-07-21 19:04:08 +01:00
Quanah Gibson-Mount
50d1588b2e
ITS#8697 - For Windows builds with newer MINGW, remove refptr symbols
...
mappings from slapd.def
2017-07-20 17:11:01 -07:00
Howard Chu
375db33d13
ITS#8678 temporary hack
2017-06-22 18:09:48 +01:00
Ryan Tandy
0cee1ffb60
ITS#8655 fix double free on paged search with pagesize 0
...
Fixes a double free when a search includes the Paged Results control
with a page size of 0 and the search base matches the filter.
2017-05-20 18:28:54 +00:00
Kevin Lam
11bf6bc10a
ITS#8592 Fix double free in sssvlv overlay
2017-04-26 11:05:00 -07:00
Howard Chu
2975a1d6f1
Tweaks for OpenSSL 1.1 API deprecations
2017-04-19 20:19:09 +01:00
Howard Chu
c0ff8e8a21
Delete extraneous #define
...
Was only for convenience during testing
2017-04-19 19:27:02 +01:00
Quanah Gibson-Mount
87f3477626
Fix autoca build with OpenSSL 1.1.0
2017-04-18 13:40:05 -07:00
Ondřej Kuzník
1b14198ad9
ITS#8631 Initialize sal
2017-04-10 14:24:56 +01:00
Howard Chu
29833786ad
Cleanup unused vars
2017-04-10 00:54:21 +01:00
Howard Chu
d089b3c0d1
Tweak privateKeyValidate
...
Only accept PKCS#8 private keys
2017-04-10 00:51:09 +01:00
Howard Chu
25dc9e99ea
Cleanup warnings, unused vars, etc.
2017-04-09 23:42:22 +01:00
Howard Chu
cff264c6e1
Fix autoca schema init
...
Wait for core.schema to get loaded
2017-04-09 22:45:36 +01:00
Howard Chu
268f71cb27
autoca fixups
...
Move install of CA cert to a pool thread, otherwise cn=config deadlocks
on dynamically loaded overlay.
Dup/release entry before attempting to modify it, to avoid deadlocks
in back-bdb/hdb.
Always use PKCS#8 format when storing private keys.
2017-04-09 20:31:11 +01:00
Howard Chu
f33c7d1ee6
Fixup for ;binary config attrs
...
Use the plain attributeDescription when searching config tables
2017-04-09 20:29:47 +01:00
Howard Chu
0f9ec8322f
Add localDN config
...
If a cert is generated for this DN, configure it as the local
TLS cert/key
2017-04-09 16:44:14 +01:00
Howard Chu
b939bb519e
Set the CA cert in cn=config if none was already set
2017-04-09 15:42:17 +01:00
Howard Chu
c9ccdf8554
Fixup pause handling, silence warnings
...
Don't try to resume the pool if pausing failed.
2017-04-09 15:41:16 +01:00
Howard Chu
7b41feed83
Support setting cacert/cert/key directly in cn=config entry
2017-04-09 14:51:25 +01:00
Howard Chu
2860fd4c6c
Move privateKey schema into slapd
2017-04-09 14:16:56 +01:00
Howard Chu
2012795d3b
Add config support for binary values
...
Use base64 for .conf files, straight binary for back-config
2017-04-09 02:26:41 +01:00
Howard Chu
2b920ecaec
Add autoca overlay
...
Automated certificate authority
2017-04-08 02:51:08 +01:00
Ondřej Kuzník
ec5af7b5e7
ITS#6545 Update accesslog format and syncrepl consumer
...
Make two successive modifications of the same attribute separate. This
lets the consumer interpret the log entry the same way as the server
that produced it.
Still depends on the log entry attributes being read in the same order
as they were written.
2017-04-07 14:39:07 -07:00
Ondřej Kuzník
46c85a32ae
ITS#8266 Allow empty mods
2017-03-30 15:27:45 -07:00
Quanah Gibson-Mount
2c84446240
ITS#8587 - Fix typos
2017-03-29 10:44:55 -07:00
Ondřej Kuzník
e56a849e5d
ITS#8625 Separate Avlnode and TAvlnode types
...
Switch AVL_CHILD/AVL_THREAD values and set Avlnode bits to AVL_CHILD for
better compatibility between avl and tavl as suggested by Howard.
2017-03-29 14:52:44 +01:00
Howard Chu
a0cc1d9655
ITS#8054 add queue time to log
...
Show time spent in conn+threadpool queues before an op actually executes.
Also clean up timestamp handling
2017-03-16 14:21:31 +00:00
Howard Chu
e12ca8b6fe
Fixes for multiple threadpool queues
...
Remove poolq_hash, it wasn't distributing work evenly to the queues.
Just walk through all queues and use the one with smallest
active+pending count. Since pool_retract also relied on the hash,
a different means of locating the thread to retract was needed.
Add pool_submit2 which returns the threadpool task structure,
and record which poolq this task lives on.
2017-03-15 11:13:09 +00:00
Ondřej Kuzník
53c6c9d16b
ITS#8574 - Deal with rDN correctly
...
This fixes issues with values that need escaping in the rDN when an
incorrect value would be passed to the handler and back-ldif.
2017-03-08 15:32:17 -08:00
Howard Chu
451a9623f3
ITS#8576 Revert "LDAP_TAILQ fix"
...
This reverts commit 8ee8248328 .
2017-02-01 11:58:54 +00:00
Howard Chu
2e9f95cbac
More for large multival attrs
...
Fix 2335285502
Use custom dupsort function, pass attributeDescription in so
it can use the actual matching rule for sorting.
2017-01-26 10:58:55 +00:00
Quanah Gibson-Mount
cf8dc030c0
ITS#8568
2017-01-15 15:11:53 -08:00
Quanah Gibson-Mount
1df85d3427
Happy New Year!
2017-01-03 12:36:47 -08:00
Howard Chu
e3c8beb8d0
Fix its6794 test
...
Must NULL out indexing cursors when closing tool txn
2016-12-21 14:39:47 +00:00
Quanah Gibson-Mount
131203ec5d
More for multival attrs
...
check for enumerated delete that deletes all values
2016-11-03 15:50:26 -07:00
Howard Chu
589331ea75
More for ITS#8460
...
accesslog can alter the timestamp on contextCSN updates
2016-08-11 17:27:35 +01:00
Howard Chu
f6510ec83b
ITS#8460 fix slap_op_time
...
broken in 2d5996ac60
Was allowing tv_usec to exceed 999999
2016-07-28 23:40:57 +01:00
Howard Chu
5e6aadd779
More for multival attrs
...
Fix id2entry_delete when deleting last multival entry in DB
2016-07-22 10:30:57 +01:00
Howard Chu
3d5601e0ba
Fix a4c7943d39
...
Modify/replace was broken if attr didn't already exist
2016-07-21 00:36:32 +01:00
Hallvard Furuseth
3e2f62ed0b
ITS#8442 Fix uninitialized rs->sr_text in back-meta
2016-06-12 10:18:50 +02:00
Hallvard Furuseth
4a961ed6ed
Catch slapmodify entry setup errors
2016-06-12 08:35:25 +02:00
Hallvard Furuseth
1899118e91
ITS#8435 Move sc_writewait to end of slap_callback
...
So any initializers in code predating sc_writewait
will find sc_private in the expected position.
2016-06-12 08:31:18 +02:00
Hallvard Furuseth
23c5d6bbdd
ITS#8435 Fix uninited slap_callback.sc_writewait
2016-06-12 08:30:58 +02:00
Howard Chu
92724fd39e
ITS#8432 fix infinite looping mods in delta-mmr
2016-06-09 22:37:54 +01:00
Howard Chu
2e60bf5ed0
ITS#8428 init sc_writewait
2016-05-18 12:30:31 +01:00
Howard Chu
b7c1a5d6b8
ITS#8423 check for pause in accesslog_purge
2016-05-15 00:51:14 +01:00
Howard Chu
3efde72cbe
ITS#8413 fix prev commit
...
Filter needs AttributeAssertions
2016-04-28 10:54:47 +01:00
Howard Chu
b61d02d942
ITS#8413 don't use str2filter on precomputable filters
...
and more importantly, avoid escaping requirements that str2filter has
2016-04-28 03:04:16 +01:00
Howard Chu
2335285502
More for large multival attrs
...
We can't persist the sorted flag since the sort order between
DB and attr schema don't necessarily agree
2016-04-01 18:49:59 +01:00
Nadezhda Ivanova
500398180e
ITS#8303 Track pending ops per a_metasingleconn_t
...
so that unused target connections can be properly reset.
2016-02-29 17:09:00 +00:00
Nadezhda Ivanova
26f88817f6
ITS#8303 Fixed an assertion error during test022
...
The error was introduced with
commit 6cafdfa8d8
2016-02-29 17:08:51 +00:00
Howard Chu
76d9be0196
More for large multival attrs
...
Fix a4c7943d39 entry delete
Ignore when id2v table is empty
2016-02-05 21:59:43 +00:00
Howard Chu
d6f3440d94
ITS#8365 partially revert ITS#8281
...
Must setup psearch before snapshotting ctxcsn
2016-02-02 19:41:13 +00:00
Nadezhda Ivanova
6cafdfa8d8
ITS#8303 Asynchronous meta back-end for OpenLDAP
2016-02-01 14:35:47 +00:00
Howard Chu
a4c7943d39
Large multivalued attr support
...
Store attrs with a large number of values separately from the
main entry blob. Note - we need support for large DUPSORT values
for this to be generally usable.
2016-01-31 15:35:11 +00:00
Quanah Gibson-Mount
6c4d6c880b
Happy New Year!
2016-01-29 13:32:05 -06:00
Quanah Gibson-Mount
606d633290
Minor fix BDB -> MDB
2016-01-29 13:21:55 -06:00
Howard Chu
4a9f4439be
ITS#8360 tweak for LDAP_TXNs too
2016-01-26 13:39:53 +00:00
Howard Chu
4001eb054f
ITS#8360 fix ad info after failed txn
...
If an add or modify op referenced a previously unused attrtype,
the mi_ads/mi_numads would be incremented to include it. If the
op fails to commit, these additions must also be reverted.
2016-01-26 13:33:24 +00:00
Howard Chu
a9df031d0d
ITS#8354 move abandon check
2016-01-23 16:06:32 +00:00
Howard Chu
6d2eb36ccb
ITS#8354 tweak prev commit
...
Delay mutex init to avoid leaking the mutex
2016-01-22 20:46:23 +00:00
Howard Chu
4773850d42
ITS#8354 fix syncprov abandon
...
Check for abandon just before recording psearch
2016-01-22 20:41:48 +00:00
Howard Chu
eaee3b39ba
ITS#8351 fix accesslog callback init
2016-01-15 10:37:56 +00:00