29 .
name =
"passwordcheck",
78 const char *logdetail =
NULL;
83 errmsg(
"password must not equal user name")));
103 errmsg(
"password is too short"),
104 errdetail(
"password must be at least \"passwordcheck.min_password_length\" (%d) bytes long",
111 errmsg(
"password must not contain user name")));
130 errmsg(
"password must contain both letters and nonletters")));
137 errmsg(
"password is easily cracked"),
153 "Minimum allowed password length.",
int plain_crypt_verify(const char *role, const char *shadow_pass, const char *client_pass, const char **logdetail)
@ PASSWORD_TYPE_PLAINTEXT
int errdetail(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
int errdetail_log(const char *fmt,...)
#define ereport(elevel,...)
#define PG_MODULE_MAGIC_EXT(...)
void MarkGUCPrefixReserved(const char *className)
void DefineCustomIntVariable(const char *name, const char *short_desc, const char *long_desc, int *valueAddr, int bootValue, int minValue, int maxValue, GucContext context, int flags, GucIntCheckHook check_hook, GucIntAssignHook assign_hook, GucShowHook show_hook)
static int min_password_length
static void check_password(const char *username, const char *shadow_pass, PasswordType password_type, Datum validuntil_time, bool validuntil_null)
static check_password_hook_type prev_check_password_hook
check_password_hook_type check_password_hook
void(* check_password_hook_type)(const char *username, const char *shadow_pass, PasswordType password_type, Datum validuntil_time, bool validuntil_null)