On Wed, Sep 1, 2021 at 11:43 AM Jacob Champion <pchamp...@vmware.com> wrote:
> On Wed, 2021-09-01 at 15:42 +0000, Jacob Champion wrote: > > The cfbot found a failure in postgres_fdw, which I completely neglected > > in my design. I think the desired functionality should be to allow the > > ldapuser connection option during CREATE USER MAPPING but not CREATE > > SERVER. > > Fixed in v2, attached. > > --Jacob > Hi, + if (strcmp(val, "1") == 0) + hbaline->ldap_map_dn = true; + else + hbaline->ldap_map_dn = false; The above can be shortened as: hbaline->ldap_map_dn = strcmp(val, "1") == 0; Cheers