@@ -168,37 +168,37 @@ sub test_conn
168
168
" user=scram_role require_auth=gss" ,
169
169
" GSS authentication required, fails with trust auth" ,
170
170
expected_stderr =>
171
- qr /auth method "gss" requirement failed: server did not complete authentication/
171
+ qr /authentication method requirement "gss" failed: server did not complete authentication/
172
172
);
173
173
$node -> connect_fails(
174
174
" user=scram_role require_auth=sspi" ,
175
175
" SSPI authentication required, fails with trust auth" ,
176
176
expected_stderr =>
177
- qr /auth method "sspi" requirement failed: server did not complete authentication/
177
+ qr /authentication method requirement "sspi" failed: server did not complete authentication/
178
178
);
179
179
$node -> connect_fails(
180
180
" user=scram_role require_auth=password" ,
181
181
" password authentication required, fails with trust auth" ,
182
182
expected_stderr =>
183
- qr /auth method "password" requirement failed: server did not complete authentication/
183
+ qr /authentication method requirement "password" failed: server did not complete authentication/
184
184
);
185
185
$node -> connect_fails(
186
186
" user=scram_role require_auth=md5" ,
187
187
" MD5 authentication required, fails with trust auth" ,
188
188
expected_stderr =>
189
- qr /auth method "md5" requirement failed: server did not complete authentication/
189
+ qr /authentication method requirement "md5" failed: server did not complete authentication/
190
190
);
191
191
$node -> connect_fails(
192
192
" user=scram_role require_auth=scram-sha-256" ,
193
193
" SCRAM authentication required, fails with trust auth" ,
194
194
expected_stderr =>
195
- qr /auth method "scram-sha-256" requirement failed: server did not complete authentication/
195
+ qr /authentication method requirement "scram-sha-256" failed: server did not complete authentication/
196
196
);
197
197
$node -> connect_fails(
198
198
" user=scram_role require_auth=password,scram-sha-256" ,
199
199
" password and SCRAM authentication required, fails with trust auth" ,
200
200
expected_stderr =>
201
- qr /auth method "password,scram-sha-256" requirement failed: server did not complete authentication/
201
+ qr /authentication method requirement "password,scram-sha-256" failed: server did not complete authentication/
202
202
);
203
203
204
204
# These negative patterns of require_auth should succeed.
@@ -289,19 +289,19 @@ sub test_conn
289
289
" user=scram_role require_auth=md5" ,
290
290
" md5 authentication required, fails with password auth" ,
291
291
expected_stderr =>
292
- qr /auth method "md5" requirement failed: server requested a cleartext password/
292
+ qr /authentication method requirement "md5" failed: server requested a cleartext password/
293
293
);
294
294
$node -> connect_fails(
295
295
" user=scram_role require_auth=scram-sha-256" ,
296
296
" SCRAM authentication required, fails with password auth" ,
297
297
expected_stderr =>
298
- qr /auth method "scram-sha-256" requirement failed: server requested a cleartext password/
298
+ qr /authentication method requirement "scram-sha-256" failed: server requested a cleartext password/
299
299
);
300
300
$node -> connect_fails(
301
301
" user=scram_role require_auth=none" ,
302
302
" all authentication forbidden, fails with password auth" ,
303
303
expected_stderr =>
304
- qr /auth method "none" requirement failed: server requested a cleartext password/
304
+ qr /authentication method requirement "none" failed: server requested a cleartext password/
305
305
);
306
306
307
307
# Disallowing password authentication fails, even if requested by server.
@@ -313,7 +313,7 @@ sub test_conn
313
313
" user=scram_role require_auth=!password,!md5,!scram-sha-256" ,
314
314
" multiple authentication types forbidden, fails with password auth" ,
315
315
expected_stderr =>
316
- qr / method "!password,!md5,!scram-sha-256" requirement failed: server requested a cleartext password/
316
+ qr / method requirement "!password,!md5,!scram-sha-256" failed: server requested a cleartext password/
317
317
);
318
318
319
319
# For "scram-sha-256" method, user "scram_role" should be able to connect.
@@ -352,19 +352,19 @@ sub test_conn
352
352
" user=scram_role require_auth=password" ,
353
353
" password authentication required, fails with SCRAM auth" ,
354
354
expected_stderr =>
355
- qr /auth method "password" requirement failed: server requested SASL authentication/
355
+ qr /authentication method requirement "password" failed: server requested SASL authentication/
356
356
);
357
357
$node -> connect_fails(
358
358
" user=scram_role require_auth=md5" ,
359
359
" md5 authentication required, fails with SCRAM auth" ,
360
360
expected_stderr =>
361
- qr /auth method "md5" requirement failed: server requested SASL authentication/
361
+ qr /authentication method requirement "md5" failed: server requested SASL authentication/
362
362
);
363
363
$node -> connect_fails(
364
364
" user=scram_role require_auth=none" ,
365
365
" all authentication forbidden, fails with SCRAM auth" ,
366
366
expected_stderr =>
367
- qr /auth method "none" requirement failed: server requested SASL authentication/
367
+ qr /authentication method requirement "none" failed: server requested SASL authentication/
368
368
);
369
369
370
370
# Authentication fails if SCRAM authentication is forbidden.
@@ -407,33 +407,33 @@ sub test_conn
407
407
" user=md5_role require_auth=password" ,
408
408
" password authentication required, fails with MD5 auth" ,
409
409
expected_stderr =>
410
- qr /auth method "password" requirement failed: server requested a hashed password/
410
+ qr /authentication method requirement "password" failed: server requested a hashed password/
411
411
);
412
412
$node -> connect_fails(
413
413
" user=md5_role require_auth=scram-sha-256" ,
414
414
" SCRAM authentication required, fails with MD5 auth" ,
415
415
expected_stderr =>
416
- qr /auth method "scram-sha-256" requirement failed: server requested a hashed password/
416
+ qr /authentication method requirement "scram-sha-256" failed: server requested a hashed password/
417
417
);
418
418
$node -> connect_fails(
419
419
" user=md5_role require_auth=none" ,
420
420
" all authentication types forbidden, fails with MD5 auth" ,
421
421
expected_stderr =>
422
- qr /auth method "none" requirement failed: server requested a hashed password/
422
+ qr /authentication method requirement "none" failed: server requested a hashed password/
423
423
);
424
424
425
425
# Authentication fails if MD5 is forbidden.
426
426
$node -> connect_fails(
427
427
" user=md5_role require_auth=!md5" ,
428
428
" password authentication forbidden, fails with MD5 auth" ,
429
429
expected_stderr =>
430
- qr /auth method "!md5" requirement failed: server requested a hashed password/
430
+ qr /authentication method requirement "!md5" failed: server requested a hashed password/
431
431
);
432
432
$node -> connect_fails(
433
433
" user=md5_role require_auth=!password,!md5,!scram-sha-256" ,
434
434
" multiple authentication types forbidden, fails with MD5 auth" ,
435
435
expected_stderr =>
436
- qr /auth method "!password,!md5,!scram-sha-256" requirement failed: server requested a hashed password/
436
+ qr /authentication method requirement "!password,!md5,!scram-sha-256" failed: server requested a hashed password/
437
437
);
438
438
439
439
# Test SYSTEM_USER <> NULL with parallel workers.
0 commit comments