OPENDJ-1508 the SDK dos not allow for the "*" character with the return attribute:
The following exception will be thrown if the above is used:
OPENDJ-1508 Allow "=" in malformed attribute options
The illegal character used by AD is "=". It is not permitted in the definition of <keychar> in RFC 4512 section 1.4.
https://tools.ietf.org/html/rfc4512 also shows "*" as an illegal character.
See the following Microsoft doc: