Commit Graph

63 Commits

Author SHA1 Message Date
leitner dae3ea8024 add oid and bitstring parsing and formatting to "generic" format string
routines, test them in t10.c
2011-04-28 21:33:10 +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 05d388f122 add journal rereading
add DelRequest support
add little delete test tool ldapdelete
2008-04-20 06:59:11 +00:00
leitner 0396c78805 hups 2007-06-28 22:53:24 +00:00
leitner 35f2b3b745 first shot at "addrequest" support 2007-06-28 22:17:33 +00:00
leitner aa5a3e16f2 whoops, broke something? 2005-12-07 01:43:45 +00:00
leitner 7966fa0c86 remove lots of gcc 4 warnings 2005-10-14 14:35:16 +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 783126698f ACL parsing appears to work, and a new test program called dumpacl can
dump them back out.  Now we just need to check them when executing ldap
requests.  *cough*
2005-07-15 23:04:23 +00:00
leitner 41dea7e1e2 continue work on acl, still not ready 2005-07-08 23:13:17 +00:00
leitner 268e5be57a work in progress 2005-07-08 20:32:18 +00:00
leitner d526e16980 parse can now handle data that is larger than memory
(addindex still cannot)
2005-04-06 08:36:31 +00:00
leitner 5b980e3f93 ldapclient can now also query for no attributes
mstorage_add can now allocate larger chunks (and parse uses 1 MiB)
fix small oversight in addindex putting wrong index size in header
more integer overflow checks in asn1 code (not security relevant)
fix missing initialization in asn1 routines (not security relevant, code
section not triggered by ldap)
2005-04-01 21:53:33 +00:00
leitner 4b3919b269 add function to free search result entries (and use it in ldapclient) 2005-04-01 09:26:50 +00:00
leitner 53c75f6f3e add trivial mysql2ldif program 2005-03-31 11:57:15 +00:00
leitner a0fc14fd4b allow zero-length attribute values
non-dietlibc md5 workaround (using openssl)
2005-03-17 09:46:02 +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 0cad372ea0 rework parse so that it can process larger files. 2004-02-14 00:31:42 +00:00
leitner 3dd5fb78b1 cosmetics 2004-02-05 01:29:18 +00:00
leitner 723522bcaa fix offset 2004-02-05 00:02:52 +00:00
leitner dcf0e428f5 extent mstorage API to include optional persistence 2004-02-04 23:13:37 +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 4b6b20f995 add scan_asn1oid from Thomas Walpuski 2003-03-14 23:55:19 +00:00
leitner 0720597238 a bug fix and a parser for RFC-style LDAP search expressions.
Need to integrate them into ldapclient
2002-10-04 21:09:18 +00:00
leitner e6eb6100ab be friendly to non-Linux non-gcc systems 2002-09-07 11:31:53 +00:00
leitner b1960800b8 remove obsolete ldap_match (superseded by ldap_match_mapped a long time ago)
make mstorage_add compile on non-Linux
2002-09-07 11:16:14 +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 3d02ee1154 fix PRESENT query formatter and allow ldapclient to query for PRESENT 2002-08-12 02:01:12 +00:00
leitner 91b279ea10 thoughts about how to integrate ACLs 2002-07-17 13:07:09 +00:00
leitner 7b68d29ade try not to leak memory in case of parse error 2002-07-16 23:00:26 +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 7589c81061 experimental support for base64 encoded binary data 2002-07-08 20:57:42 +00:00
leitner 1d03b1e60f searchrequest scope handling (fixed by Thomas Walpuski)
add (primitive) auth support
2002-05-14 20:11:36 +00:00
leitner 6d2ae683bf add idx2ldif (dump data as ldif) 2002-04-15 18:43:50 +00:00
leitner 396357f2c8 make debug code disappear 2002-04-03 23:58:20 +00:00
leitner 0221bf98a9 add case sensitive matching 2002-04-03 23:53:12 +00:00
leitner 0b2a282ec0 begin work on modifyrequest parser 2002-04-03 13:44:15 +00:00
leitner 4792ff7c58 indexed substrings (prefixes only, for now), and untested AND and OR
support.
2002-03-26 15:51:53 +00:00
leitner c76ee598c0 oops, the indexing code did much too much work 2002-03-25 23:56:34 +00:00
leitner ec55f05ca0 Initial index query support 2002-03-25 23:46:34 +00:00
leitner d6dc21ceec better make clean 2002-03-24 03:13:44 +00:00
leitner cc06d60953 update README 2002-03-24 03:12:35 +00:00
leitner 13258a3f89 external database representation 2002-03-24 03:08:04 +00:00
leitner f486c4402a add standalone tinyldap version 2002-03-14 20:30:59 +00:00
leitner 2848136fc9 provide some infrastructure for signed ints 2002-03-14 17:26:06 +00:00
leitner e7d17909d7 add substring search stuff from Öc 2002-02-17 14:54:05 +00:00
leitner e0a5cf85ee import patch from David Lichteblau and make scan_ldapsearchrequest work
again with the fixed code ;)
2002-01-28 02:34:21 +00:00
leitner dd709ad020 rip printf from ldapclient, save another 3k 2002-01-16 19:46:51 +00:00