mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
initdb: Remove support for crypt authentication method
This was removed from the backend a long time ago, but initdb still thought that it was OK to use in the -A option.
This commit is contained in:
@ -2675,7 +2675,6 @@ main(int argc, char *argv[])
|
|||||||
strcmp(authmethod, "pam") != 0 &&
|
strcmp(authmethod, "pam") != 0 &&
|
||||||
strncmp(authmethod, "pam ", 4) != 0 && /* pam with space = param */
|
strncmp(authmethod, "pam ", 4) != 0 && /* pam with space = param */
|
||||||
#endif
|
#endif
|
||||||
strcmp(authmethod, "crypt") != 0 &&
|
|
||||||
strcmp(authmethod, "password") != 0
|
strcmp(authmethod, "password") != 0
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -2690,7 +2689,6 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((strcmp(authmethod, "md5") == 0 ||
|
if ((strcmp(authmethod, "md5") == 0 ||
|
||||||
strcmp(authmethod, "crypt") == 0 ||
|
|
||||||
strcmp(authmethod, "password") == 0) &&
|
strcmp(authmethod, "password") == 0) &&
|
||||||
!(pwprompt || pwfilename))
|
!(pwprompt || pwfilename))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user