On 15.05.2017. 18:49, Sudhindra M R wrote:
std::string keyy = "(&(cn=Manager)(givenName=Sudhi))"; struct berval * berEncodedFilter = ber_bvstr(keyy.c_str());
You're encoding the string representation of a filter, and the spec calls for directly encoding the Filter ASN.1 structure. I don't remember offhand if the conversion function is available through the public interface or not.
Regards,