I got interesting business case when I have to validate and "chop" data according to the size of the attribute defined in the schema.
For example, Custom attribute defined as "Case Ignore String", [0-9].
Source system doesn't have a strict size definition on own end and we got situations when "long" string supposed to go to attribute with size definition [0-3].
I did a "temporary" solution by storing this info in the mapping table, but it required extra manual maintenance of this info.
We already have this info in the schema definition (book of record).
I would like to get information about the attribute "size" from schema directly from the policy.
One of the ways, that I can see: read schema thru LDAP and parse it.
May somebody already did a similar task and have "ready-to-use" code?