Adding constraints to attribute types
About this task
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:
Steps
-
Use the
DirectoryStringattribute syntax.Example:
The following example schema definition includes two
attributeTypedefinitions formyAttr1andmyAttr2:-
The first definition constrains the values for the attribute
myAttr1to'foo','bar', and'baz'. -
The second definition constrains the minimum allowable length for
myAttr2to1and the maximum allowable length to5.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' )
-