Index | Thread | Search

From:
brad@seethishat.com
Subject:
pwd_check.c
To:
tech@openbsd.org
Date:
Mon, 05 May 2025 17:19:39 +0000

Download raw body.

Thread
  • brad@seethishat.com:

    pwd_check.c

When defining a passwordcheck program in login.conf, the hard-coded suggestion in pwd_check.c is not useful. Could it be changed to something more generic?

Thank you,

Brad

diff --git pwd_check.c pwd_check.c
index fbdc7f9..d85f2a1 100644
--- pwd_check.c
+++ pwd_check.c
@@ -200,8 +200,7 @@ pwd_check(login_cap_t *lc, char *password)
 
  out:
        free(checker);
-       fprintf(stderr, "Please use a different password. Unusual capitalization,\n");
-       fprintf(stderr, "control characters, or digits are suggested.\n");
+       fprintf(stderr, "Please use a different password.\n");
 
        return (0);
 }