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
48f72b68
Commit
48f72b68
authored
Aug 06, 2002
by
Kurt Zeilenga
Browse files
Update string commment with examples.
parent
82540c5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
48f72b68
...
...
@@ -29,22 +29,33 @@ Directory String -
NumericString
In ASN.1, numeric string is just a string of digits and spaces and
could be empty. However, in X.500, all attribute values of numeric
string carry a non-empty constraint. Unfornately, some assertion
values are don't carry this constraint (but its unclear how such
an assertion could ever be true). In LDAP, there is one syntax
(numericString) not two (numericString with constraint, numericString
without constraint). This should be treated as numericString with
non-empty constraint.
string carry a non-empty constraint. For example:
internationalISDNNumber ATTRIBUTE ::= {
WITH SYNTAX InternationalISDNNumber
EQUALITY MATCHING RULE numericStringMatch
SUBSTRINGS MATCHING RULE numericStringSubstringsMatch
ID id-at-internationalISDNNumber }
InternationalISDNNumber ::= NumericString (SIZE(1..ub-international-isdn-number))
Unfornately, some assertion values are don't carry the same constraint
(but its unclear how such an assertion could ever be true). In LDAP,
there is one syntax (numericString) not two (numericString with constraint,
numericString without constraint). This should be treated as numericString
with non-empty constraint. Note that while someone may have no
ISDN number, there are no ISDN numbers which are zero length.
In matching, spaces are ignored.
PrintableString
In ASN.1, Printable string is just a string of printable characters and
can be empty. In X.500, semantics much like NumericString excepting
uses insignificant space handling instead of ingore all spaces.
can be empty. In X.500, semantics much like NumericString (see serialNumber
for a like example) excepting uses insignificant space handling instead of
ignore all spaces.
IA5String
Basically same as PrintableString.
Basically same as PrintableString. There are no examples in X.500, but
same logic applies. So we require them to be non-empty as well.
****/
...
...
Write
Preview
Markdown
is supported
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