Commit graph

1025 commits

Author SHA1 Message Date
Ondřej Kuzník
06480123b1 ITS#10254 Fix rehashing logic and add tests 2025-08-05 15:35:34 +00:00
Nadezhda Ivanova
add3df9da4 ITS#10363 - Implement a target connection time-to-live in asyncmeta 2025-07-31 19:01:56 +00:00
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
Arran Cudbard-Bell
b6bed508f5
build: Set OS_WINDOWS in scripts/defines.sh to aid with Windows detection in test cases
This uses the result AC_CANONICAL_HOST and a pre-existing case statement checking for mingw32, cygwin, interix to determine if the build system is Windows based... We make the not unreasonable assumption that if the build system is Windows based, the tests will also be running on a Windows system.
2025-07-01 07:57:59 -04: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
68bd743cfe ITS#10266 Adding a test script 2025-02-19 19:59:42 +00:00
Alexandre Jousset
068881efb4 ITS#10160 - Add "neguri" and "negset" constraint types to slapo-constraint 2025-02-12 17:46:55 +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
8bad3eb380 ITS#10249 slapo-nestgroup: plug leak in nestgroup_memberFilter 2024-09-25 17:10:09 +01: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
b3bbbb39cd ITS#10167 slapo-memberof: add addcheck option
Check memberships of newly added entries.
2024-02-06 01:22:58 +00:00
Howard Chu
62a5944640 Review tweaks (squash this) 2024-02-05 21:13:35 +00:00
Howard Chu
7e21081f6d ITS#10163 cleanup configure/tests integration
Streamline backend/overlay definition.
2024-02-05 21:13:35 +00:00
Hiroyuki Homma
212fdc5196 ITS#10080 Fix typo in test script and add checks for ADD and MODRDN. 2024-01-11 04:45:08 +00:00
Hiroyuki Homma
5cbb29cfcf ITS#10080 Fix refreshAndPersist synchronization problem with glue + rwm 2024-01-11 04:45:08 +00:00
Ondřej Kuzník
f141416f32 ITS#10142 Link tiers in on cn=config startup 2023-12-19 14:47:34 +00:00
Ondřej Kuzník
38791abdc9 ITS#9959 Adjust tests 2023-09-27 14:44:52 +00:00
Ondřej Kuzník
100def6487 ITS#10084 Switch MECH default away from DIGEST-MD5 2023-09-26 17:16:29 +01:00
Ondřej Kuzník
9691d02268 ITS#10085 Disable the client SASL part of test029
When identity assertion is not done (e.g. cn=People which is Bjorn's
direct backend) we need to store the client's password to bind as them
but that only works if they did a simple bind. Might be enabled again if
identity assertion rules change in the future.
2023-09-26 17:15:55 +01:00
Quanah Gibson-Mount
52ee3e23a4 ITS#10086 - Fix incorrect configurations in test
Fix test to be valid
2023-07-28 20:02:35 +00:00
Ondřej Kuzník
7aaee92f0a ITS#9343 More policy selection criteria 2023-06-06 11:46:17 +01:00
Ondřej Kuzník
04ca49552e Check slapadd result before continuing with test 2023-05-24 13:46:50 +01:00
johan pascal
f7e6c71e13 ITS#10014: Add TLS handle using MbedTLS 2023-03-31 05:19:30 +00:00
Quanah Gibson-Mount
b220ba1077 ITS#9718 - Fix nonportable sed usage 2023-01-30 22:06:06 +00:00
Howard Chu
cc79020b42 ITS#9929: more performance tweaks
For simple (non-nested) member compares, avoid unnecessary fetches
of dyngroups that can't match the filter.
cache filter/entry instance info across multiple dyn entries to
avoid refetching each filter entry for each dyngruop test.
2022-12-01 15:39:03 +00:00
Ondřej Kuzník
37b2b1ed6d ITS#9598 Do not track olcIncomingConnections in lloadd/test007
Some values we export in cn=monitor are not managed in a single place,
instead, a task exists that gathers a snapshot of the lloadd state and
stores it for monitor consumption. This exposes a race between the test
reading it out and lloadd updating this cached copy. While we still have
to rely on a shell, rather than being intelligent about whether or not
we should emit a readout into search.out or wait and try again (which is
what test004-monitor does), just filter this attribute out.
2022-10-31 16:44:01 +00:00
Howard Chu
572a9a1597 ITS#9931 test scripts: fix BSD vs GNU date syntax 2022-10-11 17:03:34 +01:00
Howard Chu
fb1c0d6214 ITS#9926 test085 additional fix
Git doesn't recreate empty directories, make it explicitly
2022-10-11 15:25:29 +01:00
Howard Chu
5082754f59 ITS#9931 test082 fix sed portability 2022-10-11 15:21:43 +01:00
Howard Chu
62f52807e2 ITS#9931 test scripts: fix BSD vs GNU date syntax 2022-10-11 15:14:54 +01:00
Howard Chu
a858f892b3 ITS#9931 test079: fix ldapsearch invocations 2022-10-11 14:06:46 +01:00
Howard Chu
0b14cb97a6 ITS#9926 drop symlinks from homedir testdata
Create them when running the test script instead.
2022-10-06 15:32:39 +00:00
Ondřej Kuzník
60518dbae0 ITS#9437 Create testdir before we need it 2022-09-01 11:13:37 +01:00
Quanah Gibson-Mount
cfa6c07c0e ITS#9863 - Regression test case for pwdLastSuccess
Define a regression test case for modifying pwdLastSuccess that also
uses SASL/EXTERNAL for the chain database
2022-07-06 20:46:49 +00:00
Nadezhda Ivanova
5ef2b93119 ITS#9855 Change tests/run so it can be used by a contrib module 2022-07-06 18:29:26 +03:00
Dimitar Stoychev
69de6c94cd ITS#9823 Update test043 to check deltasync recovery after accesslog has been purged 2022-06-21 16:21:56 +00:00
Ondřej Kuzník
bb87cc89cd ITS#9817 Fix test087 set up 2022-06-17 12:25:28 +01:00
HAMANO Tsukasa
8bc0f75093 ITS#9859 specifiy modulepath and moduleload for tests
moduleload ../rel/mod.la works on build directry ex: make test
but it doesn't work with installed slapd.
It should be specified the modulepath and moduleload separately like other tests.
2022-06-09 14:22:28 +00:00
HAMANO Tsukasa
b9347719b5 ITS#9859 skip test020-proxycache for back-wt 2022-06-09 14:22:28 +00:00
Ondřej Kuzník
56877e333b ITS#9817 Introduce DN and filter manipulation tools 2022-06-07 09:47:41 +01:00
Ondřej Kuzník
cda12cd42e ITS#9848 Fix test022 when not running chaining part of the test 2022-05-16 17:33:50 +01:00
Howard Chu
7419950aa3 ITS#9825 dynlist: add test case 2022-04-22 15:39:46 +00:00
Ondřej Kuzník
2bb3661c04 Log test timing information 2022-04-12 16:53:52 +00:00
Ondřej Kuzník
f7bdf7aaf4 ITS#9818 Duplicate substring filters correctly 2022-04-11 16:57:59 +01:00
Ondřej Kuzník
646d0c1ba2 ITS#9497 Detect timing issues when they affect test 2022-03-07 14:54:39 +00:00
Ondřej Kuzník
fbfb5454cd ITS#9343 Allow Compare to check pwdPolicySubentry 2022-03-07 14:54:39 +00:00
Ondřej Kuzník
950ff8a5f0 ITS#9343 Allow a list of default policies 2022-03-07 14:54:39 +00:00
Howard Chu
efb0597536 ITS#9779 add test for negated filtered memberof 2022-01-18 15:11:28 +00:00
Ondřej Kuzník
74ed5163ed ITS#9751 Add test for MOD_DELETE resolution 2022-01-10 18:44:28 +00:00