Commit graph

13167 commits

Author SHA1 Message Date
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
Ondřej Kuzník
d8b5bfddb7 ITS#10242 Record rid in operation related logs 2024-07-22 17:17:29 +01:00
HAMANO Tsukasa
554e754b3f fix idl intersection ITS#10233
The `mdb_idl_intersection()` and `wt_idl_intersection()` functions derived from back-bdb return wrong results.

expect:
[1, 3] ∩ [2] = []

actual:
[1, 3] ∩ [2] = [2]

also
- Add scope checking for back-wt
- fix compiler warning
2024-07-08 13:06:53 +00:00
Howard Chu
3327a6b693 ITS#10237 fix prev commit 2024-07-04 18:52:44 +01:00
Howard Chu
a323284c06 ITS#10237 back-ldap: fix usage of multi-precision add for op counters 2024-07-04 18:35:45 +01:00
Howard Chu
b490437a66 ITS#10235 slapo-nestgroup: silence extraneous register_at message 2024-06-27 00:49:21 +01:00
Howard Chu
aa31963e44 ITS#10231 slapadd: check for NULL suffix in error message 2024-06-18 17:14:12 +01:00
Howard Chu
f1b921783b ITS#10230 slapo-memberof: fix addcheck search to omit dynamic values 2024-06-17 21:40:48 +01:00
Nadezhda Ivanova
0f521e636b ITS#10227 Asyncmeta will not reset a connection if a bind operation fails with LDAP_OTHER, leaving the connection in invalid state 2024-06-13 21:23:27 +00:00
Nadezhda Ivanova
6b4b68b13a ITS#10219 Modify of olcDisabled by removing and adding a value invokes db_open twice
Do not invoke db_open if the database is not actually disabled
2024-06-13 18:41:25 +00:00
Nadezhda Ivanova
5740d1747d ITS#10218 Disabling and re-enabling an asyncmeta database via cn=config leaks memory
Make sure asyncmeta frees the pending operations structures, resets all connections, frees connection structures and stops the timeout-loop.
2024-06-13 17:38:06 +00:00
Quanah Gibson-Mount
f0ab743db4 ITS#9827 - Use 7MB memory/5 iterations as default
This has the same protections as 19MB/2 iterations, but requires less system memory
2024-06-11 17:06:33 +00:00
HAMANO Tsukasa
c14e3329c0 ITS#10214 Reduce library dependencies
Currently, slapd links libsystemd to notify service state to systemd.
However, libsystemd link several unnecessary libraries, which increases security risks.
The systemd documentation provides a method to send state notifications to systemd using a simple protocol without the need to link against libsystemd.

https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html
2024-05-08 09:50:10 +09:00
Nick Porter
bf01750381 ITS#10211 slapd: Fix peercred uid and gid format
uid and gid are unsigned int and so should be formatted as such when
creating the authid string.
2024-05-03 20:28:36 +01:00
Howard Chu
6d5400a2c7 ITS#10204 slapo-constraint: fix double-free on invalid attr 2024-04-30 15:55:01 +01:00
Nadezhda Ivanova
bd6dc46ad0 ITS#10197 Back-meta and back-asyncmeta add a new target structure and increase the number of targets even if uri parsing fails
Reproducible when adding a new target via cn=config
2024-04-29 19:23:35 +00:00
Nadezhda Ivanova
729a604192 ITS#10193 Asyncmeta starts more than one timeout loop per database and slaptest crashes 2024-04-11 15:26:15 +03:00
Howard Chu
a7007b7f64 ITS#10163 More configure munging
Streamline configuration of slapd modules. Just use the
appropriate OL_ARG_ENABLE_xx, then almost no other edits
will be needed in configure.ac when adding new modules.

Backends will still have to add their Makefile to the
AC_CONFIG_FILES() list.
2024-04-05 15:42:04 +00:00
Quanah Gibson-Mount
073232bbc7 Happy New Year! 2024-03-26 19:45:07 +00:00
Howard Chu
ddd42a2af3 ITS#10161 Add nestgroup overlay 2024-03-21 17:12:53 +00:00
Howard Chu
7015ad6568 ITS#10186 overlay response callbacks should ignore op->o_abandon 2024-03-06 14:57:15 +00:00
Howard Chu
ce524021f6 ITS#10044 dynlist: check for abandon in search2resp 2024-02-22 19:54:30 +00:00
Howard Chu
6ecc28b7c8 ITS#10172 logging: report errors when rotation fails 2024-02-22 17:40:35 +00:00
Nadezhda Ivanova
1bb795ad7a ITS#10164 back-meta hangs when used with dynlist overlay
Make sure every proxied operation has a separate candidates structure.
2024-02-15 16:39:49 +00:00
Ondřej Kuzník
af7575fabd ITS#10173 Populate li_minCSN on conversion 2024-02-12 18:50:10 +00:00
Stephen Gallagher
fb9e6a81bb ITS#10171 - Explicitly cast private values
Fixes issues with -Werror=incompatible-pointer-types

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2024-02-07 12:29:37 -05:00
Howard Chu
af877238e9 ITS#10170 accesslog: skip response if not fully initialized yet 2024-02-07 17:02:52 +00:00
Howard Chu
b3bbbb39cd ITS#10167 slapo-memberof: add addcheck option
Check memberships of newly added entries.
2024-02-06 01:22:58 +00:00