Commit graph

13194 commits

Author SHA1 Message Date
Arran Cudbard-Bell
163da8d217
slapo-auditlog: Add olcAuditlogNonBlocking to avoid blocking when logging to named pipes
The default behaviour of fopen() when called on a named pipe which does not have any reader, is to block, until a reader opens the pipe.  This blocks slapo-auditlog when it attempts to write output.  Depending on how critical the audit log  is, it may be preferable to discard audit log output and continue processing requests if there's no reader available.

For clarity the call to fopen() is removed and replaced with open()/fdopen(), allowing us to specify O_* flags as opposed to using fopen() or open()/fdopen(). 0666 are the base permissions used by fopen() when files are created.
2025-07-03 11:18:51 -06:00
Howard Chu
6e559efd85 ITS#10360 delta MPR: internal search should use logDB's rootDN 2025-06-23 22:07:55 +00:00
Ondřej Kuzník
dcd60d1d0a ITS#10254 Let slapo-ppolicy rehash user's password 2025-06-23 16:47:48 +00:00
Ondřej Kuzník
406836540c ITS#10254 Fix password_scheme to return full hash specification 2025-06-23 16:47:48 +00:00
Ondřej Kuzník
d0d07810eb ITS#7981 Allow setting a default hash per policy 2025-06-23 16:47:48 +00:00
Ondřej Kuzník
dad90d66c5 ITS#7981 Move default hash selection to slap_passwd_hash_type 2025-06-23 16:47:48 +00:00
Ondřej Kuzník
9d90f55c83 ITS#9343 Fix uninitialised variable 2025-06-23 16:47:48 +00:00
Ondřej Kuzník
14d47146b0 ITS#10169 Allow a Compare against oathSecret 2025-06-20 23:45:43 +00:00
Ondřej Kuzník
47e9cd7313 ITS#10349 Do not leak memberof_t 2025-06-20 14:52:19 +00:00
jinyaoguo
8cf1812431 ITS#10348 Relase memory allocated from ch_malloc in 2 error handling branches. 2025-06-20 14:52:19 +00:00
jinyaoguo
ddea2bc669 ITS#10343 Fix a memory leak in function slap_uuidstr_from_normalized 2025-06-20 14:52:19 +00:00
jinyaoguo
f00339df9e ITS#10344 Ensure the first argument passed to ber_dupbv_x is not NULL. 2025-06-20 14:52:19 +00:00
Ondřej Kuzník
87a2d70750 ITS#10338 Add olcConstraintAllowEmpty 2025-06-17 19:26:25 +00:00
Ondřej Kuzník
10b1d6c9b4 ITS#10339 Do not reuse freed memory 2025-06-17 16:27:59 +00:00
Ondřej Kuzník
7717e2ba4d ITS#10301 Send assert control with forwarded mods if configured 2025-06-17 14:58:26 +00:00
Howard Chu
7a8d72b02b ITS#10336 slapd-mdb: fix delete on empty DB
Don't assume parent of target entry will always exist.
2025-05-13 18:02:27 +01:00
Greg Noe
9a52a3c28b ITS#10140 Add microsecond timestamp format for local file logging 2025-04-30 07:46:42 -07:00
Ondřej Kuzník
f1556ba98a ITS#10331 Add helpful error messages for usage errors 2025-04-25 13:45:09 +01:00
Ondřej Kuzník
ca5391b811 ITS#10327 Allow lockless config_back_search() during server pause
The assumption is that the only reason it is allowed to run at this
point is that it is called from the reconfiguration context anyway.
2025-04-24 15:24:56 +00:00
Ondřej Kuzník
948400af2b ITS#10323 Apply olcBkLloadStartTLS runtime changes directly 2025-04-23 21:17:51 +00:00
Howard Chu
015f2937ba ITS#10168 back-mdb: cleanup index setup
Nop index setup when index config resulted in no configured indices
2025-04-23 15:16:47 +00:00
Howard Chu
f1ca58680a ITS#10299 slapacl: use dummy entry_get in dry-run mode 2025-04-01 19:41:10 +00:00
Andrew Elble
f00319b32c ITS#10270 slapo-pcache: negative cache entries are not loaded when pcachePersist is on 2025-03-27 14:59:33 +00:00
Andrew Elble
24d4dcb3d7 ITS#10270 slapo-pcache: queries with ttr/x-refresh are not loaded when pcachePersist is on 2025-03-27 14:59:29 +00:00
Andrew Elble
9b03791108 ITS#10270 slapo-pcache: ttr was not being applied to negatively cached entries 2025-03-27 14:59:15 +00:00
Ondřej Kuzník
82cee8f57a ITS#10312 Explicitly allow FALSE in 'subordinate' 2025-03-12 15:44:57 +00:00
Howard Chu
b8f32ec2fc ITS#9367 back-mdb: add encryption support
Enabled if MDB_ENCRYPT is defined, which is currently only in mdb.master3.
2025-03-04 20:31:21 +00:00
Ondřej Kuzník
37edfeceaa ITS#10266 Linked clients should also be tagged for closing 2025-02-19 19:59:42 +00:00
Ondřej Kuzník
e101d0ecc1 ITS#10266 Adopt broader RFC4511 NoD interpretation, receiving side 2025-02-19 19:59:42 +00:00
Ondřej Kuzník
89e34fded3 ITS#10265 Allow runtime reconfig of olcBkLloadListen 2025-02-19 18:39:09 +00:00
Ondřej Kuzník
f2cba910d8 ITS#7249 Disallow memberof-addcheck when memberof is global 2025-02-19 17:29:04 +00:00
Ondřej Kuzník
993f488e7b ITS#7249 Let backend_attribute know who's calling it 2025-02-19 17:29:04 +00:00
Ondřej Kuzník
8ed07d0b93 ITS#10307 Initialise last if we use it later 2025-02-18 19:42:58 +00:00
Alexandre Jousset
068881efb4 ITS#10160 - Add "neguri" and "negset" constraint types to slapo-constraint 2025-02-12 17:46:55 +00:00
Howard Chu
429556c5f6 ITS#10302 slapd-mdb: fix idcursor double-free in slapadd shutdown
Caused when calling tool_entry_modify to update ctxcsn after all adds are done.
2025-02-04 17:00:36 +00:00
Nadezhda Ivanova
002214cc38 ITS#9186 Add deferred ops statistics counters 2025-01-06 16:24:24 +02:00
Ondřej Kuzník
62892d090c ITS#10290 Move syncrepl_modify_cb to the end of the list
The way op->orm_modlist is allocated by syncrepl_op_modify is not
compatible with slap_mods_free() and so callbacks from any overlays that
touch op->orm_modlist on the way down need a chance to undo their state
first as we go back up.
2024-12-16 20:00:25 +00:00
Nadezhda Ivanova
e2b04c434e ITS#9186 Add a counter to cn=Listener to track total number of established connections since startup 2024-12-16 18:31:23 +00:00
Ondřej Kuzník
70d8e22db7 ITS#7080 Do not reuse back-ldif's stack for controls 2024-12-16 17:01:26 +00:00
Ondřej Kuzník
e58266229f ITS#7080 Implement pre/postread for modrdn 2024-12-16 17:01:26 +00:00
Ondřej Kuzník
86d23423ac ITS#7080 Do not munge path twice 2024-12-16 17:01:26 +00:00
Howard Chu
c843b4ec93 ITS#10288 autoca: fix olcAutoCAserverClass config 2024-11-29 14:46:10 +00:00
Ondřej Kuzník
64021967b5 ITS#10272 Request all attributes from remote
Fixes a regression introduced in fc1bcaf9de
leaving us unable to check the full filter after we recreate the entry.
2024-10-29 12:43:37 +00:00
Ondřej Kuzník
4b8e60f843 ITS#9042 Log modify values under STATS2 2024-10-25 20:02:19 +00:00
Nadezhda Ivanova
223a755783 ITS#9914 Add OS pagesize to the back-mdb monitor information
Page size is now provided with the olmMDBPageSize attribute.
2024-10-25 18:53:32 +00:00
Ondřej Kuzník
2af486cf00 ITS#10234 Reinit retry state on refreshDone 2024-10-01 16:12:50 +00:00
Ondřej Kuzník
4448049955 ITS#10232 Reset cs_refreshing on config delete 2024-10-01 16:12:50 +00:00
Ondřej Kuzník
f8caf85d9b ITS#10248 Always generate a result on the original op 2024-09-26 17:56:59 +00:00
Ondřej Kuzník
8bad3eb380 ITS#10249 slapo-nestgroup: plug leak in nestgroup_memberFilter 2024-09-25 17:10:09 +01:00
Howard Chu
5e9d550c2e ITS#10256 cn=config: reject modify requests on cn=schema,cn=config
Add requests already handled it specially; corresponding treatment
for modify requests was missing. The docs have always stated that
cn=schema,cn=config is only for slapd's hardcoded schema so this
only affects users who don't read docs.
2024-09-10 17:41:39 +01:00