Re: PG and login

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: PG and login
Дата
Msg-id Pine.LNX.4.21.0011052318440.780-100000@peter.localdomain
обсуждение исходный текст
Ответ на PG and login  ("Jarmo Paavilainen" <netletter@comder.com>)
Ответы SV: PG and login  ("Jarmo Paavilainen" <jarmo@comder.com>)
Список pgsql-general
Jarmo Paavilainen writes:

> Ive located where the pg_shadow compare happens, but If I give a wrong
> username it will not even get that far. "pg_pwd" is never created so I
> assume its not used. So how in h*** does pg do it? And where? (which
> function?, file? mechanism?).

Of interest would be

src/backend/libpq/auth.c: checkPassword()
                  password.c
                  crypt.c

The compare always happens against pg_pwd, which gets created everytime
you create or alter a user with password.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: "Jarmo Paavilainen"
Дата:
Сообщение: PG and login
Следующее
От: "Michael Miyabara-McCaskey"
Дата:
Сообщение: Expectations of MEM requirements for a DB with large tables.