Adding constraints to attribute types - PingDirectory - 9.3

PingDirectory 9.3

bundle
pingdirectory-93
ft:publication_title
PingDirectory 9.3
Product_Version_ce
PingDirectory 9.3 (Latest)
category
Product
pd-93
pingdirectory
ContentType_ce

The PingDirectory server provides attribute type extensions that constrain the values for the associated attribute using the DirectoryString attribute syntax.

To constrain the values for an attribute:

Use the DirectoryString attribute syntax.

The following example schema definition includes two attributeType definitions for myAttr1 and myAttr2:

  • The first definition constrains the values for the attribute myAttr1 to ’foo’, ’bar’, and ’baz’.
  • The second definition constrains the minimum allowable length for myAttr2 to 1 and the maximum allowable length to 5.
attributeTypes: (1.2.3.4 
  NAME ’myAttr1’ 
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
  X-ALLOWED-VALUES ( ’foo’ ’bar’ ’baz’ ))
attributeTypes: ( 1.2.3.5 
  NAME ’myAttr2’ 
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
  X-MIN-VALUE-LENGTH ’1’ 
  X-MAX-VALUE-LENGTH ’5’ )