$OpenBSD: patch-src_modules_rlm_unix_rlm_unix_c,v 1.2 2021/09/16 10:36:39 sthen Exp $
--- src/modules/rlm_unix/rlm_unix.c.orig	Thu Nov 19 14:13:59 2015
+++ src/modules/rlm_unix/rlm_unix.c	Thu Nov 19 14:14:18 2015
@@ -218,7 +218,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authorize(UNUS
 		return RLM_MODULE_USERLOCK;
 	}
 #else /* OSFC2 */
-	if ((pwd = getpwnam(name)) == NULL) {
+	if ((pwd = getpwnam_shadow(name)) == NULL) {
 		return RLM_MODULE_NOTFOUND;
 	}
 	encrypted_pass = pwd->pw_passwd;
