Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ADComparisonAttribute only Supports Single Value AD attributes


Symptoms

ADComparison predicate could only support single value attribute which caused the following scenario not possible: "mail is only allowed between the sender and a recipient if they share a common entry in a specified AD attribute"

↑ Back to the top


Resolution

ADComparisonAttribute can now support multi value AD attributes

↑ Back to the top


More Information

A design change to support multi value attribute in ADComparison predicate has been implemented.

The attribute property is split into separate values (delimited by semi-colons) and placed into an array. A string comparison is done on each value in one array with each value in the other array. The comparison is case-insensitive. It is possible to have an array with length = 1, if there is no delimiter.

The return value is true if any value in the first array matches any value in the second array.

Examples of comparison scenarios with return results:

Sender’s customattribute1Recipient’s customattribute1 Result
"value1;value2" "value3;value4" Not equal because none of the strings match.
"value1;value2" "VALUE2;VALUE3"Equal. Comparisons are case insensitive.
"value1;value2" "value1"Equal. It is still valid to have no delimiter.
"value1" "value1"Equal. It is still valid to have no delimiter in either for this case.
"value1;value2" "value2;value3"Equal, value2 is a match.

Notes:


  • No new exception generated by this change.
  • Since the semi-colon is used as a delimiter, it is possible to obtain unintended results if there are properties that use semi-colons that aren’t intended as delimiters. If the attribute contains a semi-colon, it will be split into separate strings, each of which will be compared individually.
  • Custom attribute is limited by its overall size. It can accommodate up to 2K characters.
  • The following parameters are not affected by this change:
    • ADComparisonOperator
    • ExceptIfADComparisonAttribute
    • ExceptIfRecipientADAttributeMatchesPattern



↑ Back to the top


Keywords: kbsurveynew, kbexpertisebeginner, kb

↑ Back to the top

Article Info
Article ID : 2460090
Revision : 1
Created on : 1/7/2017
Published on : 11/17/2010
Exists online : False
Views : 126