Commit Graph

110 Commits

Author SHA1 Message Date
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
leitner
7589c81061 experimental support for base64 encoded binary data 2002-07-08 20:57:42 +00:00
leitner
bd31d2568b More fixes from Thomas 2002-05-22 12:19:46 +00:00
leitner
5c8d2ac830 another very embarassing bug found by Thomas Walpuski 2002-05-17 15:55:56 +00:00
leitner
1d03b1e60f searchrequest scope handling (fixed by Thomas Walpuski)
add (primitive) auth support
2002-05-14 20:11:36 +00:00
leitner
57c79e45e6 add exist queries 2002-05-11 13:58:11 +00:00
leitner
35d5bd7e78 tinyldap would not find the last record in the database
switched to uint32_read instead of uint32_unpack.  Makes code much
  easier to read and reduces the number of variables in use.
2002-04-15 19:38:07 +00:00
leitner
51d65b5781 add case insensitive matching and dn normalizing in parse. 2002-04-15 14:34:20 +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
af04089fb8 fix substring filter formatting 2002-03-26 23:49:00 +00:00
leitner
3c1e9374a3 minor speed tweak 2002-03-26 17:07:21 +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
e8dc6efb36 remove large commented out code area
begin framework for using the index
2002-03-25 15:05:56 +00:00
leitner
46d79c5751 error handling 2002-03-24 03:16:07 +00:00
leitner
13258a3f89 external database representation 2002-03-24 03:08:04 +00:00
leitner
8f9cd366f0 split fmt_ldapadl into fmt_ldapadl and fmt_ldapavl (the former is a
SEQUENCE used in search requests, the latter is a SET used in search
results)
2002-03-14 21:05:36 +00:00
leitner
f486c4402a add standalone tinyldap version 2002-03-14 20:30:59 +00:00
leitner
0fbd732360 remove debug code again. 2002-01-28 02:34:59 +00:00