forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit97ddc47
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 parent2bfe015 commit97ddc47
1 file changed
+17
-9
lines changedLines changed: 17 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
| 108 | + | |
108 | 109 |
| |
109 | 110 |
| |
110 | 111 |
| |
| |||
2110 | 2111 |
| |
2111 | 2112 |
| |
2112 | 2113 |
| |
2113 |
| - | |
| 2114 | + | |
| 2115 | + | |
2114 | 2116 |
| |
| 2117 | + | |
2115 | 2118 |
| |
2116 | 2119 |
| |
2117 | 2120 |
| |
| |||
2170 | 2173 |
| |
2171 | 2174 |
| |
2172 | 2175 |
| |
| 2176 | + | |
2173 | 2177 |
| |
2174 | 2178 |
| |
2175 | 2179 |
| |
| |||
2255 | 2259 |
| |
2256 | 2260 |
| |
2257 | 2261 |
| |
2258 |
| - | |
2259 |
| - | |
2260 |
| - | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
2261 | 2267 |
| |
2262 |
| - | |
| 2268 | + | |
2263 | 2269 |
| |
2264 | 2270 |
| |
2265 | 2271 |
| |
2266 | 2272 |
| |
2267 | 2273 |
| |
2268 | 2274 |
| |
2269 |
| - | |
2270 |
| - | |
2271 |
| - | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
2272 | 2280 |
| |
2273 |
| - | |
| 2281 | + | |
2274 | 2282 |
| |
2275 | 2283 |
| |
2276 | 2284 |
| |
|
0 commit comments
Comments
(0)