Ticket #604 - Required attribute not checked during search operation
Bug description: If attribute list passed from the ldapsearch
contains a string with a space and following characters, the
same string is returned to the client. E.g.,
ldapsearch -b <basedn> "(filter)" "sn garbage"
returns
dn: <matched dn>
sn garbage: <sn>
Fix description: This patch introduces a config parameter
nsslapd-search-return-original-type-switch. It takes on | off.
By default, it is off. When it is off, search returns the
attribute from which a space and following characters are
chopped.
dn: <matched dn>
sn: <sn>
If it is on, it respects the current behaviour and returns
the original attribute string.
https://fedorahosted.org/389/ticket/604
Reviewed by Rich (Thank you!!)