Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit288b428

Browse files
committed
Raise fixed token-length limit in hba.c.
Historically, hba.c limited tokens in the authentication configurationfiles (pg_hba.conf and pg_ident.conf) to less than 256 bytes. We haveseen a few reports of this limit causing problems; notably, formoderately-complex LDAP configurations. Increase the limit to 10240bytes as a low-risk stop-gap solution.In v13 and earlier, this also requires raising MAX_LINE, the limiton overall line length. I'm hesitant to make this code consumetoo much stack space, so I only raised that to 20480 bytes.Discussion:https://postgr.es/m/1588937.1690221208@sss.pgh.pa.us
1 parent291c025 commit288b428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/libpq/hba.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
#endif
5454

5555

56-
#defineMAX_TOKEN256
57-
#defineMAX_LINE8192
56+
#defineMAX_TOKEN10240
57+
#defineMAX_LINE20480
5858

5959
/* callback data for check_network_callback */
6060
typedefstructcheck_network_data

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp