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
Howard Chu
901fe3318f
ITS#8337 fix missing olcDbChecksum config attr
2015-12-12 16:14:45 +00:00
Howard Chu
af0c7ae038
ITS#8329 finish prev commit
2015-12-03 19:25:32 +00:00
Paul Terry
33ed03a64b
ITS#8329 Add the id_query config item.
2015-12-03 19:21:46 +00:00
Howard Chu
3a305253a0
ITS#8327 fix ppolicy_get_default
...
pwdMaxRecordedFailure must never be zero
2015-12-03 00:58:33 +00:00
Howard Chu
2d5996ac60
ITS#8054 Cleanup duration patch
...
Don't need op->o_hr_time, just use o_tincr, that's what it
was intended for anyway. Use "etime=" like other products do.
Simplify ifdefs. Use gettimeofday, it's always available now.
2015-10-31 11:57:06 +00:00
Emily Backes
5324d283d9
ITS#8054 operation duration logging
2015-10-31 11:55:23 +00:00
Howard Chu
291b6a1a22
ITS#8215 fix cd9980c48b
...
Wrong function signature
2015-10-27 11:46:08 +00:00
Howard Chu
0d9b8ebe4b
ITS#8289 fix mod Increment with inherited attr type
2015-10-27 03:41:17 +00:00
HAMANO Tsukasa
c05c9619a6
ITS#8114 LDAP MODIFY handling
2015-10-25 09:13:27 +00:00
HAMANO Tsukasa
30f80a005d
ITS#8114 suppress warn message
2015-10-25 09:12:02 +00:00
Ondřej Kuzník
cd9980c48b
ITS#8215 Add config tool delete support
2015-10-25 09:04:40 +00:00
Ondřej Kuzník
085eb2e8df
ITS#8215 Add mdb tool delete support
2015-10-25 09:04:21 +00:00
Ondřej Kuzník
f3e8aa5849
ITS#8215 Add bdb tool delete support
2015-10-25 09:04:00 +00:00
Ondřej Kuzník
8b8890bddc
ITS#8215 Change BI_tool_entry_delete signature
2015-10-25 09:02:59 +00:00
Ondřej Kuzník
6f1544c51e
ITS#8215 Make editing of invalid entries possible
...
If the database does not conform to any known schema, make it possible
to edit such a database using slapmodify when schema-checking is
disabled.
2015-10-25 09:02:39 +00:00
Ondřej Kuzník
5a6a93035d
ITS#8215 Do not crash on an empty entry
2015-10-25 09:02:06 +00:00
Ondřej Kuzník
b47f32f6f2
ITS#8215 Remove a memory leak
2015-10-25 09:01:46 +00:00
Ondřej Kuzník
f1cd76db75
ITS#8215 Use the correct transaction
2015-10-25 09:01:22 +00:00
Howard Chu
a39e3a0712
ITS#8284 olcRelay needs quotes
2015-10-25 08:19:03 +00:00
Howard Chu
e635a53ff0
Cleanup
...
Log the same pointer in queue_csn as graduate_
2015-10-24 06:48:41 +01:00
Howard Chu
71c907fb88
ITS#8281 more for prev commit
2015-10-24 06:34:24 +01:00
Howard Chu
cd8ff37629
ITS#8281 fix delta-mmr with interrupted refresh
...
Prevent spurious contextCSN generation
and ignore consumers when we have no contextCSN yet.
But make sure to propagate valid contextCSN updates to
accesslog/syncprov for delta consumers.
2015-10-24 06:06:49 +01:00
Howard Chu
ad93b9e652
ITS#8277 simpler check for syncrepl on config DB
...
Windows mutexes are recursive so the trylock test will succeed
even though the mutex is already locked. Just compare be pointers.
2015-10-20 21:30:00 +01:00
Howard Chu
756a6b8683
ITS#8261 change sl_mem_detach to sl_mem_setctx
2015-10-01 23:55:10 +01:00
Howard Chu
32f9754bf1
ITS#8233 ( #8251 )
...
Schema parsing ignores some slapd.conf rules
2015-09-22 21:43:02 +01:00
Howard Chu
91ab49c37d
ITS#8249 add option to return search entry
2015-09-17 20:43:37 +01:00
Howard Chu
05b32b4992
ITS#8244 skip client controls in ldap_back_entry_get()
2015-09-14 05:43:35 +01:00
Ryan Tandy
f5100665e3
ITS#7964 avoid double-unescaping rewrite rules
...
config_fp_parse_line processes backslash escapes. When existing rewrite
rules were reloaded while inserting a new rule, this caused backslashes
to be lost from every rule except the most recently inserted one.
config_parse_ldif performs similar splitting, but leaves backslashes
alone.
2015-09-06 21:34:03 -07:00
Ryan Tandy
e27108e7cb
ITS#7889 add olcDropUnrequested to olcRwmConfig
2015-09-05 17:59:38 -07:00
Ryan Tandy
1b7a5871c2
ITS#8234 revert to default policy on failure
2015-09-01 19:19:57 -07:00
Ryan Tandy
572ad2b037
ITS#7537 release entry on failure
2015-09-01 18:56:19 -07:00
Howard Chu
62813f55af
ITS#8233 reject lines with unbalanced quotes
2015-09-01 01:09:46 +01:00
Howard Chu
86ae4e0126
ITS#8226 leave nested ops alone
2015-08-31 14:55:35 +01:00
Howard Chu
bea2c5d438
More for batched writes
...
Only usable if backend supports txns
2015-08-30 05:46:01 +01:00
Howard Chu
535cf92ff4
More for batched writes
2015-08-30 05:34:42 +01:00
Howard Chu
5a3a54333c
More for batched write
2015-08-30 05:14:17 +01:00
Howard Chu
35f17e023d
ITS#8226 revert unintended commit
2015-08-30 05:01:59 +01:00
Howard Chu
21bf33b0e8
ITS#8226 limit size of read txns in searches
2015-08-30 04:54:22 +01:00
Howard Chu
2160427f89
ITS#8232 avoid redundant abandon processing
2015-08-29 19:44:33 +01:00
Howard Chu
2eaf8eb213
ITS#8231 fix ITS#8042 regression
2015-08-29 18:29:32 +01:00
Howard Chu
79157d314f
ITS#8220 fix prev commit
...
Dynamic startup was failing
2015-08-21 11:40:02 +01:00
HAMANO Tsukasa
61c95e7669
ITS#8114 OpenLDAP WiredTiger Backend
2015-08-19 18:13:27 +01:00
Howard Chu
f385fd5ad1
ITS#8082 plug benign memleak
2015-08-19 17:44:08 +01:00
Howard Chu
a96fc51ebb
ITS#8218 zero filter after freeing
...
This appears to be cruft leftover from rev e8c58b4e7f
2015-08-19 15:35:45 +01:00
Howard Chu
7fb9bb93bf
ITS#8220 restore refint performance
2015-08-19 14:04:15 +01:00
Howard Chu
150cf51c34
ITS#8185 fix OID collision
2015-08-15 01:42:12 +01:00
Howard Chu
e5b9bdd8c5
ITS#8185 missing schema reference
2015-08-15 00:56:50 +01:00
Howard Chu
cb28f28354
Strip down even more
...
syslogd always overrides the timestamp, so just omit it
Don't use *printf if we don't need to.
2015-08-14 17:48:59 +01:00
Howard Chu
afa9a9c3e0
Use batched write txns in refresh
...
Experimental - write 500 updates per txn instead of 1:1
2015-08-14 17:43:03 +01:00
Ryan Tandy
1c49424134
ITS#8133 avoid mods during dds_db_open
...
If dds is present early in the overlay stack, the modify ops from
dds_expire can trigger other overlays before they have initialized.
Avoid that by delaying the first expiry until startup has finished.
2015-08-14 08:46:56 -07:00
Howard Chu
b0950f4d44
Fix copy/paste error in prev commit
2015-08-14 15:33:32 +01:00
Howard Chu
af27b7032e
ITS#8185 add pwdMaxRecordedFailure
...
Limit the number of pwdFailureTime stamps to record, regardless
of lockout settings.
2015-08-14 15:19:46 +01:00
Ryan Tandy
7380354270
ITS#8213 fix deleting rewrite rules
...
From ITS#5940. Add path has the same code.
2015-08-08 07:49:15 +00:00
Howard Chu
fa705a1814
ITS#8203 plug leak in prev commit
2015-07-24 19:32:19 +01:00
Howard Chu
3033f89eef
ITS#8203 more fixes for #8036/#7904.
2015-07-24 18:35:28 +01:00