Pierangelo Masarati
4bc8197dcb
further ACI factoring out & confinement
2005-08-22 16:03:35 +00:00
Pierangelo Masarati
de90dbbc52
mutex-protect "undefined" attribute descriptions/objectClasses addition (ITS#3958)
2005-08-22 09:46:17 +00:00
Pierangelo Masarati
ec49990d51
ACIs almost entirely factored out of slapd
...
Added OpenLDAPaciSyntax based on ITS#3877 by Nikita Shulga
aci_mask() doesn't exploit the normalized value yet (next step)
The case #define SLAPD_ACI_ENABLED / #undef SLAP_DYNACL should
be removed
2005-08-17 17:14:57 +00:00
Pierangelo Masarati
d10250d9f6
add authzSyntax for authzTo/authzFrom attributes; add X-ORDERED 'VALUES' if support for ordered_value_{validate,pretty,normalize} is present; exploit normalization in slap_parseURI (only #ifdef LDAP_DEVEL)
2005-08-11 23:52:17 +00:00
Hallvard Furuseth
9601e1e7ec
serialNumberAndIssuerPretty() and serialNumberAndIssuerNormalize()
...
were confused about realloced memory.
2005-07-30 23:30:42 +00:00
Hallvard Furuseth
81ecb0b153
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2005-07-18 06:22:33 +00:00
Howard Chu
5d2ba11ad9
ITS#3847 silence warnings
2005-07-11 12:11:15 +00:00
Luke Howard
f90800667d
Fix OpenLDAP ITS#3782 - broken logic in bitwise matching rules
2005-06-16 05:31:24 +00:00
Kurt Zeilenga
3e800f20bd
<limits.h> cleanup && ITS#3643
2005-04-10 19:32:14 +00:00
Kurt Zeilenga
e7e8ec90b6
Update uniqueMemberMatch to be consistent with latest
...
draft-ietf-ldapbis-syntaxes
Add uniqueMemberMatch approximate support
Add uniqueMemberMatch indexing support
2005-03-26 02:07:00 +00:00
Kurt Zeilenga
8da81d42c7
ITS#3538: improved substrings matching (spaces handled
...
in accordance with LDAPprep)
2005-03-25 05:57:07 +00:00
Howard Chu
3f357270d4
Fix unparsers, schema loading works
2005-03-21 10:23:01 +00:00
Howard Chu
b6019af759
Fix off-by-one in octetStringSubstringsFilter
2005-02-01 13:40:17 +00:00
Pierangelo Masarati
e559e61b4f
consistently use BER_* macros
2005-01-18 09:35:09 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Kurt Zeilenga
d616bd4ff8
cleanup
2004-12-07 18:40:47 +00:00
Howard Chu
810abc1419
Better fix for prev commit
2004-12-06 07:38:09 +00:00
Howard Chu
ee01d03766
Don't assert on short time strings, just ignore them.
2004-12-06 03:37:06 +00:00
Howard Chu
02a85a1c93
Hide CSN schema dependencies
2004-12-02 16:59:00 +00:00
Howard Chu
1e577505eb
Add CSN syntax, matching rules (to support inequality indexing)
2004-12-02 09:05:26 +00:00
Sang Seok Lim
decfd7217f
1) <all> type component reference support
...
2) nibble type memory support when decoding
3) description type object identifier support
4) OPTIONAL, DEFAULT support in certificate decoder/extractor/matching
5) Misc bug fix
2004-11-29 20:21:38 +00:00
Sang Seok Lim
a90e63fde0
ComponentFilterMatch support for userCertificate
2004-11-14 20:11:38 +00:00
Sang Seok Lim
71e78dd7f9
Component Matching module
...
See "contrib/slapd-modules/comp_match/README" to understand
what's the purpose of this patch is and how to use it.
2004-10-27 19:37:02 +00:00
Howard Chu
7e87f54716
Revert ITS#3353 patch, it needs to be reworked.
2004-10-06 05:51:38 +00:00
Howard Chu
fda3d6260e
ITS#3353 consolidate slapd globals into a single struct
2004-10-01 07:33:16 +00:00
Howard Chu
62b6b32633
Add SLAP_MR_ORDERED_INDEX - support for inequality indexing. Currently
...
only implemented for generalizedTime syntax.
2004-09-28 13:11:11 +00:00
Howard Chu
fc44ed4593
Tweak exact hashing in prev commit
2004-09-28 04:13:09 +00:00
Howard Chu
bf7c7a22d6
ITS#2661: configurable substring index lengths
...
ITS#2588: use subany to help long subinitial/subfinal matches
2004-09-28 02:51:00 +00:00
Pierangelo Masarati
761f287943
multiple precision with BIGNUM/gmp/ulong
2004-09-26 22:58:47 +00:00
Kurt Zeilenga
910076d26f
Add additional DN matching rules.
2004-09-09 03:56:58 +00:00
Kurt Zeilenga
741f9ea383
Add initial dnSubtreeMatch.
...
Should reuse other DN routines.
Need to add various other DN matching rule functions.
This commit, combined with entryDN and slapcat -a, should
fully address ITS#3112.
2004-09-09 02:07:27 +00:00
Kurt Zeilenga
d611a4b49a
unifdef -UNEW_LOGGING
2004-09-04 04:54:28 +00:00
Jong Hyuk Choi
70fda7725a
revert prev commit to normalizers
2004-09-01 16:01:36 +00:00
Jong Hyuk Choi
6baa9b1e2b
use ch_malloc for normailzed values
2004-08-31 14:22:56 +00:00
Jong Hyuk Choi
e6df94946d
patch for ITS#3296 - do not use sl_malloc on normalized attr values
2004-08-31 13:47:33 +00:00
Kurt Zeilenga
fea393c077
cleanup
2004-08-28 19:26:59 +00:00
Sang Seok Lim
2af6457771
This patch is for a component filter. please refer ITS#3260 for detail
...
and "implementing GSER and Component Matching" in ODD 2004.
All codes are #ifdef'd with LDAP_COMP_MATCH.
test031-component-filter works correctly only when the LDAP_COMP_MATCH macro is set.
To disable it, set AC_WITH_COMP_MATCH "no" in "openldap_src/tests/run.in".
2004-08-26 00:06:39 +00:00
Jong Hyuk Choi
8b5b2e715b
should not assert(0) in UUIDValidate
2004-07-28 17:27:52 +00:00
Pierangelo Masarati
448e2dcad4
fix empty uniqueMember dn portion (ITS#3247)
2004-07-18 21:40:16 +00:00
Sang Seok Lim
ad19032bf2
This patch provides support for rdnMatch matching rule and RDN syntax in
...
RFC 3687. For now, both the attribute and assertion values are considered
as RDNs. Refer to ITS#3207 to find related discussion.
2004-06-29 23:36:58 +00:00
Pierangelo Masarati
5256cbda6c
fix uniqueMemberMatch according to previous fix (related to ITS#3210)
2004-06-29 17:23:54 +00:00
Pierangelo Masarati
c25c3ed9e5
fix nameUID* and uniqueMember* stuff in a consistent manner (related to ITS#3210)
2004-06-29 16:29:00 +00:00
Kurt Zeilenga
6830aca2d1
cleanup
2004-06-28 23:03:01 +00:00
Pierangelo Masarati
279d629c81
fix nameUID/uniqueMember stuff (ITS#3210)
2004-06-28 22:10:27 +00:00
Kurt Zeilenga
25166f8166
cleanup
2004-06-11 00:14:01 +00:00
Pierangelo Masarati
1543d3b95b
fix previous commit :)
2004-05-13 22:19:16 +00:00
Pierangelo Masarati
a10fe8e098
caught nasty empty DN bug
2004-05-13 22:12:24 +00:00
Kurt Zeilenga
a3bbc8adec
Update substr indexing macros to better separate
...
initial/final string settings from any string settings.
2004-05-04 22:31:57 +00:00
Kurt Zeilenga
05463503e8
ITS#3118: fix objectIdentifierFirstComponentMatch for schema elements
2004-04-28 20:10:21 +00:00
Kurt Zeilenga
81d31dc721
ITS#3118: initial fix: (objectClasses=2.5.6.0) works
...
need to add special handler to allow (objectClasses=top) to work
2004-04-28 05:12:53 +00:00
Pierangelo Masarati
5e5e0cd98a
quick hack for ITS#3118; may need work
2004-04-28 00:09:25 +00:00
Kurt Zeilenga
5f2497910b
ITS#3115: don't increment argument to TOLOWER macro
2004-04-26 23:13:19 +00:00
Kurt Zeilenga
1372965d89
ITS#3092: Rename sl_free() and friends to slap_sl_free()
2004-04-20 03:44:57 +00:00
Kurt Zeilenga
69eeb79662
Additional invalid objectClass changes (ITS#3097)
...
catch error in validation/pretty functions
2004-04-19 20:45:26 +00:00
Kurt Zeilenga
44725e7303
use BER_BVNULL
2004-04-07 04:11:43 +00:00
Kurt Zeilenga
ad6969e6cd
Add a yet-to-be-tested deliveryMethodValidate function
2004-04-02 02:25:36 +00:00
Kurt Zeilenga
855c22d862
Add numericStringOrderingMatch rule (ITS#2988)
2004-03-26 18:58:01 +00:00
Kurt Zeilenga
ec4e7ef232
Add note that some of the unimplemented matching rules are
...
now described in RFC 3698. Would be good to implement these.
2004-03-18 21:39:57 +00:00
Pierangelo Masarati
129aa2884b
fix numericStringMatch (ITS#2938)
2004-02-17 20:30:37 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Pierangelo Masarati
f2a9089e4d
cleanup most of the -pedantic warnings (ITS#2884) and other small fixes
2003-12-17 20:55:46 +00:00
Kurt Zeilenga
4e15a84452
Updated notices
2003-11-27 01:17:14 +00:00
Howard Chu
ccf224a759
ITS#2808 fix UUIDNormalize, use it.
2003-11-03 08:22:13 +00:00
Kurt Zeilenga
80fa73bf8c
Update entryUUID to latest draft specification
2003-10-31 17:41:31 +00:00
Howard Chu
7126ccf569
Fix caseExact/caseIgnore IA5 normalization
2003-10-23 05:28:22 +00:00
Kurt Zeilenga
aa225c2c70
Explicitly mark attribute/assertion syntax of values to be normalized
2003-10-18 06:18:05 +00:00
Howard Chu
dee604c608
ITS#2771 fix memory usage in LDAPDN_rewrite, fix normalizer
2003-10-18 05:49:58 +00:00
Kurt Zeilenga
c57db6c33e
Add basic support for certificateMatch (as an extensible matching rule)
2003-10-18 04:20:19 +00:00
Kurt Zeilenga
3fbe93c704
Rework support for certificate exact matching based, in part,
...
on patch submitted by Mark Ruijter <openldap@siennax.com>.
This addresses (hopefully) ITS 2702, 2703, 2719, 2771.
Additional work:
fix extraneous frees in libldap/getdn.c x509 rewrite routine
indexing
2003-10-18 02:39:08 +00:00
Luke Howard
ff073b8cd5
Check for HAVE_LONG_LONG in STRTOL macro
2003-09-22 14:01:31 +00:00
Luke Howard
3846a8881a
Define SLAP_STRTOL macro for integerBitAndMatch() and integerBitOrMatch()
...
usage - necessary to use larger types for interop with a certain client
that would expect the assertion (attr:1.2.840.113556.1.4.803:=2147483648)
to match a signed value (eg. -2147483646).
There are probably better / more portable solutions; review appreciated.
2003-09-21 06:26:43 +00:00
Kurt Zeilenga
f39fb6d91b
Add missing assignment in last commit.
2003-08-22 21:16:16 +00:00
Kurt Zeilenga
be22981d78
Add nameAndOptionalUID pretty routine... improves uniqueMember handling
...
Should resolve ITS#2664.
2003-08-22 21:03:03 +00:00
Hallvard Furuseth
2d48b5dc99
Handle full syntax of Generalized Time and UTC Time.
...
No longer accept initial and trailing spaces in these syntaxes.
2003-08-13 20:04:59 +00:00
Kurt Zeilenga
2f5fbeb180
ITS#2664: add uniqueMemberMatch
2003-08-11 02:12:20 +00:00
Howard Chu
a505d0c1fa
ITS#2587 fix failure return from telephoneNumberNormalize
2003-06-13 17:28:45 +00:00
Kurt Zeilenga
af6b191c96
misc cleanup
2003-06-09 21:33:46 +00:00
Kurt Zeilenga
001953cdc5
Schema cleanup
2003-05-31 18:57:32 +00:00
Pierangelo Masarati
074f54f300
clarify the size of a generalizedTime
2003-05-19 21:10:49 +00:00
Kurt Zeilenga
4604634592
NVALUES updates to approximate matching...
2003-05-16 03:57:01 +00:00
Kurt Zeilenga
d0f025bd46
updated certificateExactMatch support,
...
doesn't yet use ctx malloc routines
2003-05-14 20:52:23 +00:00
Kurt Zeilenga
5cd994ed21
remove dnNormalize2
...
replace calls to dnNormalize2 with calls to dnNormalize
2003-04-29 18:28:14 +00:00
Kurt Zeilenga
eebc51b9bf
remove dnPretty
...
rename dnPretty2 to dnPretty
2003-04-29 18:13:10 +00:00
Kurt Zeilenga
a0bcff1630
generic first component matching routines
...
Need to add specific routines for schema attribute types
2003-04-28 04:41:47 +00:00
Kurt Zeilenga
7bbc903201
fix up nvalues code so that pretty routines work properly
...
re-add objectClass pretty routines
2003-04-25 02:28:06 +00:00
Kurt Zeilenga
519faf22c2
Backout last commit... needs more work
2003-04-24 23:46:12 +00:00
Kurt Zeilenga
3067954616
rework objectClass mucking to use syntax "pretty" routine
...
(be liberal in what you accept, strict in what you generate)
2003-04-24 23:40:55 +00:00
Kurt Zeilenga
79262c5703
Fix typo
2003-04-24 12:43:30 +00:00
Kurt Zeilenga
65ea6c23c2
New integer syntax / matching routines
...
A pretty function likely should be added "to be liberal in what we accept"
2003-04-24 05:16:06 +00:00
Kurt Zeilenga
a6da45c9c7
Fix typo in last commit
2003-04-22 20:35:41 +00:00
Kurt Zeilenga
b9fe2c2fd6
Fix up subtreeSpecification to allow new GSER-based string format
...
(real validatator needed).
2003-04-22 20:33:08 +00:00
Jong Hyuk Choi
8e12768eed
subtreeSpecification syntax change : -binary +validator
2003-04-22 20:08:37 +00:00
Pierangelo Masarati
3a5cd746b7
use global bervals for TRUE/FALSE
2003-04-16 19:49:00 +00:00
Pierangelo Masarati
d9d5912383
use syntax and matching rules knowledge when preparing SQL filters (to reduce pseudo-normalization efforts and search candidate number)
2003-04-16 10:22:33 +00:00
Kurt Zeilenga
fc7e29e0c5
Add associated matching rules
2003-04-16 05:56:28 +00:00
Howard Chu
808cb504ce
More memory context tweaks
2003-04-11 03:57:10 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Pierangelo Masarati
c2d59edef9
need OpenLDAPaciMatch
2003-04-07 08:54:12 +00:00
Kurt Zeilenga
926b2cf0bf
cleanup
2003-04-07 03:46:22 +00:00
Kurt Zeilenga
91b6bc606f
more SLAP_NVALUES tweaking
2003-04-07 01:19:47 +00:00
Kurt Zeilenga
67d6b23d22
SLAP_NVALUES code cleanup
2003-04-07 01:06:46 +00:00
Kurt Zeilenga
b59bb2de35
More #unifdef -DSLAP_NVALUES
2003-04-06 19:16:49 +00:00
Kurt Zeilenga
35df710c64
partial #unifdef -DSLAP_NVALUES
2003-04-06 18:57:17 +00:00
Kurt Zeilenga
c75be97ae9
#ifdef -DSLAP_NVALUES
2003-04-05 03:35:16 +00:00
Pierangelo Masarati
95991161c6
FIXME: is this the intended behavior?
2003-04-03 22:18:17 +00:00
Luke Howard
8f0542d260
s/octetStringIndexer/octetStringMatch
2003-04-02 02:40:17 +00:00
Luke Howard
c52d604265
Apply Kurt's fix for octet string normalization/filtering of integers
2003-04-02 01:54:03 +00:00
Kurt Zeilenga
ce5bff041d
SLAP_NVALUES: a few more matching rules
2003-03-24 06:49:55 +00:00
Kurt Zeilenga
d50064ddb8
SLAP_NVALUES: telephoneNumberNormalize
2003-03-24 02:16:10 +00:00
Kurt Zeilenga
8b19daa35a
SLAP_NVALUES: add numericStringNormalize()
2003-03-24 02:11:41 +00:00
Kurt Zeilenga
2d78fafe03
Boolean indexing support
2003-03-23 05:54:52 +00:00
Kurt Zeilenga
8b6e1db2d3
SLAP_NVALUES: remove all the extra frees
2003-03-16 23:54:22 +00:00
Kurt Zeilenga
b1d245d9de
SLAP_NVALUES: fix extraneous free bug.
2003-03-16 23:52:44 +00:00
Kurt Zeilenga
f172e06cc0
SLAP_NVALUES: substrings indexing/filterring
2003-03-01 20:21:39 +00:00
Kurt Zeilenga
208971a65f
SLAP_NVALUES: A couple of more normalizers...
2003-03-01 01:27:09 +00:00
Kurt Zeilenga
16c9e81c80
SLAP_NVALUES: test003 now passes (with help of a substr mr hack)
2003-03-01 00:14:32 +00:00
Kurt Zeilenga
cd6657fdf0
SLAP_NVALUES: fix UTF8StringNormalize
...
tests 0-2 now run correctly
2003-02-28 20:00:54 +00:00
Pierangelo Masarati
e0a70010d9
missing OpenLDAPaciMatch definition
2003-02-28 12:05:48 +00:00
Kurt Zeilenga
840f3644f4
SLAP_NVALUES: a couple of basic normalizers... but not working yet.
2003-02-28 05:13:29 +00:00
Kurt Zeilenga
70f5bd5d9d
SLAP_NVALUES: More preparation for new normalization routines
2003-02-27 17:35:23 +00:00
Kurt Zeilenga
7a7f482623
SLAP_NVALUES: prepare for new schema routines
...
(hopefully I didn't break -USLAP_NVALUES)
2003-02-27 06:51:53 +00:00
Kurt Zeilenga
32399d9bd9
axe mr_ptr in favor or schema_prep
2003-02-27 03:29:07 +00:00
Kurt Zeilenga
152829be87
SLAP_NVALUES:
...
schema engine updated (but not schema routines so things don't run yet)
nvalues mostly populated, enough for tests 0-2 to pass
schema routines needs lots of work
modify/mods codes needs lots of work
2003-02-27 01:54:43 +00:00
Kurt Zeilenga
627de4de15
Additional indexer normalization (need to check all Indexers)
2003-02-25 19:21:18 +00:00
Kurt Zeilenga
ec9db8dec1
Quick (and incomplete) fix to " foo " indexing
2003-02-25 19:01:33 +00:00
Luke Howard
d54548b9a0
Use strtol() not strtoul() in integerBit{And,Or}Match matching rules
2003-01-19 15:20:09 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Hallvard Furuseth
aeaaa8c6ca
Fix octetStringOrderingMatch(). It thought "b"<"aa", becuase "b" is shorter.
2003-01-03 17:06:01 +00:00
Hallvard Furuseth
b0f9305b66
Delete bitStringNormalize().
2003-01-03 16:17:06 +00:00
Hallvard Furuseth
d96236b5ce
Fix attribute value parsing in objectIdentifierFirstComponentMatch().
2003-01-02 15:01:56 +00:00
Kurt Zeilenga
b2a3ceb002
A few X.509 certificate tweaks... needs work (and testing)
2002-12-21 22:54:51 +00:00
Kurt Zeilenga
854e447231
misc cleanup
2002-12-11 20:39:05 +00:00
Howard Chu
56c11f4a13
Fix ITS#2227, nameUIDNormalize fell behind the times...
2002-12-11 01:33:24 +00:00
Kurt Zeilenga
32f6c9ec6d
Make digit a local static variable instead of a global
2002-12-10 16:44:02 +00:00
Julius Enarusai
fe569dbb75
Converted ch_malloc and ch_calloc calls to SLAP_MALLOC and SLAP_CALLOC.
2002-11-19 18:24:18 +00:00
Kurt Zeilenga
1d0e916c6f
Misc CLIENT_UPDATE cleanups
2002-09-15 22:22:51 +00:00
Jong Hyuk Choi
4b48c05a8e
LDAP Client Update Protocol - non-persistent update (TODO: response control ...)
2002-09-04 02:00:42 +00:00
Kurt Zeilenga
8a5b200c44
Add appropriate matching rule checks.
...
Clean up syntax error reporting.
2002-09-03 07:01:09 +00:00
Kurt Zeilenga
e9a71156cc
Add matching rule use support where assertion syntax != value syntax
2002-08-31 20:42:25 +00:00
Pierangelo Masarati
71aecea2aa
fix bitwise matching (courtesy of Luke Howard)
2002-08-31 10:56:27 +00:00
Pierangelo Masarati
e2ec62f09f
add matchingRuleUse to schema; use a berval instead of _oidlen in syntax and matching rule
2002-08-31 10:45:22 +00:00
Kurt Zeilenga
b04483a6a2
We don't support substrings matching via extensibleMatch
2002-08-30 19:30:58 +00:00
Kurt Zeilenga
923d033c99
Finish adding subclassing indexing support
2002-08-29 02:27:15 +00:00
Kurt Zeilenga
1086ffb438
Round one of subclass indexing for objectClass and structualObjectClasss.
...
add soc_cname to ObjectClass structure
2002-08-29 01:12:59 +00:00
Howard Chu
e5091f5926
Updated register_syntax, register_matching_rule for more convenient
...
calling from other modules
2002-08-17 01:29:18 +00:00
Pierangelo Masarati
a7349c100e
fix printableStringValidate return value bug
2002-08-16 16:32:42 +00:00
Kurt Zeilenga
4a4323e3b7
Move large string comment to just above UTF8StringValidate().
2002-08-07 08:19:11 +00:00
Kurt Zeilenga
3f2faa1a84
other->invalid
2002-08-06 05:38:49 +00:00
Kurt Zeilenga
a35d5b90fc
For IA5, printable, telephone:
...
Don't allow empty string values.
Treat string values with only spaces as one space.
DirectoryString needs more work (space handling needs
to be done post normalization).
2002-08-06 05:35:59 +00:00
Kurt Zeilenga
6fdcdeb816
Add a summary to strings comment
2002-08-06 04:25:54 +00:00