Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid
Дата
Msg-id A75E69B9-436D-409B-BBB8-E94076146E5D@yesql.se
обсуждение исходный текст
Ответ на Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid  ("Jingxian Li" <aqktjcm@qq.com>)
Ответы Re: [PATCH] Fix bug when calling strncmp in check_authmethod_valid
Список pgsql-hackers
> On 7 May 2024, at 06:46, Jingxian Li <aqktjcm@qq.com> wrote:

>> But, since it's been broken in all supported versions of postgres and has
>> AFAICT never been documented to exist, should we fix it or just remove it?  We
>> don't support auth-options for any other methods, like clientcert to cert for
>> example.  If we fix it we should also document that it works IMHO.
>
> You mentioned that auth-options are not supported for auth methods except pam,
> but I found that  some methods (such as  ldap and radius etc.) also requires aut-options,
> and there are no corresponding auth methods ending with space (such as  "ldap " and
> radius ") present in auth_methods_host and auth_methods_local arrays.

Correct, only pam and ident were ever supported (yet not documented) and ident
was removed a long time ago.

Searching the archives I was unable to find any complaints, and this has been
broken for the entire window of supported releases, so I propose we remove it
as per the attached patch.  If anyone is keen on making this work again for all
the types where it makes sense, it can be resurrected (probably with a better
implementation).

Any objections to fixing this in 17 by removing it? (cc:ing Michael from the RMT)

--
Daniel Gustafsson


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andy Fan
Дата:
Сообщение: Re: Parallel CREATE INDEX for GIN indexes
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands