Mark Adamson
465ecb85f0
Finished the integerMatch matching rule and the integer syntax.
2001-09-20 15:50:49 +00:00
Kurt Zeilenga
ed9b7332fb
Add <limits.h>
2001-09-07 02:08:32 +00:00
Kurt Zeilenga
a2ba804e47
Add general extensible matching support and integerBitAndMatch
...
and integerBitOrMatch enhancement (ITS#1302 + minor changes)
from Luke Howard <lukeh@padl.com>.
2001-09-01 17:10:43 +00:00
Stig Venaas
e3caeb2264
Removed duplicate code by replacing case-Exact/Ignore-Filter/Indexer and
...
case-Exact/Ignore-Substrings-Match/Filter/Indexer with common code for
the caseExact and caseIgnore cases
2001-07-27 22:54:43 +00:00
Stig Venaas
159fa1b26c
Making the approx multistring code default. Leaving the old code for now,
...
but can really be removed.
2001-07-26 22:33:28 +00:00
Kurt Zeilenga
d4df1af590
Misc cleanup of asserts
2001-07-26 01:08:00 +00:00
Stig Venaas
92ec77f6dc
Made approxMatch/Indexer/Filter all do Unicode cannonical normalization
...
followed by stripping of characters with 8th bit set. The normalization
is needed to make exact match imply approx match.
2001-07-25 21:22:55 +00:00
Kurt Zeilenga
e2b3914982
ITS#1274 fix
2001-07-24 19:54:04 +00:00
Kurt Zeilenga
0cdf9e3124
fix up UTF8MATCH
2001-07-22 02:45:21 +00:00
Kurt Zeilenga
f310142d2c
Use DN normalize
2001-07-22 00:32:58 +00:00
Stig Venaas
d326f96c32
We shouldn't need UTF8oncasecmp() and UTF8casechr() anymore, removing
...
them.
2001-07-22 00:31:04 +00:00
Kurt Zeilenga
978e417699
Make some additional UTF8 public
...
Remove lint
2001-07-21 23:13:04 +00:00
Kurt Zeilenga
da2f6f6805
Zap !UTF8MATCH code
2001-07-21 23:02:06 +00:00
Kurt Zeilenga
5cb6b1ce02
Back out DN changes, needs more work
2001-07-21 22:44:55 +00:00
Stig Venaas
0e614ca0ec
Made caseExactMatch() use Unicode normalization
2001-07-17 20:09:37 +00:00
Stig Venaas
6c362d77ac
Made caseIgnoreSubstringsMatch and caseExactSubstringsMatch use proper
...
Unicode cannonical normalization
2001-07-17 19:35:23 +00:00
Stig Venaas
ea47735802
Fixed UTF8 encoding checks for substrings assertions
2001-07-16 22:48:52 +00:00
Stig Venaas
9b0e583576
Fixed bug in caseExactSubstringsIndexer() and caseIgnoreSubstringsIndexer().
...
UTF8 normalization must be done before we compute number of keys since
string length might increase.
2001-07-15 21:28:07 +00:00
Kurt Zeilenga
40d68d8374
Extend assertion value syntax checks to some other cases. Needs to
...
be applied to substrings assertions as well.
2001-07-15 17:25:49 +00:00
Stig Venaas
886a7575d0
Fixed segfault in caseIgnoreFilter when assertion value has bad UTF8 coding
2001-07-15 16:21:36 +00:00
Pierangelo Masarati
a453d7eacf
dn_validate/dn_normalize has been rewritten by
...
David A. Cooper <david.cooper@nist.gov> (ITS#1232)
according to draft-ietf-ldapbis-dn-05.txt
A copyright statement follows:
The functions normalize_unicode(), get_hexpair(), write_hex_pair(),
get_next_byte(), get_next_char(), get_ber_length(),
ber_parse_primitive_string(), ber_parse_string(), String_normalize(),
DirectoryString_normalize(), PrintableString_normalize(),
IA5String_normalize(), ber_parse_primitive_bitstring(),
ber_parse_bitstring(), getNext8bits(), bitString_normalize(), match_oid(),
match_key(), get_validated_av_in_dn(), get_validated_rdn_in_dn(),
and get_validated_dn() in this file were developed at the National Institute
of Standards and Technology by employees of the Federal Government in the
course of their official duties. Pursuant to title 17 Section 105 of the
United States Code the code in these functions is not subject to copyright
protection and is in the public domain. The copyright for all other code in
this file is as specified below.
2001-07-13 08:21:14 +00:00
Kurt Zeilenga
11b6d1f284
Misc updates for NT4
2001-06-15 04:16:55 +00:00
Kurt Zeilenga
e2edf459cb
Remove extraneous variable
2001-06-15 00:00:52 +00:00
Kurt Zeilenga
5f0473d127
Fix typo in last commit
2001-05-30 06:28:32 +00:00
Kurt Zeilenga
e4653bde68
Allow empty numericString matching
2001-05-30 06:06:14 +00:00
Kurt Zeilenga
f48cb50f12
Zap presentation address match define
2001-05-09 23:43:06 +00:00
Kurt Zeilenga
508890e75b
Add telephone number indexing support (reuse only)
2001-05-03 00:59:47 +00:00
Mark Valence
efcb4533be
Fixed aci syntax validation to use UTF (aci attrs can have dn's)
2001-02-19 19:06:21 +00:00
Stig Venaas
ac95c255a8
Using UTF8normcmp() from lunicode, removing our own UTF8casecmp()
2001-01-31 15:58:00 +00:00
Stig Venaas
a8b77998f5
Made caseIgnoreIndexer(), caseIgnoreFilter(),
...
caseIgnoreSubstringsIndexer(), caseIgnoreSubstringsFilter(),
caseExactIndexer(), caseExactFilter(), caseExactSubstringsIndexer() and
caseExactSubstringsFilter() use UTF8normalize
2001-01-26 15:56:29 +00:00
Stig Venaas
b371357c13
Made dnNormalize() do Unicode normalization and case folding.
...
dn_normalize() now uses dnNormalize() and fails if normalized string is
longer than original string.
2001-01-25 16:51:59 +00:00
Kurt Zeilenga
79d9ab38ba
Add more restrictive numeric string validate.
...
Need to rework IA5 matching to support empty strings as they should
be allowed for most string types (excepting directoryString).
2001-01-17 21:02:11 +00:00
Gary Williams
f49fd8a98e
fix format
2001-01-17 16:35:53 +00:00
Gary Williams
ffcdc6d11d
More new logging (Behind NEW_LOGGING)
2001-01-15 19:17:29 +00:00
Kurt Zeilenga
fcd432ffbd
empty OID values are invalid
2000-11-10 23:07:20 +00:00
Kurt Zeilenga
00b77ca088
Postal Address should be treated like directoryString
2000-11-04 21:11:52 +00:00
Kurt Zeilenga
451146f795
Update validation of printable-like syntaxes
2000-11-04 21:09:23 +00:00
Kurt Zeilenga
17bcb2b3bb
Update printableString to restrict characters per RFC1778 not isprint()
2000-11-04 20:31:50 +00:00
Mark Adamson
caf384a37c
Improve handling of initials in approximate search strings.
2000-11-03 16:16:27 +00:00
Kurt Zeilenga
9117cbd488
Fix another #if 0 v UTF8MATCH bug
2000-10-25 01:32:35 +00:00
Kurt Zeilenga
b065d8e01b
Missed on #if 0 to #if UTF8MATCH is last commit
...
Also, enable UTF8MATCH... this is devel!
2000-10-24 22:25:41 +00:00
Kurt Zeilenga
7d2d2d6583
UTF8 aware caseIgnore matching
...
---
Copyright 2000 Stig Venaas, UNINETT
All rights reserved.
Redistribution and use in source and binary forms are permitted
without restriction or fee of any kind as long as this notice is
preserved. The name of UNINETT may not be used to endorse or promote
products derived from this software without specific prior written
permission. This software is provided ``as is'' without express or
implied warranty.
2000-10-24 22:23:30 +00:00
Mark Adamson
c165d93ecd
Implement 2 approximate matching algorithms.
2000-10-24 20:25:37 +00:00
Kurt Zeilenga
d30264a2a1
Trim unimplemented syntaxes and matching rules from subschema subentry
2000-10-16 23:47:46 +00:00
Kurt Zeilenga
e30826ea36
Per IETF LDAPext discussions, ;binary transfer of binary syntax
...
makes little sense. Implementations should not require or by
default return ;binary for attributes of this syntax. This means
inetOrgPerson needs updating. This means Netscape roaming doesn't.
2000-10-14 01:37:48 +00:00
Kurt Zeilenga
4dadd52ce7
allow numericString match indexing
2000-10-04 02:23:42 +00:00
Kurt Zeilenga
cd9b8b1fe9
ITS#786: fix IA5 string indexing to use appropriate routines
2000-09-29 00:24:43 +00:00
Kurt Zeilenga
6949ab9d15
Replace indexing hash with 32-bit FNV-1... should be much faster than MD5
2000-09-22 22:19:46 +00:00
Kurt Zeilenga
adf7955160
Add indirection to hash routines to allow for easier replacement
...
(MD5 should be replaced with something faster)
2000-09-22 20:47:46 +00:00
Kurt Zeilenga
048cb81a0f
Use LUTIL_MD5_BYTES constant
2000-09-22 20:36:27 +00:00