forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf9bd3b6
committed
Avoid logging complaints about abandoned connections when using PAM.
For a long time (since commitaed378e) we have had a policy to lognothing about a connection if the client disconnects when challengedfor a password. This is because libpq-using clients will typicallydo that, and then come back for a new connection attempt once they'vecollected a password from their user, so that logging the abandonedconnection attempt will just result in log spam. However, this didnot work well for PAM authentication: the bottom-level functionpam_passwd_conv_proc() was on board with it, but we logged messagesat higher levels anyway, for lack of any reporting mechanism.Add a flag and tweak the logic so that the case is silent, as it isfor other password-using auth mechanisms.Per complaint from Yoann La Cancellera. It's been like this for awhile,so back-patch to all supported branches.Discussion:https://postgr.es/m/CACP=ajbrFFYUrLyJBLV8=q+eNCapa1xDEyvXhMoYrNphs-xqPw@mail.gmail.com1 parent7918641 commitf9bd3b6
1 file changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
2087 | 2088 | | |
2088 | 2089 | | |
2089 | 2090 | | |
2090 | | - | |
| 2091 | + | |
| 2092 | + | |
2091 | 2093 | | |
| 2094 | + | |
2092 | 2095 | | |
2093 | 2096 | | |
2094 | 2097 | | |
| |||
2147 | 2150 | | |
2148 | 2151 | | |
2149 | 2152 | | |
| 2153 | + | |
2150 | 2154 | | |
2151 | 2155 | | |
2152 | 2156 | | |
| |||
2232 | 2236 | | |
2233 | 2237 | | |
2234 | 2238 | | |
2235 | | - | |
2236 | | - | |
2237 | | - | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
2238 | 2244 | | |
2239 | | - | |
| 2245 | + | |
2240 | 2246 | | |
2241 | 2247 | | |
2242 | 2248 | | |
2243 | 2249 | | |
2244 | 2250 | | |
2245 | 2251 | | |
2246 | | - | |
2247 | | - | |
2248 | | - | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
2249 | 2257 | | |
2250 | | - | |
| 2258 | + | |
2251 | 2259 | | |
2252 | 2260 | | |
2253 | 2261 | | |
| |||
0 commit comments
Comments
(0)