Commit Graph

  • 84a6f10d45 Link TinyLDAP crypto through nwssl master Mario Fetka 2026-06-05 13:09:28 +00:00
  • e5b9d3ed03 Use MatrixSSL OpenSSL compatibility in CMake builds OpenAI 2026-06-04 12:08:13 +00:00
  • 62273bc3f7 Support build-tree libowfat and MatrixSSL dependencies OpenAI 2026-06-03 18:31:39 +00:00
  • 4a32d83f7c Add standalone CMake build system Mario Fetka 2026-06-03 18:12:39 +00:00
  • 7586973f9f ubsan triggered for a unit test in mduptab_add because blen was SIZE_MAX and adding it overflowed the pointer. So add a check for that in bstr_diff2. leitner 2025-04-17 12:15:20 +00:00
  • 87187a76ea remove compiler warning leitner 2024-11-26 16:23:35 +00:00
  • a4a0d74dda sprinkle some attributes leitner 2024-11-26 16:23:20 +00:00
  • 79c86ae7eb make sure it also works if char is unsigned leitner 2024-10-21 16:06:30 +00:00
  • 747641557e clean up warnings leitner 2024-10-21 16:02:34 +00:00
  • f85f30c379 add unit tests leitner 2024-02-02 14:38:25 +00:00
  • f73be3264c don't build mduptab_init_reuse (not actually used anymore) leitner 2024-02-02 14:19:26 +00:00
  • 0cc9c5b1ec don't build strstorage and strduptab (tinyldap doesn't use it anymore) add comments in strstorage.c and strduptab.c that they are obsolete leitner 2024-02-02 10:54:25 +00:00
  • a6eddb5364 add unit tests to bstr* functions leitner 2024-02-01 13:54:57 +00:00
  • e7d7f4e336 #include update leitner 2023-10-16 14:29:06 +00:00
  • dccc180b7f add unit tests leitner 2023-09-29 12:47:48 +00:00
  • 73c93d1105 add unit tests leitner 2023-09-29 12:34:07 +00:00
  • 936fe85cd6 add unit tests leitner 2023-09-24 19:43:39 +00:00
  • 3e341e22fd mention indirect unit test coverage leitner 2023-09-24 19:43:26 +00:00
  • c6c8ccba35 unit tests! leitner 2023-09-17 13:45:04 +00:00
  • fc2b16c556 remove #if 0'd code from scan_ldapsearchfilter add unit tests to scan_ldapaddrequest leitner 2023-09-17 12:17:55 +00:00
  • 1273a2669e return invalidCredentials on auth fail, not inappropriateAuthentication leitner 2023-09-16 19:49:33 +00:00
  • f448fdec71 unit tests leitner 2023-09-16 19:24:45 +00:00
  • c02138824b make unit test work with valgrind as well leitner 2023-09-16 19:24:29 +00:00
  • 3aae498dd3 left shift of signed long is undefined behavior, it turns out. don't do it then. leitner 2023-09-16 19:23:56 +00:00
  • f4d4fb5f1f free unit test buf, no memory leaks from sanitizer leitner 2023-09-16 19:23:23 +00:00
  • 735f326254 clean some more potential gcov files leitner 2023-09-16 09:19:54 +00:00
  • 41df4dbaeb add unit tests for scan_ldap* add return 0 to unit tests for scan_asn1* leitner 2023-09-16 09:19:19 +00:00
  • b75c256e32 make sure scan_asn1rawint also works when char == unsigned char (default on ARM) leitner 2023-09-07 21:03:13 +00:00
  • 5c53f827d3 make check should have warnings enabled and optimizer on leitner 2023-09-07 20:55:47 +00:00
  • 6a2adea2ad change boolean typesOnly in search request to int leitner 2023-09-07 16:28:49 +00:00
  • 353b5cbd00 adjust boolean code test suite leitner 2023-09-07 16:18:48 +00:00
  • 54d3625e1e boolean true is encoded as 0xff not 1 leitner 2023-09-03 17:52:23 +00:00
  • f6952c5cd2 true is encoded as 0xff, not 1 (thanks Christian Ullrich) leitner 2023-09-03 17:50:19 +00:00
  • c41cd9658c test suite work leitner 2023-01-18 14:01:57 +00:00
  • 53e0ec0ad8 remove unused arguments leitner 2023-01-18 12:21:24 +00:00
  • b865407aee add no length check version of sequence parser (so you can tell how large the incoming message is to allocate buffer sizes) leitner 2023-01-18 12:20:20 +00:00
  • 187eda5860 support pipelining, requests > 8k support modify requests on records in data (not the journal) leitner 2023-01-18 12:18:01 +00:00
  • 336118b774 introduce environment-settable one-shot mode leitner 2022-10-06 11:14:17 +00:00
  • 41b1bb0349 add some cheap sanity checks leitner 2022-10-06 10:51:14 +00:00
  • 28e75ee2bd make seccomp filter more pedantic (only allow O_APPEND on journal) update seccomp filter to newest glibc (newfsstatat) leitner 2022-10-04 11:47:53 +00:00
  • f21eca88c7 don't run into an infinite loop when hitting surprise EOF leitner 2022-01-14 19:42:09 +00:00
  • 1714770b18 100% unit test coverage leitner 2022-01-08 01:21:05 +00:00
  • 121739c20f clarify comments leitner 2022-01-08 00:45:54 +00:00
  • 5c30e3ea61 100% unit test coverage leitner 2022-01-08 00:45:08 +00:00
  • 3cb4e4b695 add mmap based off-by-one detection leitner 2022-01-07 23:09:30 +00:00
  • 3d9eb5c7da mmap based off-by-one detection leitner 2022-01-07 22:57:42 +00:00
  • b4def653ac use mmapped guard page to catch overreads leitner 2022-01-07 04:06:11 +00:00
  • fc16e749a2 off by one leitner 2022-01-07 03:44:43 +00:00
  • 78431d5c83 reject values that have sizeof(long) bytes but are not representable in a long: positive > LONG_MAX and negative < LONG_MIN leitner 2022-01-07 03:21:40 +00:00
  • 0e8e8c87a8 100% unit test coverage leitner 2022-01-06 00:22:24 +00:00
  • b3716435cc 100% unit test coverage leitner 2022-01-06 00:14:50 +00:00
  • 40ff4401c4 test one more corner case leitner 2022-01-06 00:00:17 +00:00
  • 52dfd75366 100% unit test coverage leitner 2022-01-05 23:58:37 +00:00
  • 25763433ab 100% unit test coverage leitner 2022-01-05 01:17:27 +00:00
  • 709888e86f don't actually need the assert in release code leitner 2021-04-27 19:54:12 +00:00
  • e29be46197 fix a few gcc 11 -fanalyzer complaints leitner 2021-04-27 17:54:31 +00:00
  • 1cb3d7807a silence two more compiler warnings leitner 2020-05-25 15:06:49 +00:00
  • 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. leitner 2020-04-17 10:51:10 +00:00
  • 5fb4ff4e59 fix typo leitner 2020-04-16 17:34:14 +00:00
  • 5c2ef04b04 make tests clearer leitner 2019-10-20 14:08:46 +00:00
  • b05b50d6cf add more unit tests leitner 2019-10-19 22:56:31 +00:00
  • 2af896cd1b make taglen calculation yet more obvious leitner 2019-09-24 21:40:02 +00:00
  • ec9280498c more unit tests :) leitner 2019-09-24 16:27:16 +00:00
  • 8cf92eb6be needed byte calculation was wrong: *7/8 instead of *8/7 leitner 2019-09-24 16:05:40 +00:00
  • 56d1d974dc fix ud in unit test leitner 2019-09-24 10:24:23 +00:00
  • 83ab78d62e bring debug search filter output closer to being pastable fix infinite loop found by oec leitner 2018-10-10 18:51:55 +00:00
  • 943485fae3 unit tests leitner 2018-09-18 12:20:11 +00:00
  • f81f29b6d4 move debug output behind #ifdef DEBUG leitner 2018-09-09 11:26:27 +00:00
  • 51b1fa283d $PORT leitner 2018-09-09 11:19:45 +00:00
  • 977e656d55 drop privileges if $USER or $UID/$GID are set leitner 2018-09-09 11:08:31 +00:00
  • f45346d608 remove debug printf from acl add return value comment to ldap.h actually double-check index "maybe" hits in lookupdn leitner 2018-09-09 10:42:43 +00:00
  • 706ae2e927 add u flag to addindex (for hash index, only index records with userPassword for authentication) leitner 2018-09-02 12:11:21 +00:00
  • 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 leitner 2018-09-02 10:49:05 +00:00
  • d6f4b0f66c add fmt_ldapaddrequest leitner 2018-09-01 18:30:37 +00:00
  • d177cd15aa we used addreponse instead of modifyresponse opcode in response to modify requests leitner 2018-08-28 16:11:17 +00:00
  • a3dfae5e7c use -1 instead of 0 as hash table empty marker leitner 2018-08-27 14:11:05 +00:00
  • f67e5361c7 more comments :) leitner 2018-08-27 12:24:57 +00:00
  • 09e54d86e0 add make pic leitner 2018-08-24 12:01:02 +00:00
  • 47d88ede64 use buffer_GETC and stralloc_APPEND for minimal optimization leitner 2018-04-11 14:13:16 +00:00
  • 340ce0543c be stricter about records with no / two dn leitner 2018-04-08 18:56:18 +00:00
  • 22b0942762 also allow munmap *facepalm* leitner 2018-04-08 09:27:19 +00:00
  • e14f13ad94 more unit tests leitner 2018-02-01 02:22:24 +00:00
  • f2bbd7c53a allow more crypted password types leitner 2018-01-05 10:26:27 +00:00
  • e122a756a1 Search Filter bugs fixed (thx Simon Rettberg) leitner 2017-06-02 08:51:22 +00:00
  • 11536f5b2b remove more gcc 7 warnings leitner 2017-05-06 22:40:42 +00:00
  • a6a5daf303 finish size_t conversion from unsigned long leitner 2017-05-02 14:10:50 +00:00
  • 36d16fd21b fix a memory leak leitner 2017-04-21 16:37:31 +00:00
  • 521d67fd26 fix inexplicable memory leak leitner 2017-04-21 16:25:20 +00:00
  • 1d95650489 change #include to move foo.h to libowfat/foo.h (needs current libowfat now) leitner 2017-04-21 16:23:38 +00:00
  • 5664e1796a better ldif parsing error messages (in a format that vim quickfix mode can use) leitner 2017-04-19 16:22:34 +00:00
  • decd4273e4 if useindex returns error, don't fail leitner 2017-03-29 14:42:49 +00:00
  • 2677773b06 skip comment lines leitner 2017-03-29 13:03:18 +00:00
  • 7a2ea8bd51 faking an index for present queries actually made things slower fail parsing for decoding errors leitner 2017-03-29 12:52:24 +00:00
  • 0570db01d5 update seccomp for i386 socketcall syscall horror leitner 2017-03-13 10:49:26 +00:00
  • 483069ce51 allow ftruncate allow mremap for glibc, too leitner 2017-03-03 16:18:21 +00:00
  • 6ef84457cc fix two bugs in the indexing code found by Georg Lehner silence if statement indentation warnings (gcc has become more picky) leitner 2017-02-25 08:40:23 +00:00
  • eb8bf7c2ac fix for infinite loop in case of query return limit leitner 2016-01-22 15:40:05 +00:00
  • 4a12975f61 off by one leitner 2015-06-13 12:05:16 +00:00
  • 0f622add7f start working on test suite leitner 2015-05-08 04:33:04 +00:00
  • e4a6b9268f add some more tls wip code leitner 2015-05-08 01:21:32 +00:00