Printable String

Is used in attributes whose values are printable strings as defined in CCITT X.208. The case (upper or lower) is significant when comparing printable strings.

Syntax ID

#define SYN_PR_STRING 4

LDAP Name

Printable String

ASN.1 ID

1.3.6.1.4.1.1466.115.121.1.44

API Data Structure

typedef pnstr8 PR_String_T;

Transfer Format

uint32    Length 
unicode   String

Matching Rules

Remarks

For help in understanding the syntax definition template, see Reading Syntax Definitions.

Attributes using this syntax can set size limits.

The following characters are in the printable string character set:

A..Z

upper case alphabetic characters

a..z

lower case alphabetic characters

0..9

digits

 

space character

apostrophe

"

quotation

(

left parenthesis

)

right parenthesis

+

plus sign

,

comma

-

hyphen

.

full stop (period)

/

solidus (slash)

:

colon

=

equal sign

?

question mark

Two printable strings match for equality when they are the same length and their corresponding characters are identical. Case (upper or lower) is significant when comparing printable strings. For example, as printable strings, “Dundee” and “DUNDEE” do not match.

When comparing printable strings, the following spaces are not significant:

  • Leading spaces (precede the first printing character)

  • Trailing spaces (follow the last printing character)

  • Multiple consecutive internal spaces (equivalent to a single space character)

    In matching attributes that conform to this syntax, eDirectory omits those spaces that are not significant (as defined above). eDirectory stores insignificant spaces with the attribute value.

Used In