Re: [HACKERS] scram and \password
От
Tom Lane
Тема
Re: [HACKERS] scram and \password
Дата
Msg-id
25550.1493144999@sss.pgh.pa.us
Ответ на
Re: [HACKERS] scram and \password (Robert Haas)
Список
Дерево обсуждения
[HACKERS] scram and \password Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] scram and \password Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] scram and \password Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: scram and \password Robert Haas <robertmhaas@gmail.com>
Re: scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Noah Misch <noah@leadboat.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Noah Misch <noah@leadboat.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Noah Misch <noah@leadboat.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Magnus Hagander <magnus@hagander.net>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] scram and \password Magnus Hagander <magnus@hagander.net>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] scram and \password Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] scram and \password Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] scram and \password Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] scram and \password Joe Conway <mail@joeconway.com>
Re: [HACKERS] scram and \password Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] scram and \password Jeff Janes <jeff.janes@gmail.com>
Robert Haas writes: > On Tue, Apr 25, 2017 at 11:26 AM, Heikki Linnakangas wrote: >> A) Have PQencryptPassword() return an md5 hash. >> >> B) Have PQencryptPassword() return a SCRAM verifier >> >> C) Have PQencryptPassword() return a SCRAM verifier if connected to a v10 >> server, and an md5 hash otherwise. This is tricky, because PQencryptPassword >> doesn't take a PGconn argument. It could behave like PQescapeString() does, >> and choose md5/scram depending on the server version of the last connection >> that was established. > I vote for A - leave PQencryptPassword() as-is, and deprecate it. > Tell people to use the new function going forward. +1. I never much liked that magic behavior of PQescapeString, and don't think we should replicate it elsewhere, so I definitely don't like (C). And I don't think we can do (B) because that will break the functionality altogether when talking to an older server. That leaves (A) plus invent a new function. regards, tom lane
В списке pgsql-hackers по дате отправления
От: Finnerty, Jim
Дата: