leitner
5c53f827d3
make check should have warnings enabled and optimizer on
2023-09-07 20:55:47 +00:00
leitner
6a2adea2ad
change boolean typesOnly in search request to int
2023-09-07 16:28:49 +00:00
leitner
353b5cbd00
adjust boolean code test suite
2023-09-07 16:18:48 +00:00
leitner
54d3625e1e
boolean true is encoded as 0xff not 1
2023-09-03 17:52:23 +00:00
leitner
f6952c5cd2
true is encoded as 0xff, not 1 (thanks Christian Ullrich)
2023-09-03 17:50:19 +00:00
leitner
c41cd9658c
test suite work
2023-01-18 14:01:57 +00:00
leitner
53e0ec0ad8
remove unused arguments
2023-01-18 12:21:24 +00:00
leitner
b865407aee
add no length check version of sequence parser (so you can tell how
...
large the incoming message is to allocate buffer sizes)
2023-01-18 12:20:20 +00:00
leitner
187eda5860
support pipelining, requests > 8k
...
support modify requests on records in data (not the journal)
2023-01-18 12:18:01 +00:00
leitner
336118b774
introduce environment-settable one-shot mode
2022-10-06 11:14:17 +00:00
leitner
41b1bb0349
add some cheap sanity checks
2022-10-06 10:51:14 +00:00
leitner
28e75ee2bd
make seccomp filter more pedantic (only allow O_APPEND on journal)
...
update seccomp filter to newest glibc (newfsstatat)
2022-10-04 11:47:53 +00:00
leitner
f21eca88c7
don't run into an infinite loop when hitting surprise EOF
2022-01-14 19:42:09 +00:00
leitner
1714770b18
100% unit test coverage
2022-01-08 01:21:05 +00:00
leitner
121739c20f
clarify comments
2022-01-08 00:45:54 +00:00
leitner
5c30e3ea61
100% unit test coverage
2022-01-08 00:45:08 +00:00
leitner
3cb4e4b695
add mmap based off-by-one detection
2022-01-07 23:09:30 +00:00
leitner
3d9eb5c7da
mmap based off-by-one detection
2022-01-07 22:57:42 +00:00
leitner
b4def653ac
use mmapped guard page to catch overreads
2022-01-07 04:06:11 +00:00
leitner
fc16e749a2
off by one
2022-01-07 03:44:43 +00:00
leitner
78431d5c83
reject values that have sizeof(long) bytes but are not representable in
...
a long: positive > LONG_MAX and negative < LONG_MIN
2022-01-07 03:21:40 +00:00
leitner
0e8e8c87a8
100% unit test coverage
2022-01-06 00:22:24 +00:00
leitner
b3716435cc
100% unit test coverage
2022-01-06 00:14:50 +00:00
leitner
40ff4401c4
test one more corner case
2022-01-06 00:00:17 +00:00
leitner
52dfd75366
100% unit test coverage
2022-01-05 23:58:37 +00:00
leitner
25763433ab
100% unit test coverage
2022-01-05 01:17:27 +00:00
leitner
709888e86f
don't actually need the assert in release code
2021-04-27 19:54:12 +00:00
leitner
e29be46197
fix a few gcc 11 -fanalyzer complaints
2021-04-27 17:54:31 +00:00
leitner
1cb3d7807a
silence two more compiler warnings
2020-05-25 15:06:49 +00:00
leitner
fe4e6870de
README was woefully out of date. tinyldap has had write supports for
...
years now. ACL now gives some information about the default behavior and
how matching works.
2020-04-17 10:51:10 +00:00
leitner
5fb4ff4e59
fix typo
2020-04-16 17:34:14 +00:00
leitner
5c2ef04b04
make tests clearer
2019-10-20 14:08:46 +00:00
leitner
b05b50d6cf
add more unit tests
2019-10-19 22:56:31 +00:00
leitner
2af896cd1b
make taglen calculation yet more obvious
2019-09-24 21:40:02 +00:00
leitner
ec9280498c
more unit tests :)
2019-09-24 16:27:16 +00:00
leitner
8cf92eb6be
needed byte calculation was wrong: *7/8 instead of *8/7
2019-09-24 16:05:40 +00:00
leitner
56d1d974dc
fix ud in unit test
2019-09-24 10:24:23 +00:00
leitner
83ab78d62e
bring debug search filter output closer to being pastable
...
fix infinite loop found by oec
2018-10-10 18:51:55 +00:00
leitner
943485fae3
unit tests
2018-09-18 12:20:11 +00:00
leitner
f81f29b6d4
move debug output behind #ifdef DEBUG
2018-09-09 11:26:27 +00:00
leitner
51b1fa283d
$PORT
2018-09-09 11:19:45 +00:00
leitner
977e656d55
drop privileges if $USER or $UID/$GID are set
2018-09-09 11:08:31 +00:00
leitner
f45346d608
remove debug printf from acl
...
add return value comment to ldap.h
actually double-check index "maybe" hits in lookupdn
2018-09-09 10:42:43 +00:00
leitner
706ae2e927
add u flag to addindex (for hash index, only index records with
...
userPassword for authentication)
2018-09-02 12:11:21 +00:00
leitner
c52d6b8ad6
add clang static analyzer target in makefile
...
free hash table in addindex (not strictly necessary but shuts up memory leak false positives)
add openat to seccomp jail so glibc compiled tinyldap works, too
2018-09-02 10:49:05 +00:00
leitner
d6f4b0f66c
add fmt_ldapaddrequest
2018-09-01 18:30:37 +00:00
leitner
d177cd15aa
we used addreponse instead of modifyresponse opcode in response to
...
modify requests
2018-08-28 16:11:17 +00:00
leitner
a3dfae5e7c
use -1 instead of 0 as hash table empty marker
2018-08-27 14:11:05 +00:00
leitner
f67e5361c7
more comments :)
2018-08-27 12:24:57 +00:00
leitner
09e54d86e0
add make pic
2018-08-24 12:01:02 +00:00