$OpenBSD: patch-conserver_group_c,v 1.10 2020/05/14 11:43:24 sthen Exp $

Index: conserver/group.c
--- conserver/group.c.orig
+++ conserver/group.c
@@ -753,7 +753,7 @@ CheckPass(char *pcUser, char *pcWord, FLAG empty_check
     struct spwd *spwd;
 # endif
 
-    if ((pwd = getpwnam(pcUser)) == (struct passwd *)0) {
+    if ((pwd = getpwnam_shadow(pcUser)) == (struct passwd *)0) {
 	CONDDEBUG((1, "CheckPass(): getpwnam(%s): %s", pcUser,
 		   strerror(errno)));
 	retval = AUTH_NOUSER;
