Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
1e577505
Commit
1e577505
authored
Dec 02, 2004
by
Howard Chu
Browse files
Add CSN syntax, matching rules (to support inequality indexing)
parent
f83b55b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
1e577505
...
...
@@ -3196,6 +3196,11 @@ static slap_syntax_defs_rec syntax_defs[] = {
{
"( 1.3.6.1.4.1.4203.666.2.6 DESC 'UUID' )"
,
SLAP_SYNTAX_HIDE
,
UUIDValidate
,
NULL
},
{
"( 1.3.6.1.4.1.4203.666.11.2.1 DESC 'CSN' )"
,
SLAP_SYNTAX_HIDE
,
blobValidate
,
/* THIS WILL CHANGE */
NULL
},
/* OpenLDAP Void Syntax */
{
"( 1.3.6.1.4.1.4203.1.1.1 DESC 'OpenLDAP void' )"
,
SLAP_SYNTAX_HIDE
,
inValidate
,
NULL
},
...
...
@@ -3630,6 +3635,20 @@ static slap_mrule_defs_rec mrule_defs[] = {
octetStringIndexer
,
octetStringFilter
,
"UUIDMatch"
},
{
"( 1.3.6.1.4.1.4203.666.11.2.2 NAME 'CSNMatch' "
"SYNTAX 1.3.6.1.4.1.4203.666.11.2.1 )"
,
SLAP_MR_HIDE
|
SLAP_MR_EQUALITY
|
SLAP_MR_ORDERED_INDEX
,
NULL
,
NULL
,
NULL
,
octetStringMatch
,
generalizedTimeIndexer
,
generalizedTimeFilter
,
NULL
},
{
"( 1.3.6.1.4.1.4203.666.11.2.3 NAME 'CSNOrderingMatch' "
"SYNTAX 1.3.6.1.4.1.4203.666.11.2.1 )"
,
SLAP_MR_HIDE
|
SLAP_MR_ORDERING
|
SLAP_MR_ORDERED_INDEX
,
NULL
,
NULL
,
NULL
,
octetStringOrderingMatch
,
NULL
,
NULL
,
"CSNMatch"
},
{
NULL
,
SLAP_MR_NONE
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
}
...
...
servers/slapd/schema_prep.c
View file @
1e577505
...
...
@@ -547,9 +547,9 @@ static struct slap_schema_ad_map {
offsetof
(
struct
slap_internal_schema
,
si_ad_entryUUID
)
},
{
"entryCSN"
,
"( 1.3.6.1.4.1.4203.666.1.7 NAME 'entryCSN' "
"DESC 'change sequence number of the entry content' "
"EQUALITY
octetString
Match "
"ORDERING
octetString
OrderingMatch "
"SYNTAX 1.3.6.1.4.1.
1466.115.121.1.40
{64} "
"EQUALITY
CSN
Match "
"ORDERING
CSN
OrderingMatch "
"SYNTAX 1.3.6.1.4.1.
4203.666.11.2.1
{64} "
"SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation )"
,
NULL
,
SLAP_AT_HIDE
,
NULL
,
NULL
,
...
...
@@ -557,9 +557,9 @@ static struct slap_schema_ad_map {
offsetof
(
struct
slap_internal_schema
,
si_ad_entryCSN
)
},
{
"namingCSN"
,
"( 1.3.6.1.4.1.4203.666.1.13 NAME 'namingCSN' "
"DESC 'change sequence number of the entry naming (RDN)' "
"EQUALITY
octetString
Match "
"ORDERING
octetString
OrderingMatch "
"SYNTAX 1.3.6.1.4.1.
1466.115.121.1.40
{64} "
"EQUALITY
CSN
Match "
"ORDERING
CSN
OrderingMatch "
"SYNTAX 1.3.6.1.4.1.
4203.666.11.2.1
{64} "
"SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation )"
,
NULL
,
SLAP_AT_HIDE
,
NULL
,
NULL
,
...
...
@@ -593,9 +593,9 @@ static struct slap_schema_ad_map {
{
"contextCSN"
,
"( 1.3.6.1.4.1.4203.666.1.25 "
"NAME 'contextCSN' "
"DESC 'the largest committed CSN of a context' "
"EQUALITY
octetString
Match "
"ORDERING
octetString
OrderingMatch "
"SYNTAX 1.3.6.1.4.1.
1466.115.121.1.40
"
"EQUALITY
CSN
Match "
"ORDERING
CSN
OrderingMatch "
"SYNTAX 1.3.6.1.4.1.
4203.666.11.2.1{64}
"
"SINGLE-VALUE NO-USER-MODIFICATION USAGE dSAOperation )"
,
NULL
,
SLAP_AT_HIDE
,
NULL
,
NULL
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment