| From: | Zhihong Yu <zyu(at)yugabyte(dot)com> |
|---|---|
| To: | Jacob Champion <pchampion(at)vmware(dot)com> |
| Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: [PATCH] Support pg_ident mapping for LDAP |
| Date: | 2021-09-01 21:20:39 |
| Message-ID: | CALNJ-vTrUoxeHnGP7rZLegrHB_0u42vkK2+wgp8drFbAkwgMYQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Sep 1, 2021 at 1:56 PM Jacob Champion <pchampion(at)vmware(dot)com> wrote:
> On Wed, 2021-09-01 at 12:59 -0700, Zhihong Yu wrote:
> > + 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;
>
> I usually prefer simplifying those conditionals, too, but in this case
> I think it'd be a pretty big departure from the existing style. See for
> example the handling of include_realm and compat_realm just after this
> hunk.
>
> --Jacob
>
Hi,
I looked at v2-Allow-user-name-mapping-with-LDAP.patch
and src/backend/postmaster/postmaster.c in master branch but didn't find
what you mentioned.
I still think my recommendation is concise.
Cheers
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rahila Syed | 2021-09-01 21:21:41 | Re: Column Filtering in Logical Replication |
| Previous Message | Jacob Champion | 2021-09-01 20:56:21 | Re: [PATCH] Support pg_ident mapping for LDAP |