Commit Graph

90 Commits

Author SHA1 Message Date
leitner
11536f5b2b remove more gcc 7 warnings 2017-05-06 22:40:42 +00:00
leitner
1d95650489 change #include to move foo.h to libowfat/foo.h (needs current libowfat now) 2017-04-21 16:23:38 +00:00
leitner
decd4273e4 if useindex returns error, don't fail 2017-03-29 14:42:49 +00:00
leitner
7a2ea8bd51 faking an index for present queries actually made things slower
fail parsing for decoding errors
2017-03-29 12:52:24 +00:00
leitner
0570db01d5 update seccomp for i386 socketcall syscall horror 2017-03-13 10:49:26 +00:00
leitner
483069ce51 allow ftruncate
allow mremap for glibc, too
2017-03-03 16:18:21 +00:00
leitner
6ef84457cc fix two bugs in the indexing code found by Georg Lehner
silence if statement indentation warnings (gcc has become more picky)
2017-02-25 08:40:23 +00:00
leitner
eb8bf7c2ac fix for infinite loop in case of query return limit 2016-01-22 15:40:05 +00:00
leitner
4a12975f61 off by one 2015-06-13 12:05:16 +00:00
leitner
ed9c3d238e use seccomp-filter to reduce privileges 2015-05-08 00:26:37 +00:00
leitner
4631d35709 fix read av 2015-05-07 22:46:50 +00:00
leitner
da36873b76 mmap_read now returns const char*, remove warnings
reject non-minimal encodings for lengths and tags
catch too-large-value overflows in tags
2014-04-15 20:40:01 +00:00
leitner
218df43e66 reload ACLs when reloading the data file 2013-09-16 18:43:59 +00:00
leitner
46899d6ad1 fix make clean
fix acl matching in tinyldap
give ldapclient a way to do basic authentication
2013-09-16 18:35:04 +00:00
leitner
e04ca78ff8 add "generic" format string based encoder and decoder (scan_asn1generic,
fmt_asn1generic, see t10.c for example usage)
add "generic" asn.1 dumper (in t10.c)
fix some read off-by-one errors, minor cleanups
add real OID support
add bitstring support
2011-04-28 19:50:11 +00:00
leitner
a216b19483 allow binding to a specific IP in tinyldap_standalone (via $IP env) 2010-01-20 20:31:00 +00:00
leitner
0baffda48f int underflow in indexing code (thx Andreas Stührk) 2008-07-28 13:24:27 +00:00
leitner
a134707b07 disable nagle algorithm in ldapclient and server
add a benchmark mode to ldapbench that does not reconnect for each query
but does all the queries over the same connection.
2008-06-18 00:16:57 +00:00
leitner
7e2d134462 no acls, no write access 2008-04-20 07:19:46 +00:00
leitner
b40e2c8644 detect unsanctioned journal editing (and react by re-reading journal
from start)
2008-04-20 07:09:44 +00:00
leitner
05d388f122 add journal rereading
add DelRequest support
add little delete test tool ldapdelete
2008-04-20 06:59:11 +00:00
leitner
fcf6ed51f2 implement modifyrequest
rewrite bindrequest handling (reuse lookupdn)
update acl filter cache when bind succeeds
handle authenticating against a record in the journal
2007-11-01 00:43:29 +00:00
leitner
8a456f57b8 fix off-by-one 2007-07-24 15:26:26 +00:00
leitner
766eee0f8e remove gcc warning 2007-06-29 14:31:59 +00:00
leitner
b04b25a4a8 keep order of database and journal entries 2007-06-29 14:30:29 +00:00
leitner
35f2b3b745 first shot at "addrequest" support 2007-06-28 22:17:33 +00:00
leitner
90f7ea6bb5 Fix sizeLimit off-by-one (Marco Reichwald) 2006-09-16 19:53:48 +00:00
leitner
64eac4153f convert socket_tcp[46] to socket_tcp[46]b 2006-07-15 23:19:04 +00:00
leitner
91db2bf04f remove warning 2005-12-19 14:21:49 +00:00
leitner
aa5a3e16f2 whoops, broke something? 2005-12-07 01:43:45 +00:00
leitner
7a16e24794 Thomas Walpuski:
fix search requests with sizelimit
  fix scan_ldapaddrequest
2005-10-27 11:54:56 +00:00
leitner
7966fa0c86 remove lots of gcc 4 warnings 2005-10-14 14:35:16 +00:00
leitner
aee44036c5 case insensitive hashing also works 2005-10-13 16:55:10 +00:00
leitner
7376f0342c add hash table index type 2005-10-13 16:51:44 +00:00
leitner
b4a257d0ad remove a few warning, document planned hash index format 2005-10-12 20:03:03 +00:00
leitner
22ce7ce569 ldapclient can now be used as benchmark
link or rename the binary to "ldapbench" and pass the number of requests
in $NUM in the environment.
Also, a slight optimization in ldapclient (it now calls shutdown when it
wrote the search request)
2005-08-31 17:14:39 +00:00
leitner
40271f169a experimental acl support 2005-08-27 20:45:44 +00:00
leitner
573df04139 honor size limit in ldap queries 2005-07-01 11:31:20 +00:00
leitner
300b692ad0 make scan_ldapsearchfilterstring terminate on syntax error
add index support for >= and <= queries
2005-06-13 06:38:21 +00:00
leitner
6ed206616d fix stupid bug in ldapclient that caused entries to be printed twice 2005-06-13 01:10:44 +00:00
leitner
253865441b change type 1 indices to be two tables of uint32 instead of one table of tuples
this ought to be more cache friendly
2005-04-01 20:35:22 +00:00
leitner
78f1555c63 added type 1 indexes: also saves the record number in addition to the
offset of the attribute.  Faster but also doubles the index size.
2005-04-01 20:09:38 +00:00
leitner
74ecd01f5a if client does not ask for any attributes, list 'em all 2005-04-01 10:59:17 +00:00
leitner
01375185bf allow argv[1] to override "data" with tinyldap, so you can serve off a
different data basis
2005-04-01 07:16:37 +00:00
leitner
de55828626 remove a few warnings 2005-03-31 18:06:23 +00:00
leitner
864895f714 minor updates (acls don't work yet) 2005-02-19 17:46:42 +00:00
leitner
4f2bfc0074 fix bug in fmt_ldapsearchfilter
free memory for requests we can't handle yet
2004-08-03 22:34:38 +00:00
leitner
989695af67 fix several bugs 2004-03-12 23:21:24 +00:00
leitner
fbc0865c50 FreeBSD compatibility (Dirk Meyer) 2004-02-26 17:26:30 +00:00
leitner
3dd5fb78b1 cosmetics 2004-02-05 01:29:18 +00:00