forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0238a50
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 parent5ee8f0f commit0238a50
1 file changed
+17
-9
lines changedLines changed: 17 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
| 106 | + | |
106 | 107 |
| |
107 | 108 |
| |
108 | 109 |
| |
| |||
2106 | 2107 |
| |
2107 | 2108 |
| |
2108 | 2109 |
| |
2109 |
| - | |
| 2110 | + | |
| 2111 | + | |
2110 | 2112 |
| |
| 2113 | + | |
2111 | 2114 |
| |
2112 | 2115 |
| |
2113 | 2116 |
| |
| |||
2166 | 2169 |
| |
2167 | 2170 |
| |
2168 | 2171 |
| |
| 2172 | + | |
2169 | 2173 |
| |
2170 | 2174 |
| |
2171 | 2175 |
| |
| |||
2251 | 2255 |
| |
2252 | 2256 |
| |
2253 | 2257 |
| |
2254 |
| - | |
2255 |
| - | |
2256 |
| - | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
2257 | 2263 |
| |
2258 |
| - | |
| 2264 | + | |
2259 | 2265 |
| |
2260 | 2266 |
| |
2261 | 2267 |
| |
2262 | 2268 |
| |
2263 | 2269 |
| |
2264 | 2270 |
| |
2265 |
| - | |
2266 |
| - | |
2267 |
| - | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
2268 | 2276 |
| |
2269 |
| - | |
| 2277 | + | |
2270 | 2278 |
| |
2271 | 2279 |
| |
2272 | 2280 |
| |
|
0 commit comments
Comments
(0)