On Thu, Feb 6, 2020 at 8:56 PM Viktor Dukhovni <postfix-us...@dukhovni.org> wrote: > > On Thu, Feb 06, 2020 at 08:44:36AM +0100, Luca Fornasari wrote: > > > The idea is to use a pipemap of LDAP queries; the first LDAP query > > [...] > > Since msExchMasterAccountSid is an OctetStream, I am wondering if this > > will work ... does anyone already have experience on this? > > In Postfix, table lookup keys and result data are NUL-terminated > C strings. So binary keys and values are not possible. > > const char *dict_lookup(dict_name, member) > const char *dict_name; > const char *member; > > Internally, the Postfix LDAP table assumes that all attributes returned > in an LDAP query are NUL-terminated C-strings. OpenLDAP appends a final > NUL even to binary data, but we don't check for absence of internal > NULs. > > Also, the Postfix LDAP table folds keys to lower-case by default, and > IIRC you don't generally get to disable that when defining tables. > > Bottom-line. Sorry, no non-textual keys or values. > > -- > Viktor.
Thanks Victor for your kind and detailed reply ... I should have read the source code before asking. Luca