Commit Graph

81 Commits

Author SHA1 Message Date
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
leitner
73e9cf8902 add code to parse AddRequests (by Andreas Krennmair) 2003-09-01 15:34:34 +00:00
leitner
1dfc14fd99 Thomas Walpuski found and fixed a bug regarding error handling.
tinyldap index would return 0 as error indication, but 0 is also a valid
return code.  He changed error to -1.
2003-05-15 15:08:11 +00:00
leitner
b5479c12e0 support ;binary 2002-09-28 00:10:21 +00:00
leitner
892bc1056b fix binary attributes based on code from Thomas Walpuski
fix ldapclient buffering
fix potential segfault in server error handling
2002-08-30 22:36:59 +00:00
leitner
7b68d29ade try not to leak memory in case of parse error 2002-07-16 23:00:26 +00:00
leitner
d406931b14 say why authentication failed 2002-07-15 17:48:17 +00:00
leitner
43f8f40837 add md5password (convert argv to md5 password string with base64 for ldif)
fix ldapclient to use all the arguments and cope with fused packets (one
read() returning the search result entry and the end marker).
Make ldif_parse() use strallocs (remove 8k limit on payloads)
2002-07-14 23:34:12 +00:00
leitner
c992e45561 ldapbindrequest with password created invalid packet
ldapclient only evaluated the first record
minor robustness fixes for tinyldap
2002-07-09 19:53:15 +00:00
leitner
5706ea2e53 many cleanups (forgotten includes) 2002-07-08 21:05:07 +00:00