Re: LDAP: bugfix and deprecated OpenLDAP API

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: LDAP: bugfix and deprecated OpenLDAP API
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17C06CDE@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: LDAP: bugfix and deprecated OpenLDAP API  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: LDAP: bugfix and deprecated OpenLDAP API  (Abhijit Menon-Sen <ams@2ndQuadrant.com>)
Список pgsql-hackers
Magnus Hagander wrote:
>> The patch should still be good, but if we keep the deprecated
>> OpenLDAP API, it might be more consistent to use ldap_simple_bind_s
>> instead of ldap_sasl_bind_s.
>>
>> If you agree, I'll change that.
> 
> Sorry, you got this one in just as my vacation started.
> 
> Yes, I agree with that. So please do.

Here is the updated patch.

To repeat: this fixes a bug in LDAP connection parameter lookup
if you want to have failover with more than one LDAP server:
the timeout that should ensure that failover does not take too long
did not work if there are TCP connection problems; in that case
the connection attempt would hang until network timeout
before failing over to the second LDAP server.

This should be backpatched as far as supported (8.4).

Yours,
Laurenz Albe

Вложения

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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Feature Request on Extensions
Следующее
От: Andres Freund
Дата:
Сообщение: GetTransactionSnapshot() in enum.c