Login with LDAP authentication takes 5 seconds

Поиск
Список
Период
Сортировка
От Andreas Schmid
Тема Login with LDAP authentication takes 5 seconds
Дата
Msg-id CAKeZVDov+j2ZfUuSXNN-98_Nn_kAXr2e7UmKHhFNODHuEnUwUg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Login with LDAP authentication takes 5 seconds  (Laurenz Albe <laurenz.albe@cybertec.at>)
Re: Login with LDAP authentication takes 5 seconds  (Jeff Janes <jeff.janes@gmail.com>)
Re: Login with LDAP authentication takes 5 seconds  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-general
Hi,

I configured my PostgreSQL 10 DB on Debian 9.2 with LDAP authentication (simple bind mode). While this basically works, it has the strange effect that the first login with psql takes around 5 seconds. When I reconnect within 60 seconds, the login completes immediately.

The LDAP server is behind a firewall. So for a test, in pg_hba.conf I put the LDAP servers IP address instead of its DNS name (for parameter ldapserver). Like that, all logins complete immediately. But in general I prefer specifying the DNS name rather than the IP.

When I checked on the DB machine with the following commands
host my.ldap.server.org
both always returned the host name and IP address of the LDAP server immediately.

Does anyone of you have an explanation for this, or a hint, where I could do some further investigation?

Thanks,
Andy

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

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: case statement within insert
Следующее
От: Moreno Andreo
Дата:
Сообщение: pgdg-keyring (or apt-key) failure on fresh 9.6 install