[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Help with assertion control
- To: openldap-technical@openldap.org
- Subject: Re: Help with assertion control
- From: Ivan Nejgebauer <ian@uns.ac.rs>
- Date: Tue, 16 May 2017 15:15:13 +0200
- In-reply-to: <CAEVtzZP8UeOCo7M3R8ktqUzob+WNZYGkYnb_=Q9nsZDkAeYGsw@mail.gmail.com>
- References: <CAEVtzZP8UeOCo7M3R8ktqUzob+WNZYGkYnb_=Q9nsZDkAeYGsw@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
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