-
-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Since this is a HardcodedFilter, MMS needs to explicitly encode the value of userDn for search filter special characters, e.g. \, (, ). This is typically handled for the developer in the other Filter subtypes, but is not in HardcodedFilter as implied by the name.
Example:
userDn = "cn=Smith\, Jane,ou=People,dc=example,dc=com" currently results in a filter = (&(uniqueMember=cn=Smith\, Jane,ou=People,dc=example,dc=com)(|(cn=everyone)(cn=The Smiths)...)). This value of filter erroneously results in a null set ([]) even when Smith, Jane belongs to The Smiths group. The desired filter = (&(uniqueMember=cn=Smith\5c, Jane,ou=People,dc=example,dc=com)(|(cn=everyone)(cn=The Smiths)...)) - note the \5c escaping which results in[The Smith] when Smith, Jane belongs to The Smiths group.