[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Help with assertion control



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,
--
Ivan Nejgebauer                                         +381 21 485 2025
Glavni sistem inženjer                                     ian@uns.ac.rs
CIT-UNS/ARMUNS                                      http://www.uns.ac.rs
Univerzitet u Novom Sadu $ Dr Zorana Đinđića 1 $ 21000 Novi Sad $ Srbija